#include <ogdf/fileformats/OgmlParser.h>
Public Member Functions | |
| OgmlAttributeValue () | |
| OgmlAttributeValue (int id) | |
| ~OgmlAttributeValue () | |
| const int & | getId () const |
| const String & | getValue () const |
| void | setId (int id) |
| OgmlAttributeValueId | getTypeOfString (const String &input) const |
| int | validValue (const String &attributeValue, const XmlTagObject *xmlTag, Hashing< String, const XmlTagObject * > &ids) const |
Private Attributes | |
| int | id |
Objects of this class represent a value set of an attribute in Ogml.
Definition at line 128 of file OgmlParser.h.
| ogdf::OgmlAttributeValue::OgmlAttributeValue | ( | ) | [inline] |
Definition at line 137 of file OgmlParser.h.
| ogdf::OgmlAttributeValue::OgmlAttributeValue | ( | int | id | ) | [inline] |
Definition at line 138 of file OgmlParser.h.
| ogdf::OgmlAttributeValue::~OgmlAttributeValue | ( | ) | [inline] |
Definition at line 143 of file OgmlParser.h.
| const int& ogdf::OgmlAttributeValue::getId | ( | ) | const [inline] |
Definition at line 145 of file OgmlParser.h.
| OgmlAttributeValueId ogdf::OgmlAttributeValue::getTypeOfString | ( | const String & | input | ) | const [inline] |
Definition at line 157 of file OgmlParser.h.
| const String& ogdf::OgmlAttributeValue::getValue | ( | ) | const [inline] |
Definition at line 146 of file OgmlParser.h.
| void ogdf::OgmlAttributeValue::setId | ( | int | id | ) | [inline] |
Definition at line 148 of file OgmlParser.h.
| int ogdf::OgmlAttributeValue::validValue | ( | const String & | attributeValue, |
| const XmlTagObject * | xmlTag, | ||
| Hashing< String, const XmlTagObject * > & | ids | ||
| ) | const [inline] |
According to id this method proofs whether s is a valid value of the value set. E.g. if id=av_int s should contain an integer value. It returns the following validity states: vs_idNotUnique =-10, //id already exhausted vs_idRefErr = -9, //referenced id wasn't found or wrong type of referenced tag vs_idRefErr = -8, //referenced id wrong vs_attValueErr = -3, //attribute-value error vs_valid = 1 //attribute-value is valid
TODO: Completion of the switch-case statement.
Definition at line 278 of file OgmlParser.h.
int ogdf::OgmlAttributeValue::id [private] |
Id of the attribute value. For possible ones see Ogml.h.
Definition at line 133 of file OgmlParser.h.