#include <ogdf/fileformats/OgmlParser.h>
Public Member Functions | |
| OgmlAttribute () | |
| OgmlAttribute (int id) | |
| ~OgmlAttribute () | |
| const int & | getId () const |
| const String & | getName () const |
| const List< OgmlAttributeValue * > & | getValueList () const |
| void | setId (int id) |
| void | pushValues (Hashing< int, OgmlAttributeValue > &val, int key,...) |
| void | print (ostream &os) const |
| int | validAttribute (const XmlAttributeObject &xmlAttribute, const XmlTagObject *xmlTag, Hashing< String, const XmlTagObject * > &ids) const |
Private Attributes | |
| int | id |
| List< OgmlAttributeValue * > | values |
Objects of this class represent an attribute and its value set in Ogml.
Definition at line 414 of file OgmlParser.h.
| ogdf::OgmlAttribute::OgmlAttribute | ( | ) | [inline] |
Definition at line 427 of file OgmlParser.h.
| ogdf::OgmlAttribute::OgmlAttribute | ( | int | id | ) | [inline] |
Definition at line 428 of file OgmlParser.h.
| ogdf::OgmlAttribute::~OgmlAttribute | ( | ) | [inline] |
Definition at line 433 of file OgmlParser.h.
| const int& ogdf::OgmlAttribute::getId | ( | ) | const [inline] |
Definition at line 435 of file OgmlParser.h.
| const String& ogdf::OgmlAttribute::getName | ( | ) | const [inline] |
Definition at line 436 of file OgmlParser.h.
| const List<OgmlAttributeValue*>& ogdf::OgmlAttribute::getValueList | ( | ) | const [inline] |
Definition at line 437 of file OgmlParser.h.
| void ogdf::OgmlAttribute::print | ( | ostream & | os | ) | const [inline] |
Prints the value set of the attribute.
Definition at line 465 of file OgmlParser.h.
| void ogdf::OgmlAttribute::pushValues | ( | Hashing< int, OgmlAttributeValue > & | val, |
| int | key, | ||
| ... | |||
| ) | [inline] |
Pushes pointers to OgmlAttributeValue objects back to list values. These value objects are looked up in hashtable values.
NOTE: This method uses a variable parameter list. The last parameter need to be -1!
Definition at line 451 of file OgmlParser.h.
| void ogdf::OgmlAttribute::setId | ( | int | id | ) | [inline] |
Definition at line 440 of file OgmlParser.h.
| int ogdf::OgmlAttribute::validAttribute | ( | const XmlAttributeObject & | xmlAttribute, |
| const XmlTagObject * | xmlTag, | ||
| Hashing< String, const XmlTagObject * > & | ids | ||
| ) | const [inline] |
This method proofs whether o is a valid attribute in comparison to this object. That means if the name of o and this object are equal and if o has a valid value. It returns a validity state code (see Ogml.h).
Definition at line 480 of file OgmlParser.h.
int ogdf::OgmlAttribute::id [private] |
Integer identifier of object. For possible ids see Ogml.h.
Definition at line 419 of file OgmlParser.h.
List<OgmlAttributeValue*> ogdf::OgmlAttribute::values [private] |
Represents the value set of this attribute.
Definition at line 422 of file OgmlParser.h.