28 #ifndef OST_DATA_INFO_H
29 #define OST_DATA_INFO_H
36 namespace ost {
namespace info {
68 void Import(
const String& file);
71 void Export(
const String& file)
const;
79 bool HasDefaultGroup(
const InfoPath& p)
const;
82 bool HasDefaultItem(
const InfoPath& p)
const;
87 void SetName(
const String& name);
91 bool HasGroup(
const InfoPath& name,
bool use_defaults=
true)
const;
95 bool HasItem(
const InfoPath& path,
bool use_defaults=
true)
const;
97 void Remove(
const InfoPath& path,
bool remove_defaults=
false);
100 void SetAttribute(
const String& name,
const String& value);
101 bool HasAttribute(
const String& name)
const;
102 void RemoveAttribute(
const String& name);
103 std::vector<String> GetAttributeList()
const;
104 String GetTextData()
const;
105 void SetTextData(
const String& td);
std::vector< RootPtr > RootPtrList
#define DLLEXPORT_OST_INFO
boost::shared_ptr< detail::InfoImpl > RootPtr
DLLEXPORT InfoHandle LoadInfo(const String &file)
Load InfoHandle from a file.
DLLEXPORT InfoHandle CreateInfo()
Create InfoHandle from scratch.
encapsulates path to info groups and items