OpenStructure
Public Member Functions | Friends
InfoGroup Class Reference

#include <info_group.hh>

Public Member Functions

InfoGroup GetParent () const
 
void SetName (const String &name)
 
String GetName () const
 
InfoPath GetPath () const
 
InfoGroup GetGroup (const InfoPath &path, bool use_defaults=true) const
 
InfoGroupList GetGroups (const InfoPath &path) const
 
InfoItemList GetItems (const InfoPath &path) const
 
InfoGroup CreateGroup (const String &name)
 
bool HasGroup (const InfoPath &name, bool use_defaults=true) const
 
InfoGroup RetrieveGroup (const InfoPath &path, bool use_defaults=true)
 
InfoItem GetItem (const InfoPath &path, bool use_defaults=true) const
 
InfoItem CreateItem (const String &name, const String &value)
 
InfoItem CreateItem (const String &name, Real value)
 
InfoItem CreateItem (const String &name, bool value)
 
InfoItem CreateItem (const String &name, int value)
 
InfoItem CreateItem (const String &name, const geom::Vec3 &vector)
 
bool HasItem (const InfoPath &path, bool use_defaults=true) const
 
InfoItem RetrieveItem (const InfoPath &path, bool use_defaults=true)
 
void Remove (const InfoPath &path, bool use_defaults=false)
 
void Remove (const InfoGroup &group)
 
String GetAttribute (const String &name) const
 
void SetAttribute (const String &name, const String &value)
 
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
 
void Apply (InfoVisitor &v, bool visit_this=true)
 
void Apply (InfoConstVisitor &v, bool visit_this=true) const
 
bool operator== (const InfoGroup &ref) const
 
bool operator!= (const InfoGroup &ref) const
 

Friends

class InfoHandle
 
class InfoItem
 

Detailed Description

Definition at line 40 of file info_group.hh.

Member Function Documentation

◆ Apply() [1/2]

void Apply ( InfoConstVisitor v,
bool  visit_this = true 
) const

◆ Apply() [2/2]

void Apply ( InfoVisitor v,
bool  visit_this = true 
)

Apply visitor.

descends through all items and subgroups

◆ CreateGroup()

InfoGroup CreateGroup ( const String name)

◆ CreateItem() [1/5]

InfoItem CreateItem ( const String name,
bool  value 
)

◆ CreateItem() [2/5]

InfoItem CreateItem ( const String name,
const geom::Vec3 vector 
)

◆ CreateItem() [3/5]

InfoItem CreateItem ( const String name,
const String value 
)

◆ CreateItem() [4/5]

InfoItem CreateItem ( const String name,
int  value 
)

◆ CreateItem() [5/5]

InfoItem CreateItem ( const String name,
Real  value 
)

◆ GetAttribute()

String GetAttribute ( const String name) const

return attribute of given name

◆ GetAttributeList()

std::vector<String> GetAttributeList ( ) const

◆ GetComment()

String GetComment ( ) const

get comment just above item

◆ GetGroup()

InfoGroup GetGroup ( const InfoPath path,
bool  use_defaults = true 
) const

◆ GetGroups()

InfoGroupList GetGroups ( const InfoPath path) const

◆ GetItem()

InfoItem GetItem ( const InfoPath path,
bool  use_defaults = true 
) const

◆ GetItems()

InfoItemList GetItems ( const InfoPath path) const

◆ GetName()

String GetName ( ) const

retrieve name

◆ GetParent()

InfoGroup GetParent ( ) const

retrieve parent group

◆ GetPath()

InfoPath GetPath ( ) const

retrieve path

◆ GetTextData()

String GetTextData ( ) const

◆ HasAttribute()

bool HasAttribute ( const String name) const

returns true if attribute of this names exists

◆ HasGroup()

bool HasGroup ( const InfoPath name,
bool  use_defaults = true 
) const

◆ HasItem()

bool HasItem ( const InfoPath path,
bool  use_defaults = true 
) const

◆ operator!=()

bool operator!= ( const InfoGroup ref) const

◆ operator==()

bool operator== ( const InfoGroup ref) const

◆ Remove() [1/2]

void Remove ( const InfoGroup group)

◆ Remove() [2/2]

void Remove ( const InfoPath path,
bool  use_defaults = false 
)

◆ RemoveAttribute()

void RemoveAttribute ( const String name)

remove attribute of given name

◆ RetrieveGroup()

InfoGroup RetrieveGroup ( const InfoPath path,
bool  use_defaults = true 
)

◆ RetrieveItem()

InfoItem RetrieveItem ( const InfoPath path,
bool  use_defaults = true 
)

◆ SetAttribute()

void SetAttribute ( const String name,
const String value 
)

set attribute of given name, will be created if it does not yet exist

◆ SetName()

void SetName ( const String name)

set name

◆ SetTextData()

void SetTextData ( const String td)

Friends And Related Function Documentation

◆ InfoHandle

friend class InfoHandle
friend

Definition at line 41 of file info_group.hh.

◆ InfoItem

friend class InfoItem
friend

Definition at line 42 of file info_group.hh.


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