|
SAGA API Version 9.13
|
#include <metadata.h>
Public Member Functions | |
| CSG_MetaData (void) | |
| bool | Create (void) |
| CSG_MetaData (const CSG_MetaData &MetaData) | |
| bool | Create (const CSG_MetaData &MetaData) |
| CSG_MetaData (const CSG_String &File, const SG_Char *Extension=NULL) | |
| bool | Create (const CSG_String &File, const SG_Char *Extension=NULL) |
| CSG_MetaData (CSG_File &File) | |
| bool | Create (CSG_File &File) |
| virtual | ~CSG_MetaData (void) |
| void | Destroy (void) |
| bool | Load (const CSG_String &File, const SG_Char *Extension=NULL) |
| bool | Save (const CSG_String &File, const SG_Char *Extension=NULL) const |
| bool | Load (CSG_File &Stream) |
| bool | Save (CSG_File &Stream) const |
| bool | Load (class wxXmlNode *pNode) |
| bool | Save (class wxXmlNode *pNode) const |
| bool | Load_HTTP (const CSG_String &Server, const CSG_String &Path, const SG_Char *Username=NULL, const SG_Char *Password=NULL) |
| bool | from_XML (const char *XML, size_t Length, const char *Encoding="UTF-8") |
| bool | from_XML (const CSG_String &XML) |
| bool | to_XML (CSG_String &XML) const |
| bool | Load_JSON (const CSG_String &File) |
| bool | Save_JSON (const CSG_String &File) const |
| bool | from_JSON (const CSG_String &JSON) |
| bool | to_JSON (CSG_String &JSON) const |
| bool | Assign (const CSG_MetaData &MetaData, bool bAddChildren=true) |
| CSG_MetaData & | operator= (const CSG_MetaData &MetaData) |
| CSG_MetaData & | operator+= (const CSG_MetaData &MetaData) |
| void | Set_Name (const CSG_String &Name) |
| bool | Cmp_Name (const CSG_String &String, bool bNoCase=true) const |
| const CSG_String & | Get_Name (void) const |
| const CSG_String & | Get_Content (void) const |
| const SG_Char * | Get_Content (int Index) const |
| const SG_Char * | Get_Content (const CSG_String &Name) const |
| bool | Get_Content (const CSG_String &Name, CSG_String &Value) const |
| bool | Get_Content (const CSG_String &Name, double &Value) const |
| bool | Get_Content (const CSG_String &Name, int &Value) const |
| bool | Get_Content (const CSG_String &Name, sLong &Value) const |
| void | Set_Content (const CSG_String &Content) |
| void | Fmt_Content (const char *Format,...) |
| void | Fmt_Content (const wchar_t *Format,...) |
| bool | Cmp_Content (const CSG_String &String, bool bNoCase=false) const |
| CSG_MetaData * | Get_Parent (void) const |
| int | Get_Count (void) const |
| int | Get_Children_Count (void) const |
| CSG_MetaData * | Get_Child (int Index) const |
| CSG_MetaData * | Get_Child (const CSG_String &Name) const |
| CSG_MetaData * | Get_Child_by_JSON_Pointer (const CSG_String &JSON_Pointer) const |
| CSG_MetaData * | Add_Child (void) |
| CSG_MetaData * | Add_Child (const CSG_String &Name) |
| CSG_MetaData * | Add_Child (const CSG_String &Name, const CSG_String &Content) |
| CSG_MetaData * | Add_Child (const CSG_String &Name, double Content) |
| CSG_MetaData * | Add_Child (const CSG_String &Name, int Content) |
| CSG_MetaData * | Add_Child (const CSG_String &Name, sLong Content) |
| CSG_MetaData * | Add_Child (const CSG_MetaData &MetaData, bool bAddChildren=true) |
| CSG_MetaData * | Ins_Child (int Position) |
| CSG_MetaData * | Ins_Child (const CSG_String &Name, int Position) |
| CSG_MetaData * | Ins_Child (const CSG_String &Name, const CSG_String &Content, int Position) |
| CSG_MetaData * | Ins_Child (const CSG_String &Name, double Content, int Position) |
| CSG_MetaData * | Ins_Child (const CSG_String &Name, int Content, int Position) |
| CSG_MetaData * | Ins_Child (const CSG_String &Name, sLong Content, int Position) |
| CSG_MetaData * | Ins_Child (const CSG_MetaData &MetaData, int Position, bool bAddChildren=true) |
| bool | Mov_Child (int from_Index, int to_Index) |
| bool | Del_Child (int Index) |
| bool | Del_Child (const CSG_String &Name) |
| bool | Add_Children (const CSG_MetaData &MetaData) |
| bool | Del_Children (int Depth=0, const SG_Char *Name=NULL) |
| CSG_MetaData * | operator() (int Index) const |
| CSG_MetaData * | operator() (const CSG_String &Name) const |
| CSG_MetaData & | operator[] (int Index) |
| CSG_MetaData & | operator[] (const CSG_String &Name) |
| const CSG_MetaData & | operator[] (int Index) const |
| const CSG_MetaData & | operator[] (const CSG_String &Name) const |
| int | Get_Property_Count (void) const |
| const CSG_String & | Get_Property_Name (int Index) const |
| const SG_Char * | Get_Property (int Index) const |
| const SG_Char * | Get_Property (const CSG_String &Name) const |
| bool | Get_Property (const CSG_String &Name, CSG_String &Value) const |
| bool | Get_Property (const CSG_String &Name, double &Value) const |
| bool | Get_Property (const CSG_String &Name, int &Value) const |
| bool | Get_Property (const CSG_String &Name, sLong &Value) const |
| bool | Add_Property (const CSG_String &Name, const CSG_String &Value) |
| bool | Add_Property (const CSG_String &Name, double Value) |
| bool | Add_Property (const CSG_String &Name, int Value) |
| bool | Add_Property (const CSG_String &Name, sLong Value) |
| bool | Set_Property (const CSG_String &Name, const CSG_String &Value, bool bAddIfNotExists=true) |
| bool | Set_Property (const CSG_String &Name, double Value, bool bAddIfNotExists=true) |
| bool | Set_Property (const CSG_String &Name, int Value, bool bAddIfNotExists=true) |
| bool | Set_Property (const CSG_String &Name, sLong Value, bool bAddIfNotExists=true) |
| bool | Cmp_Property (const CSG_String &Name, const CSG_String &String, bool bNoCase=false) const |
| bool | Del_Property (const CSG_String &Name) |
| bool | Del_Property (int i) |
| CSG_String | asText (int Flags=0) const |
| class CSG_Table | Get_Table (int Flags=0) const |
Friends | |
| class | CSG_HTTP |
Definition at line 90 of file metadata.h.
| CSG_MetaData::CSG_MetaData | ( | void | ) |
Definition at line 68 of file metadata.cpp.
Referenced by Add_Child(), Add_Child(), Add_Child(), Add_Child(), Add_Child(), Add_Child(), Add_Child(), Add_Children(), Assign(), Create(), CSG_HTTP, CSG_MetaData(), Del_Child(), Del_Child(), Destroy(), Get_Child(), Get_Child(), Get_Child_by_JSON_Pointer(), Get_Content(), Get_Parent(), Ins_Child(), Ins_Child(), Ins_Child(), Ins_Child(), Ins_Child(), Ins_Child(), Ins_Child(), Mov_Child(), operator()(), operator()(), operator+=(), operator=(), operator[](), operator[](), operator[](), and operator[]().
| CSG_MetaData::CSG_MetaData | ( | const CSG_MetaData & | MetaData | ) |
Definition at line 79 of file metadata.cpp.
References Create(), and CSG_MetaData().
| CSG_MetaData::CSG_MetaData | ( | const CSG_String & | File, |
| const SG_Char * | Extension = NULL ) |
Definition at line 92 of file metadata.cpp.
| CSG_MetaData::CSG_MetaData | ( | CSG_File & | File | ) |
Definition at line 105 of file metadata.cpp.
References Create().
|
virtual |
Definition at line 134 of file metadata.cpp.
References Destroy().
| CSG_MetaData * CSG_MetaData::Add_Child | ( | const CSG_MetaData & | MetaData, |
| bool | bAddChildren = true ) |
Definition at line 196 of file metadata.cpp.
References CSG_MetaData(), and Ins_Child().
| CSG_MetaData * CSG_MetaData::Add_Child | ( | const CSG_String & | Name | ) |
Definition at line 171 of file metadata.cpp.
References CSG_MetaData(), and Ins_Child().
| CSG_MetaData * CSG_MetaData::Add_Child | ( | const CSG_String & | Name, |
| const CSG_String & | Content ) |
Definition at line 176 of file metadata.cpp.
References CSG_MetaData(), and Ins_Child().
| CSG_MetaData * CSG_MetaData::Add_Child | ( | const CSG_String & | Name, |
| double | Content ) |
Definition at line 181 of file metadata.cpp.
References CSG_MetaData(), Ins_Child(), and SG_Get_String().
| CSG_MetaData * CSG_MetaData::Add_Child | ( | const CSG_String & | Name, |
| int | Content ) |
Definition at line 186 of file metadata.cpp.
References CSG_MetaData(), CSG_String::Format(), Ins_Child(), and SG_T.
| CSG_MetaData * CSG_MetaData::Add_Child | ( | const CSG_String & | Name, |
| sLong | Content ) |
Definition at line 191 of file metadata.cpp.
References CSG_MetaData(), CSG_String::Format(), Ins_Child(), and SG_T.
| CSG_MetaData * CSG_MetaData::Add_Child | ( | void | ) |
Definition at line 166 of file metadata.cpp.
References CSG_MetaData(), and Ins_Child().
Referenced by CSG_Parameter_Colors::_Serialize(), CSG_Parameter_Fixed_Table::_Serialize(), CSG_Parameter_Font::_Serialize(), CSG_Parameter_Grid_System::_Serialize(), CSG_Parameter_List::_Serialize(), Add_Children(), CSG_TIN::Create(), CSG_Tool_Chain::Create(), CSG_Tool::Get_History(), CSG_Tool_Chain::Get_Script(), CSG_Tool::Get_Summary(), Load(), operator+=(), CSG_Classifier_Supervised::Save(), CSG_Table::Save(), CSG_Parameter::Serialize(), CSG_Parameters::Set_History(), and SG_XML_Add_Parameter().
| bool CSG_MetaData::Add_Children | ( | const CSG_MetaData & | MetaData | ) |
Definition at line 359 of file metadata.cpp.
References Add_Child(), CSG_MetaData(), and Get_Children_Count().
Referenced by Assign(), CSG_Grids::Create(), CSG_TIN::Create(), CSG_Tool::Get_History(), CSG_Tool_Chain::Get_Script(), and CSG_Parameters::Set_History().
| bool CSG_MetaData::Add_Property | ( | const CSG_String & | Name, |
| const CSG_String & | Value ) |
Definition at line 582 of file metadata.cpp.
References CSG_String::is_Empty().
Referenced by CSG_Parameter_Choice::_Serialize(), CSG_Parameter_Data_Object::_Serialize(), Add_Property(), Add_Property(), Add_Property(), Assign(), CSG_Tool::Get_History(), CSG_Tool_Chain::Get_Script(), CSG_Tool::Get_Summary(), Load(), CSG_Classifier_Supervised::Save(), CSG_Table::Save(), CSG_Parameter::Serialize(), CSG_Parameters::Set_History(), and SG_XML_Add_Parameter().
| bool CSG_MetaData::Add_Property | ( | const CSG_String & | Name, |
| double | Value ) |
Definition at line 595 of file metadata.cpp.
References Add_Property(), CSG_String::Format(), and SG_T.
| bool CSG_MetaData::Add_Property | ( | const CSG_String & | Name, |
| int | Value ) |
Definition at line 600 of file metadata.cpp.
References Add_Property(), CSG_String::Format(), and SG_T.
| bool CSG_MetaData::Add_Property | ( | const CSG_String & | Name, |
| sLong | Value ) |
Definition at line 605 of file metadata.cpp.
References Add_Property(), CSG_String::Format(), and SG_T.
| bool CSG_MetaData::Assign | ( | const CSG_MetaData & | MetaData, |
| bool | bAddChildren = true ) |
Definition at line 780 of file metadata.cpp.
References Add_Children(), Add_Property(), CSG_MetaData(), Destroy(), Get_Content(), Get_Name(), Get_Property(), Get_Property_Count(), Get_Property_Name(), Set_Content(), and Set_Name().
Referenced by Create(), CSG_HTTP, CSG_Tool::DataObject_Set_History(), Ins_Child(), and operator=().
| CSG_String CSG_MetaData::asText | ( | int | Flags = 0 | ) | const |
Definition at line 721 of file metadata.cpp.
References CSG_String::AfterFirst(), Get_Child(), Get_Children_Count(), Get_Content(), Get_Name(), and Save().
Referenced by CSG_Tool_Chain::Get_Script(), and CSG_Tool::Get_Summary().
| bool CSG_MetaData::Cmp_Content | ( | const CSG_String & | String, |
| bool | bNoCase = false ) const |
Definition at line 571 of file metadata.cpp.
Referenced by CSG_Parameter_Bool::_Serialize(), and CSG_Parameter_Data_Object::_Serialize().
| bool CSG_MetaData::Cmp_Name | ( | const CSG_String & | String, |
| bool | bNoCase = true ) const |
Definition at line 484 of file metadata.cpp.
Referenced by CSG_Tool_Chain::Create(), CSG_Tool_Chains::CSG_Tool_Chains(), CSG_Projection::Get_Description(), CSG_Classifier_Supervised::Load(), and CSG_Parameters::Load().
| bool CSG_MetaData::Cmp_Property | ( | const CSG_String & | Name, |
| const CSG_String & | String, | ||
| bool | bNoCase = false ) const |
Definition at line 694 of file metadata.cpp.
References CSG_String::Cmp(), CSG_String::CmpNoCase(), and Get_Property().
Referenced by CSG_Tool_Chain::Create(), CSG_Projection::Get_Description(), CSG_Parameter::Serialize(), and to_JSON().
| bool CSG_MetaData::Create | ( | const CSG_MetaData & | MetaData | ) |
Definition at line 86 of file metadata.cpp.
References Assign(), and CSG_MetaData().
| bool CSG_MetaData::Create | ( | const CSG_String & | File, |
| const SG_Char * | Extension = NULL ) |
Definition at line 99 of file metadata.cpp.
| bool CSG_MetaData::Create | ( | CSG_File & | File | ) |
Definition at line 112 of file metadata.cpp.
References Load().
| bool CSG_MetaData::Create | ( | void | ) |
Definition at line 73 of file metadata.cpp.
Referenced by CSG_Grid::Create(), CSG_HTTP, CSG_MetaData(), CSG_MetaData(), CSG_MetaData(), and from_JSON().
| bool CSG_MetaData::Del_Child | ( | const CSG_String & | Name | ) |
Definition at line 343 of file metadata.cpp.
References CSG_String::AfterLast(), CSG_String::BeforeLast(), CSG_MetaData(), Del_Child(), CSG_String::Find(), and Get_Child().
| bool CSG_MetaData::Del_Child | ( | int | Index | ) |
Definition at line 321 of file metadata.cpp.
References CSG_MetaData(), and Get_Children_Count().
Referenced by Del_Child(), and Del_Children().
| bool CSG_MetaData::Del_Children | ( | int | Depth = 0, |
| const SG_Char * | Name = NULL ) |
Deletes children if depth level is reached, i.e. if depth level equals zero all children of the node will be deleted, if it is one only the grandchildren will be affected, and so on. If Name is a valid string, only those children are taken into account that have this name.
Definition at line 381 of file metadata.cpp.
References Del_Child(), Del_Children(), Get_Child(), Get_Children_Count(), Get_Name(), and SG_Char.
Referenced by CSG_Grids::Create(), Del_Children(), CSG_Tool::Get_History(), and CSG_Table::Save().
| bool CSG_MetaData::Del_Property | ( | const CSG_String & | Name | ) |
Definition at line 611 of file metadata.cpp.
References Del_Property(), Get_Property_Count(), and Get_Property_Name().
Referenced by Del_Property().
| bool CSG_MetaData::Del_Property | ( | int | i | ) |
Definition at line 624 of file metadata.cpp.
References Get_Property_Count().
| void CSG_MetaData::Destroy | ( | void | ) |
Definition at line 140 of file metadata.cpp.
References CSG_MetaData(), and Get_Children_Count().
Referenced by CSG_Grid::Assign(), Assign(), CSG_HTTP, CSG_Tool_Chains::CSG_Tool_Chains(), from_JSON(), from_XML(), from_XML(), Load(), Load(), Load_HTTP(), CSG_Data_Object::Load_MetaData(), CSG_HTTP::Request(), CSG_Parameters::Save(), and ~CSG_MetaData().
| void CSG_MetaData::Fmt_Content | ( | const char * | Format, |
| ... ) |
Definition at line 533 of file metadata.cpp.
Referenced by CSG_Parameter_Color::_Serialize(), CSG_Parameter_Double::_Serialize(), and CSG_Parameter_Range::_Serialize().
| void CSG_MetaData::Fmt_Content | ( | const wchar_t * | Format, |
| ... ) |
Definition at line 552 of file metadata.cpp.
| bool CSG_MetaData::from_JSON | ( | const CSG_String & | JSON | ) |
Definition at line 1127 of file metadata.cpp.
References Create(), Destroy(), JSON, and Set_Name().
Referenced by CSG_HTTP, and Load_JSON().
| bool CSG_MetaData::from_XML | ( | const char * | XML, |
| size_t | Length, | ||
| const char * | Encoding = "UTF-8" ) |
| bool CSG_MetaData::from_XML | ( | const CSG_String & | XML | ) |
Definition at line 995 of file metadata.cpp.
References CSG_String::c_str(), Destroy(), CSG_String::Length(), Load(), and SG_Char.
| CSG_MetaData * CSG_MetaData::Get_Child | ( | const CSG_String & | Name | ) | const |
Definition at line 426 of file metadata.cpp.
References CSG_String::AfterFirst(), CSG_String::BeforeFirst(), CSG_MetaData(), CSG_String::Find(), and Get_Child().
|
inline |
Definition at line 155 of file metadata.h.
References CSG_MetaData().
Referenced by CSG_Parameter_Fixed_Table::_Serialize(), asText(), CSG_Tool::DataObject_Set_History(), Del_Child(), Del_Children(), Get_Child(), Get_Child_by_JSON_Pointer(), Get_Content(), Get_Content(), Get_Table(), CSG_Classifier_Supervised::Load(), CSG_Table::Load(), operator()(), operator()(), operator[](), operator[](), operator[](), operator[](), Save(), CSG_Table::Save(), and to_JSON().
| CSG_MetaData * CSG_MetaData::Get_Child_by_JSON_Pointer | ( | const CSG_String & | JSON_Pointer | ) | const |
Definition at line 442 of file metadata.cpp.
References CSG_String::AfterFirst(), CSG_String::asInt(), CSG_String::BeforeFirst(), CSG_MetaData(), CSG_String::Find(), Get_Child(), Get_Child_by_JSON_Pointer(), and CSG_String::Replace().
Referenced by Get_Child_by_JSON_Pointer().
|
inline |
Definition at line 154 of file metadata.h.
Referenced by CSG_Parameter_Colors::_Serialize(), CSG_Parameter_Fixed_Table::_Serialize(), CSG_Parameter_List::_Serialize(), Add_Children(), asText(), CSG_Tool_Chain::Create(), CSG_Tool_Chains::CSG_Tool_Chains(), Del_Child(), Del_Children(), Destroy(), CSG_Projection::Get_Description(), Get_Table(), Ins_Child(), CSG_Classifier_Supervised::Load(), CSG_Parameters::Load(), CSG_Table::Load(), Mov_Child(), CSG_Tool_Chain::On_Parameters_Enable(), Save(), CSG_Parameters::Set_History(), and to_JSON().
| const SG_Char * CSG_MetaData::Get_Content | ( | const CSG_String & | Name | ) | const |
Definition at line 495 of file metadata.cpp.
References CSG_String::c_str(), CSG_MetaData(), Get_Child(), Get_Content(), CSG_String::is_Empty(), and SG_Char.
| bool CSG_MetaData::Get_Content | ( | const CSG_String & | Name, |
| CSG_String & | Value ) const |
Definition at line 508 of file metadata.cpp.
References CSG_String::c_str(), Get_Content(), CSG_String::is_Empty(), and SG_Char.
| bool CSG_MetaData::Get_Content | ( | const CSG_String & | Name, |
| double & | Value ) const |
Definition at line 523 of file metadata.cpp.
References CSG_String::asDouble(), and Get_Content().
| bool CSG_MetaData::Get_Content | ( | const CSG_String & | Name, |
| int & | Value ) const |
Definition at line 524 of file metadata.cpp.
References CSG_String::asInt(), and Get_Content().
| bool CSG_MetaData::Get_Content | ( | const CSG_String & | Name, |
| sLong & | Value ) const |
Definition at line 525 of file metadata.cpp.
References CSG_String::asLongLong(), and Get_Content().
|
inline |
Definition at line 140 of file metadata.h.
References Get_Child(), Get_Content(), and SG_Char.
Referenced by Get_Content().
|
inline |
Definition at line 139 of file metadata.h.
Referenced by CSG_Parameter_Choice::_Serialize(), CSG_Parameter_Choices::_Serialize(), CSG_Parameter_Color::_Serialize(), CSG_Parameter_Data_Object::_Serialize(), CSG_Parameter_Date::_Serialize(), CSG_Parameter_Double::_Serialize(), CSG_Parameter_Fixed_Table::_Serialize(), CSG_Parameter_Int::_Serialize(), CSG_Parameter_List::_Serialize(), CSG_Parameter_Range::_Serialize(), CSG_Parameter_String::_Serialize(), CSG_Parameter_Table_Field::_Serialize(), CSG_Parameter_Table_Fields::_Serialize(), Assign(), asText(), CSG_Tool_Chain::Create(), CSG_Tool_Chains::CSG_Tool_Chains(), Get_Content(), Get_Content(), Get_Content(), Get_Content(), Get_Content(), CSG_Projection::Get_Description(), Get_Table(), CSG_Classifier_Supervised::Load(), CSG_Table::Load(), Save(), and to_JSON().
|
inline |
Definition at line 153 of file metadata.h.
|
inline |
Definition at line 138 of file metadata.h.
Referenced by Assign(), asText(), Del_Children(), Get_Table(), CSG_Tool_Chain::On_Parameters_Enable(), Save(), Save(), Save(), to_JSON(), and to_XML().
|
inline |
|
inline |
Definition at line 189 of file metadata.h.
References Get_Property(), and SG_Char.
Referenced by Get_Property().
| bool CSG_MetaData::Get_Property | ( | const CSG_String & | Name, |
| CSG_String & | Value ) const |
Definition at line 675 of file metadata.cpp.
References Get_Property(), and SG_Char.
| bool CSG_MetaData::Get_Property | ( | const CSG_String & | Name, |
| double & | Value ) const |
Definition at line 689 of file metadata.cpp.
References CSG_String::asDouble(), and Get_Property().
| bool CSG_MetaData::Get_Property | ( | const CSG_String & | Name, |
| int & | Value ) const |
Definition at line 690 of file metadata.cpp.
References CSG_String::asInt(), and Get_Property().
| bool CSG_MetaData::Get_Property | ( | const CSG_String & | Name, |
| sLong & | Value ) const |
Definition at line 691 of file metadata.cpp.
References CSG_String::asLongLong(), and Get_Property().
|
inline |
Definition at line 188 of file metadata.h.
References SG_Char.
Referenced by CSG_Parameter_Choice::_Serialize(), CSG_Parameter_Data_Object::_Serialize(), CSG_Parameter_Fixed_Table::_Serialize(), CSG_Parameter_Table_Field::_Serialize(), Assign(), Cmp_Property(), CSG_Tool_Chain::Create(), CSG_Projection::Get_Description(), Get_Property(), Get_Property(), Get_Property(), Get_Property(), CSG_Classifier_Supervised::Load(), CSG_Parameters::Load(), Save(), and CSG_Tool_Chain::Save_History_to_Model().
|
inline |
Definition at line 186 of file metadata.h.
Referenced by Assign(), Del_Property(), Del_Property(), and Save().
|
inline |
Definition at line 187 of file metadata.h.
Referenced by Assign(), Del_Property(), and Save().
| CSG_Table CSG_MetaData::Get_Table | ( | int | Flags = 0 | ) | const |
Definition at line 756 of file metadata.cpp.
References CSG_Table::Add_Field(), CSG_Table::Add_Record(), Get_Child(), Get_Children_Count(), Get_Content(), Get_Name(), CSG_Table_Record::Set_Value(), and SG_DATATYPE_String.
| CSG_MetaData * CSG_MetaData::Ins_Child | ( | const CSG_MetaData & | MetaData, |
| int | Position, | ||
| bool | bAddChildren = true ) |
Definition at line 263 of file metadata.cpp.
References Assign(), CSG_MetaData(), and Ins_Child().
| CSG_MetaData * CSG_MetaData::Ins_Child | ( | const CSG_String & | Name, |
| const CSG_String & | Content, | ||
| int | Position ) |
Definition at line 230 of file metadata.cpp.
References CSG_MetaData(), and Ins_Child().
| CSG_MetaData * CSG_MetaData::Ins_Child | ( | const CSG_String & | Name, |
| double | Content, | ||
| int | Position ) |
Definition at line 248 of file metadata.cpp.
References CSG_MetaData(), Ins_Child(), and SG_Get_String().
| CSG_MetaData * CSG_MetaData::Ins_Child | ( | const CSG_String & | Name, |
| int | Content, | ||
| int | Position ) |
Definition at line 253 of file metadata.cpp.
References CSG_MetaData(), CSG_String::Format(), Ins_Child(), and SG_T.
| CSG_MetaData * CSG_MetaData::Ins_Child | ( | const CSG_String & | Name, |
| int | Position ) |
Definition at line 243 of file metadata.cpp.
References CSG_MetaData(), and Ins_Child().
| CSG_MetaData * CSG_MetaData::Ins_Child | ( | const CSG_String & | Name, |
| sLong | Content, | ||
| int | Position ) |
Definition at line 258 of file metadata.cpp.
References CSG_MetaData(), CSG_String::Format(), Ins_Child(), and SG_T.
| CSG_MetaData * CSG_MetaData::Ins_Child | ( | int | Position | ) |
Definition at line 207 of file metadata.cpp.
References CSG_MetaData(), and Get_Children_Count().
Referenced by Add_Child(), Add_Child(), Add_Child(), Add_Child(), Add_Child(), Add_Child(), Add_Child(), Ins_Child(), Ins_Child(), Ins_Child(), Ins_Child(), Ins_Child(), and Ins_Child().
| bool CSG_MetaData::Load | ( | class wxXmlNode * | pNode | ) |
Definition at line 867 of file metadata.cpp.
References Add_Child(), Add_Property(), and Load().
| bool CSG_MetaData::Load | ( | const CSG_String & | File, |
| const SG_Char * | Extension = NULL ) |
Definition at line 809 of file metadata.cpp.
References CSG_String::AfterFirst(), CSG_String::BeforeFirst(), CSG_String::c_str(), Destroy(), CSG_String::Find(), CSG_String::Length(), Length, Load(), Load_HTTP(), Load_JSON(), CSG_String::Right(), SG_Char, SG_File_Cmp_Extension(), SG_File_Exists(), and SG_File_Make_Path().
Referenced by Create(), Create(), CSG_HTTP, from_XML(), from_XML(), CSG_PointCloud::Get_Header_Content(), CSG_Classifier_Supervised::Load(), Load(), Load(), Load(), CSG_Parameters::Load(), Load_HTTP(), CSG_Data_Object::Load_MetaData(), and CSG_HTTP::Request().
| bool CSG_MetaData::Load | ( | CSG_File & | Stream | ) |
Definition at line 850 of file metadata.cpp.
References Destroy(), CSG_File::Get_Stream(), CSG_File::is_Reading(), and Load().
| bool CSG_MetaData::Load_HTTP | ( | const CSG_String & | Server, |
| const CSG_String & | Path, | ||
| const SG_Char * | Username = NULL, | ||
| const SG_Char * | Password = NULL ) |
Definition at line 1042 of file metadata.cpp.
References CSG_String::c_str(), Destroy(), Length, Load(), and SG_Char.
| bool CSG_MetaData::Load_JSON | ( | const CSG_String & | File | ) |
Definition at line 1101 of file metadata.cpp.
References from_JSON(), JSON, CSG_File::Length(), CSG_File::Open(), CSG_File::Read(), and SG_FILE_R.
| bool CSG_MetaData::Mov_Child | ( | int | from_Index, |
| int | to_Index ) |
Definition at line 281 of file metadata.cpp.
References CSG_MetaData(), and Get_Children_Count().
|
inline |
Definition at line 180 of file metadata.h.
References CSG_MetaData(), and Get_Child().
|
inline |
Definition at line 179 of file metadata.h.
References CSG_MetaData(), and Get_Child().
|
inline |
Definition at line 134 of file metadata.h.
References Add_Child(), and CSG_MetaData().
|
inline |
Definition at line 133 of file metadata.h.
References Assign(), and CSG_MetaData().
|
inline |
Definition at line 182 of file metadata.h.
References CSG_MetaData(), and Get_Child().
|
inline |
Definition at line 184 of file metadata.h.
References CSG_MetaData(), and Get_Child().
|
inline |
Definition at line 181 of file metadata.h.
References CSG_MetaData(), and Get_Child().
|
inline |
Definition at line 183 of file metadata.h.
References CSG_MetaData(), and Get_Child().
| bool CSG_MetaData::Save | ( | class wxXmlNode * | pNode | ) | const |
Definition at line 938 of file metadata.cpp.
References CSG_String::c_str(), Get_Child(), Get_Children_Count(), Get_Content(), Get_Name(), Get_Property(), Get_Property_Count(), Get_Property_Name(), CSG_String::is_Empty(), Length, CSG_String::Replace(), Save(), and SG_T.
| bool CSG_MetaData::Save | ( | const CSG_String & | File, |
| const SG_Char * | Extension = NULL ) const |
Definition at line 904 of file metadata.cpp.
References Get_Name(), Save(), SG_Char, and SG_File_Make_Path().
Referenced by asText(), CSG_HTTP, CSG_Classifier_Supervised::Save(), Save(), Save(), Save(), CSG_Parameters::Save(), CSG_PointCloud::Save(), and to_XML().
| bool CSG_MetaData::Save | ( | CSG_File & | Stream | ) | const |
Definition at line 921 of file metadata.cpp.
References Get_Name(), CSG_File::Get_Stream(), CSG_File::is_Writing(), and Save().
| bool CSG_MetaData::Save_JSON | ( | const CSG_String & | File | ) | const |
Definition at line 1114 of file metadata.cpp.
References JSON, CSG_File::Open(), SG_FILE_ENCODING_UTF8, SG_FILE_W, to_JSON(), and CSG_File::Write().
Referenced by CSG_HTTP.
|
inline |
Definition at line 146 of file metadata.h.
Referenced by CSG_Parameter::_Serialize(), CSG_Parameter_Bool::_Serialize(), CSG_Parameter_Choice::_Serialize(), CSG_Parameter_Choices::_Serialize(), CSG_Parameter_Data_Object::_Serialize(), CSG_Parameter_Date::_Serialize(), CSG_Parameter_Int::_Serialize(), CSG_Parameter_String::_Serialize(), CSG_Parameter_Table_Field::_Serialize(), CSG_Parameter_Table_Fields::_Serialize(), Assign(), and CSG_Tool::DataObject_Set_History().
|
inline |
Definition at line 136 of file metadata.h.
Referenced by Assign(), from_JSON(), CSG_Tool::Get_History(), CSG_Tool_Chain::Get_Script(), CSG_Tool::Get_Summary(), CSG_Classifier_Supervised::Save(), CSG_Parameters::Save(), and CSG_Parameters::Set_History().
| bool CSG_MetaData::Set_Property | ( | const CSG_String & | Name, |
| const CSG_String & | Value, | ||
| bool | bAddIfNotExists = true ) |
Definition at line 638 of file metadata.cpp.
Referenced by CSG_Parameter_Fixed_Table::_Serialize(), CSG_Parameter_Parameters::_Serialize(), CSG_Parameter_Table_Field::_Serialize(), CSG_Tool::DataObject_Set_History(), CSG_Parameters::Save(), CSG_Tool::Set_History(), Set_Property(), Set_Property(), and Set_Property().
| bool CSG_MetaData::Set_Property | ( | const CSG_String & | Name, |
| double | Value, | ||
| bool | bAddIfNotExists = true ) |
Definition at line 659 of file metadata.cpp.
References CSG_String::Format(), Set_Property(), and SG_T.
| bool CSG_MetaData::Set_Property | ( | const CSG_String & | Name, |
| int | Value, | ||
| bool | bAddIfNotExists = true ) |
Definition at line 664 of file metadata.cpp.
References CSG_String::Format(), Set_Property(), and SG_T.
| bool CSG_MetaData::Set_Property | ( | const CSG_String & | Name, |
| sLong | Value, | ||
| bool | bAddIfNotExists = true ) |
Definition at line 669 of file metadata.cpp.
References CSG_String::Format(), Set_Property(), and SG_T.
| bool CSG_MetaData::to_JSON | ( | CSG_String & | JSON | ) | const |
Definition at line 1149 of file metadata.cpp.
References Cmp_Property(), Get_Child(), Get_Children_Count(), Get_Content(), Get_Name(), Get_Parent(), JSON, and to_JSON().
Referenced by CSG_HTTP, Save_JSON(), and to_JSON().
| bool CSG_MetaData::to_XML | ( | CSG_String & | XML | ) | const |
Definition at line 1012 of file metadata.cpp.
References CSG_Array::Get_Array(), Get_Name(), CSG_Array::Get_Size(), and Save().
Referenced by CSG_HTTP.
|
friend |
Definition at line 92 of file metadata.h.
References Assign(), Create(), CSG_HTTP, CSG_MetaData(), Destroy(), from_JSON(), from_XML(), JSON, Length, Load(), Load_HTTP(), Load_JSON(), Save(), Save_JSON(), SG_Char, to_JSON(), and to_XML().
Referenced by CSG_HTTP.