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 ( const QDomElement &  e  ) 

Member Function Documentation

ElePtr CreateSub ( const String name  ) 
String GetAttribute ( const String name  )  const
std::vector<String> GetAttributeList (  )  const
bool GetBoolRepr (  )  const
String GetComment (  )  const
const QDomElement& GetElement (  )  const
QDomElement& GetElement (  ) 
float GetFloatRepr (  )  const
int GetIntRepr (  )  const
String GetName (  )  const
ElePtr GetParent (  )  const
String GetPath (  )  const
InfoImpl& GetRoot (  )  const
InfoImpl& GetRoot (  ) 
String GetStringRepr (  )  const
ElePtr GetSub ( const String name  )  const

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

std::vector<ElePtr> GetSubList (  )  const
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

String GetTextData (  )  const
Type GetType (  )  const
geom::Vec3 GetVecRepr (  )  const
bool HasAttribute ( const String name  )  const
bool HasSub ( const String name  )  const
bool operator== ( const EleImpl ref  )  const
void RemoveAttribute ( const String name  ) 
void RemoveSub ( const ElePtr ele  ) 
void RemoveSub ( const String name  ) 
void SetAttribute ( const String name,
const String value 
)
void SetBoolRepr ( bool  repr  ) 
void SetFloatRepr ( float  repr  ) 
void SetIntRepr ( int  repr  ) 
void SetName ( const String n  ) 
void SetNewType ( int  t  ) 
void SetStringRepr ( const String v,
bool  settype 
)
void SetTextData ( const String td  ) 
void SetType ( Type  t  ) 
void SetVecRepr ( const geom::Vec3 repr  ) 

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 1 Mar 2018 for OpenStructure by  doxygen 1.6.1