OpenStructure
Public Member Functions
EleImpl Class Reference

#include <info_impl.hh>

Public Member Functions

 EleImpl (const QDomElement &e)
 
String GetName () const
 
void SetName (const String &n)
 
String GetPath () const
 
void SetAttribute (const String &name, const String &value)
 
String GetAttribute (const String &name) const
 
bool HasAttribute (const String &name) const
 
void RemoveAttribute (const String &name)
 
std::vector< StringGetAttributeList () const
 
String GetTextData () const
 
void SetTextData (const String &td)
 
String GetComment () const
 
EleList GetSubs (const String &name) const
 
ElePtr GetSub (const String &name) const
 
ElePtr CreateSub (const String &name)
 
bool HasSub (const String &name) const
 
void RemoveSub (const String &name)
 
void RemoveSub (const ElePtr &ele)
 
QDomElement & GetElement ()
 
const QDomElement & GetElement () const
 
InfoImplGetRoot ()
 
InfoImplGetRoot () const
 
std::vector< ElePtrGetSubList () const
 
ElePtr GetParent () const
 
bool operator== (const EleImpl &ref) const
 
Type GetType () const
 
void SetType (Type t)
 
void SetNewType (int t)
 
void SetStringRepr (const String &v, bool settype)
 
String GetStringRepr () const
 
void SetIntRepr (int repr)
 
int GetIntRepr () const
 
void SetFloatRepr (float repr)
 
float GetFloatRepr () const
 
void SetBoolRepr (bool repr)
 
bool GetBoolRepr () const
 
void SetVecRepr (const geom::Vec3 &repr)
 
geom::Vec3 GetVecRepr () const
 

Detailed Description

Definition at line 54 of file info_impl.hh.

Constructor & Destructor Documentation

◆ EleImpl()

EleImpl ( const QDomElement &  e)

Member Function Documentation

◆ CreateSub()

ElePtr CreateSub ( const String name)

◆ GetAttribute()

String GetAttribute ( const String name) const

◆ GetAttributeList()

std::vector<String> GetAttributeList ( ) const

◆ GetBoolRepr()

bool GetBoolRepr ( ) const

◆ GetComment()

String GetComment ( ) const

◆ GetElement() [1/2]

QDomElement& GetElement ( )

◆ GetElement() [2/2]

const QDomElement& GetElement ( ) const

◆ GetFloatRepr()

float GetFloatRepr ( ) const

◆ GetIntRepr()

int GetIntRepr ( ) const

◆ GetName()

String GetName ( ) const

◆ GetParent()

ElePtr GetParent ( ) const

◆ GetPath()

String GetPath ( ) const

◆ GetRoot() [1/2]

InfoImpl& GetRoot ( )

◆ GetRoot() [2/2]

InfoImpl& GetRoot ( ) const

◆ GetStringRepr()

String GetStringRepr ( ) const

◆ GetSub()

ElePtr GetSub ( const String name) const

get single sub elements with specified name throws if no element is found

◆ GetSubList()

std::vector<ElePtr> GetSubList ( ) const

◆ GetSubs()

EleList GetSubs ( const String name) const

get sub elements with specified element name

does not throw. returns empty list if not elements have been found

◆ GetTextData()

String GetTextData ( ) const

◆ GetType()

Type GetType ( ) const

◆ GetVecRepr()

geom::Vec3 GetVecRepr ( ) const

◆ HasAttribute()

bool HasAttribute ( const String name) const

◆ HasSub()

bool HasSub ( const String name) const

◆ operator==()

bool operator== ( const EleImpl ref) const

◆ RemoveAttribute()

void RemoveAttribute ( const String name)

◆ RemoveSub() [1/2]

void RemoveSub ( const ElePtr ele)

◆ RemoveSub() [2/2]

void RemoveSub ( const String name)

◆ SetAttribute()

void SetAttribute ( const String name,
const String value 
)

◆ SetBoolRepr()

void SetBoolRepr ( bool  repr)

◆ SetFloatRepr()

void SetFloatRepr ( float  repr)

◆ SetIntRepr()

void SetIntRepr ( int  repr)

◆ SetName()

void SetName ( const String n)

◆ SetNewType()

void SetNewType ( int  t)

◆ SetStringRepr()

void SetStringRepr ( const String v,
bool  settype 
)

◆ SetTextData()

void SetTextData ( const String td)

◆ SetType()

void SetType ( Type  t)

◆ SetVecRepr()

void SetVecRepr ( const geom::Vec3 repr)

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