Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

ogdf::XmlAttributeObject Struct Reference

This struct represents an attribute associated to a tag. More...

#include <ogdf/fileformats/XmlParser.h>

Public Member Functions

 XmlAttributeObject (HashedString *name, HashedString *value)
 Constructor. More...
 
 ~XmlAttributeObject ()
 Destructor; will be performed in destroyParseTree(). More...
 
const string & getName () const
 Getter. More...
 
const string & getValue () const
 
void setInvalid ()
 
void setValid ()
 Setter. More...
 
bool valid () const
 

Public Attributes

HashedString * m_pAttributeName
 Contains the name of the attribute, i.e. More...
 
HashedString * m_pAttributeValue
 Contains the value assigned to this attribute without qoutes, i.e. More...
 
XmlAttributeObject * m_pNextAttribute
 Pointer to the next attribute and 0 if this is the only attribute. More...
 
bool m_valid
 Flag denotes whether attribute is valid or not (default: invalid). More...
 

Detailed Description

This struct represents an attribute associated to a tag.

Definition at line 47 of file XmlParser.h.

Constructor & Destructor Documentation

◆ XmlAttributeObject()

ogdf::XmlAttributeObject::XmlAttributeObject ( HashedString *  name,
HashedString *  value 
)
inline

Constructor.

Definition at line 66 of file XmlParser.h.

◆ ~XmlAttributeObject()

ogdf::XmlAttributeObject::~XmlAttributeObject ( )
inline

Destructor; will be performed in destroyParseTree().

Definition at line 74 of file XmlParser.h.

Member Function Documentation

◆ getName()

const string& ogdf::XmlAttributeObject::getName ( ) const
inline

Getter.

Definition at line 77 of file XmlParser.h.

◆ getValue()

const string& ogdf::XmlAttributeObject::getValue ( ) const
inline

Definition at line 81 of file XmlParser.h.

◆ setInvalid()

void ogdf::XmlAttributeObject::setInvalid ( )
inline

Definition at line 94 of file XmlParser.h.

◆ setValid()

void ogdf::XmlAttributeObject::setValid ( )
inline

Setter.

Definition at line 90 of file XmlParser.h.

◆ valid()

bool ogdf::XmlAttributeObject::valid ( ) const
inline

Definition at line 85 of file XmlParser.h.

Member Data Documentation

◆ m_pAttributeName

HashedString* ogdf::XmlAttributeObject::m_pAttributeName

Contains the name of the attribute, i.e.

for ... it contains "attr1"

Definition at line 52 of file XmlParser.h.

◆ m_pAttributeValue

HashedString* ogdf::XmlAttributeObject::m_pAttributeValue

Contains the value assigned to this attribute without qoutes, i.e.

for ... it contains "value1" and not "\"value1"".

Definition at line 57 of file XmlParser.h.

◆ m_pNextAttribute

XmlAttributeObject* ogdf::XmlAttributeObject::m_pNextAttribute

Pointer to the next attribute and 0 if this is the only attribute.

Definition at line 60 of file XmlParser.h.

◆ m_valid

bool ogdf::XmlAttributeObject::m_valid

Flag denotes whether attribute is valid or not (default: invalid).

Definition at line 63 of file XmlParser.h.


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