51 #ifndef HEADER_INCLUDED__SAGA_API__metadata_H
52 #define HEADER_INCLUDED__SAGA_API__metadata_H
122 bool Save_JSON (
const CSG_String &File)
const;
127 bool Assign (
const CSG_MetaData &MetaData,
bool bAddChildren =
true);
134 bool Cmp_Name (
const CSG_String &String,
bool bNoCase =
true)
const;
139 bool Get_Content (
const CSG_String &Name,
double &Value)
const;
140 bool Get_Content (
const CSG_String &Name,
int &Value)
const;
143 void Fmt_Content (
const char *Format, ...);
144 void Fmt_Content (
const wchar_t *Format, ...);
145 bool Cmp_Content (
const CSG_String &String,
bool bNoCase =
false)
const;
166 bool Mov_Child (
int from_Index,
int to_Index);
167 bool Del_Child (
int Index);
171 bool Del_Children (
int Depth = 0,
const SG_Char *Name = NULL);
173 CSG_MetaData * operator () (
int Index)
const {
return( Get_Child(Index ) ); }
176 const CSG_MetaData & operator [] (
int Index)
const {
return( *Get_Child(Index ) ); }
181 const SG_Char *
Get_Property (
int i)
const {
return( i >= 0 && i < m_Prop_Values.Get_Count() ? m_Prop_Values[i].c_str() : NULL ); }
184 bool Get_Property (
const CSG_String &Name,
double &Value)
const;
185 bool Get_Property (
const CSG_String &Name,
int &Value)
const;
188 bool Add_Property (
const CSG_String &Name,
double Value);
189 bool Add_Property (
const CSG_String &Name,
int Value);
191 bool Set_Property (
const CSG_String &Name,
const CSG_String &Value,
bool bAddIfNotExists =
true);
192 bool Set_Property (
const CSG_String &Name,
double Value,
bool bAddIfNotExists =
true);
193 bool Set_Property (
const CSG_String &Name,
int Value,
bool bAddIfNotExists =
true);
194 bool Set_Property (
const CSG_String &Name,
sLong Value,
bool bAddIfNotExists =
true);
195 bool Cmp_Property (
const CSG_String &Name,
const CSG_String &String,
bool bNoCase =
false)
const;
197 bool Del_Property (
int i);
200 class CSG_Table Get_Table (int Flags = 0)
const;
219 int _Get_Child (
const CSG_String &Name)
const;
220 int _Get_Property (
const CSG_String &Name)
const;
222 void _Load (
class wxXmlNode *pNode);
223 void _Save (
class wxXmlNode *pNode)
const;
250 bool is_Connected (
void)
const;
265 class wxInputStream * _Request (
const CSG_String &Request);
280 #endif // #ifndef HEADER_INCLUDED__SAGA_API__metadata_H