#include <StartTag.h>
Inheritance diagram for StartTag:


Public Methods | |
| StartTag (const string &name="StartTag", const StringMap &attributes=StringMap()) | |
| constructor. | |
Inspectors | |
| virtual string | Get (const string &att) const |
| Get a value from the tag's attributes. More... | |
| virtual StringVector | GetAttributes () const |
| Get all of the start tag's attributes. More... | |
| virtual StringVector | GetValues () const |
| Get all of the start tag's values. More... | |
| virtual StringMap | GetAttributeMap () const |
| Get all of the start tag's attributes && values. More... | |
Modifiers | |
| virtual StartTag | SetAttributeMap (const StringMap &newAttributeMap) |
| Set a new Map<string, string> of attributes and values. | |
| virtual StartTag | SetValues (const StringVector &newVals, const StringVector &newAtts=StringVector()) |
| Set new values. More... | |
| virtual StartTag | Set (const string &att, const string &val) |
| Set an attribute's value. | |
| virtual string& | operator[] (const string &newAtt) |
| same as Map::operator[]. More... | |
Writeable | |
| virtual string | ToString () const |
| convert to a string. | |
Protected Methods | |
| StartTag& | Copy (const StartTag &rhs) |
| copy constructor. | |
| void | Init (const string &newName, const StringMap &newAttributes) |
| initializer. | |
| bool | Equals (const StartTag &rhs) const |
| operator==. | |
| void | NullifyPointers () |
| initially set all member pointers to NULL. | |
| void | Clear () |
| delete member pointers. | |
An abstraction of an XML start tag <start foo="bar">
|
|
Get a value from the tag's attributes.
|
|
|
Get all of the start tag's attributes && values.
|
|
|
Get all of the start tag's attributes.
|
|
|
Get all of the start tag's values.
|
|
|
Set new values. does the same as SetAttributeMap, only it takes vector<string>'s instead of a Map<string, string>
|
|
|
same as Map::operator[]. use as in startTag[foo] = bar |
1.2.6 written by Dimitri van Heesch,
© 1997-2001