28 #ifndef OST_DATA_INFO_H
29 #define OST_DATA_INFO_H
36 namespace ost {
namespace info {
void Remove(const InfoGroup &group)
String GetTextData() const
friend InfoHandle CreateInfo()
Create InfoHandle from scratch.
bool HasAttribute(const String &name) const
InfoHandle()
empty, ie invalid handle
std::vector< String > GetAttributeList() const
void Import(const String &file)
generate info from file
bool HasGroup(const InfoPath &name, bool use_defaults=true) const
InfoGroup GetGroup(const InfoPath &path, bool use_defaults=true) const
bool HasItem(const InfoPath &path, bool use_defaults=true) const
InfoHandle Copy() const
return clone of the underlying representation
InfoGroup RetrieveGroup(const InfoPath &path, bool use_defaults=true)
InfoItem GetDefaultItem(const InfoPath &p) const
void SetTextData(const String &td)
void Export(const String &file) const
write content to file
void AddDefault(const InfoHandle &h)
void RemoveAttribute(const String &name)
friend InfoHandle CreateInfo(const String &text)
InfoGroup GetParent() const
group interface
void Apply(InfoVisitor &v, bool visit_this=true)
InfoGroup GetDefaultGroup(const InfoPath &p) const
bool HasDefaultGroup(const InfoPath &p) const
String GetAttribute(const String &name) const
void Remove(const InfoPath &path, bool remove_defaults=false)
void Apply(InfoConstVisitor &v, bool visit_this=true) const
InfoItem GetItem(const InfoPath &path, bool use_defaults=true) const
bool HasDefaultItem(const InfoPath &p) const
InfoGroup CreateGroup(const String &name)
void SetName(const String &name)
friend InfoHandle LoadInfo(const String &)
Load InfoHandle from a file.
void SetAttribute(const String &name, const String &value)
InfoItem CreateItem(const String &name, const String &value)
InfoItem RetrieveItem(const InfoPath &path, bool use_defaults=true)
encapsulates path to info groups and items
#define DLLEXPORT_OST_INFO
std::vector< RootPtr > RootPtrList
DLLEXPORT InfoHandle CreateInfo()
Create InfoHandle from scratch.
boost::shared_ptr< detail::InfoImpl > RootPtr
DLLEXPORT InfoHandle LoadInfo(const String &file)
Load InfoHandle from a file.