Open
Graph Drawing
Framework

 v.2012.05
 

ogdf::OgmlAttributeValue Class Reference

#include <ogdf/fileformats/OgmlParser.h>

List of all members.

Public Member Functions

 OgmlAttributeValue ()
 OgmlAttributeValue (int id)
 ~OgmlAttributeValue ()
const int & getId () const
const StringgetValue () 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

Detailed Description

Objects of this class represent a value set of an attribute in Ogml.

Definition at line 128 of file OgmlParser.h.


Constructor & Destructor Documentation

Definition at line 137 of file OgmlParser.h.

Definition at line 138 of file OgmlParser.h.

Definition at line 143 of file OgmlParser.h.


Member Function Documentation

const int& ogdf::OgmlAttributeValue::getId ( ) const [inline]

Definition at line 145 of file OgmlParser.h.

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.


Member Data Documentation

Id of the attribute value. For possible ones see Ogml.h.

Definition at line 133 of file OgmlParser.h.


The documentation for this class was generated from the following file: