Open
Graph Drawing
Framework

 v.2012.05
 

ogdf::OgmlAttribute Class Reference

#include <ogdf/fileformats/OgmlParser.h>

List of all members.

Public Member Functions

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

Detailed Description

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

Definition at line 414 of file OgmlParser.h.


Constructor & Destructor Documentation

Definition at line 427 of file OgmlParser.h.

ogdf::OgmlAttribute::OgmlAttribute ( int  id) [inline]

Definition at line 428 of file OgmlParser.h.

Definition at line 433 of file OgmlParser.h.


Member Function Documentation

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.

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.


Member Data Documentation

int ogdf::OgmlAttribute::id [private]

Integer identifier of object. For possible ids see Ogml.h.

Definition at line 419 of file OgmlParser.h.

Represents the value set of this attribute.

Definition at line 422 of file OgmlParser.h.


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