A PUGIXML wrappers to safely extract values of requested type. More...
Data Structures | |
struct | parse_result |
A XML parse result structure with an error message and the pugi::xml_document document. More... | |
Macros | |
#define | FOREACH_CHILD(c, p, tag) for (auto c = p.child(tag); !c.empty(); c = c.next_sibling(tag)) |
Defines convinient for-each based cycle to iterate over node childs. More... | |
Functions | |
int | XMLParseUtils::GetIntAttr (const pugi::xml_node &node, const char *str) |
Gets the integer attribute from pugi::xml_node More... | |
int64_t | XMLParseUtils::GetInt64Attr (const pugi::xml_node &node, const char *str) |
Gets the int64_t attribute from pugi::xml_node More... | |
int64_t | XMLParseUtils::GetInt64Attr (const pugi::xml_node &node, const char *str, int64_t defVal) |
Gets the int64_t attribute from pugi::xml_node More... | |
uint64_t | XMLParseUtils::GetUInt64Attr (const pugi::xml_node &node, const char *str) |
Gets the uint64_t attribute from pugi::xml_node More... | |
uint64_t | XMLParseUtils::GetUInt64Attr (const pugi::xml_node &node, const char *str, uint64_t defVal) |
Gets the uint64_t attribute from pugi::xml_node More... | |
unsigned int | XMLParseUtils::GetUIntAttr (const pugi::xml_node &node, const char *str) |
Gets the unsigned integer attribute from pugi::xml_node More... | |
unsigned int | XMLParseUtils::GetUIntAttr (const pugi::xml_node &node, const char *str, unsigned int defVal) |
Gets the unsigned integer attribute from pugi::xml_node More... | |
std::string | XMLParseUtils::GetStrAttr (const pugi::xml_node &node, const char *str) |
Gets the string attribute from pugi::xml_node More... | |
std::string | XMLParseUtils::GetStrAttr (const pugi::xml_node &node, const char *str, const char *def) |
Gets the string attribute from pugi::xml_node More... | |
bool | XMLParseUtils::GetBoolAttr (const pugi::xml_node &node, const char *str) |
Gets the bool attribute from pugi::xml_node More... | |
bool | XMLParseUtils::GetBoolAttr (const pugi::xml_node &node, const char *str, const bool def) |
Gets the bool attribute from pugi::xml_node More... | |
float | XMLParseUtils::GetFloatAttr (const pugi::xml_node &node, const char *str) |
Gets the float attribute from pugi::xml_node More... | |
float | XMLParseUtils::GetFloatAttr (const pugi::xml_node &node, const char *str, float defVal) |
Gets the float attribute from pugi::xml_node More... | |
InferenceEngine::Precision | XMLParseUtils::GetPrecisionAttr (const pugi::xml_node &node, const char *str) |
Gets the Precision attribute from pugi::xml_node More... | |
InferenceEngine::Precision | XMLParseUtils::GetPrecisionAttr (const pugi::xml_node &node, const char *str, InferenceEngine::Precision def) |
Gets the Precision attribute from pugi::xml_node More... | |
int | XMLParseUtils::GetIntChild (const pugi::xml_node &node, const char *str, int defVal) |
Gets the integer value located in a child node. More... | |
parse_result | ParseXml (const char *file_path) |
Parses a file and returns parse_result. More... | |
A PUGIXML wrappers to safely extract values of requested type.
#define FOREACH_CHILD | ( | c, | |
p, | |||
tag | |||
) | for (auto c = p.child(tag); !c.empty(); c = c.next_sibling(tag)) |
Defines convinient for-each based cycle to iterate over node childs.
c | Child node name |
p | Parent node name |
tag | The tag represented as a string value |
bool XMLParseUtils::GetBoolAttr | ( | const pugi::xml_node & | node, |
const char * | str | ||
) |
Gets the bool attribute from pugi::xml_node
[in] | node | The node |
[in] | str | The string identifying value name |
bool XMLParseUtils::GetBoolAttr | ( | const pugi::xml_node & | node, |
const char * | str, | ||
const bool | def | ||
) |
Gets the bool attribute from pugi::xml_node
[in] | node | The node |
[in] | str | The string identifying value name |
[in] | def | The default value |
float XMLParseUtils::GetFloatAttr | ( | const pugi::xml_node & | node, |
const char * | str | ||
) |
Gets the float attribute from pugi::xml_node
[in] | node | The node |
[in] | str | The string identifying value name |
float XMLParseUtils::GetFloatAttr | ( | const pugi::xml_node & | node, |
const char * | str, | ||
float | defVal | ||
) |
Gets the float attribute from pugi::xml_node
[in] | node | The node |
[in] | str | The string identifying value name |
[in] | defVal | The default value |
int64_t XMLParseUtils::GetInt64Attr | ( | const pugi::xml_node & | node, |
const char * | str | ||
) |
Gets the int64_t
attribute from pugi::xml_node
[in] | node | The node |
[in] | str | The string identifying value name |
int64_t
value int64_t XMLParseUtils::GetInt64Attr | ( | const pugi::xml_node & | node, |
const char * | str, | ||
int64_t | defVal | ||
) |
Gets the int64_t
attribute from pugi::xml_node
[in] | node | The node |
[in] | str | The string identifying value name |
[in] | defVal | The default value |
int64_t
value int XMLParseUtils::GetIntAttr | ( | const pugi::xml_node & | node, |
const char * | str | ||
) |
Gets the integer attribute from pugi::xml_node
[in] | node | The node |
[in] | str | The string |
int XMLParseUtils::GetIntChild | ( | const pugi::xml_node & | node, |
const char * | str, | ||
int | defVal | ||
) |
Gets the integer value located in a child node.
[in] | node | The node |
[in] | str | The string value identifying a child node |
[in] | defVal | The default value |
devVal
otherwise. InferenceEngine::Precision XMLParseUtils::GetPrecisionAttr | ( | const pugi::xml_node & | node, |
const char * | str | ||
) |
Gets the Precision attribute from pugi::xml_node
[in] | node | The node |
[in] | str | The string identifying value name |
InferenceEngine::Precision XMLParseUtils::GetPrecisionAttr | ( | const pugi::xml_node & | node, |
const char * | str, | ||
InferenceEngine::Precision | def | ||
) |
Gets the Precision attribute from pugi::xml_node
[in] | node | The node |
[in] | str | The string identifying value name |
[in] | def | The default value |
std::string XMLParseUtils::GetStrAttr | ( | const pugi::xml_node & | node, |
const char * | str | ||
) |
Gets the string attribute from pugi::xml_node
[in] | node | The node |
[in] | str | The string identifying value name |
std::string XMLParseUtils::GetStrAttr | ( | const pugi::xml_node & | node, |
const char * | str, | ||
const char * | def | ||
) |
Gets the string attribute from pugi::xml_node
[in] | node | The node |
[in] | str | The string identifying value name |
[in] | def | The default value |
uint64_t XMLParseUtils::GetUInt64Attr | ( | const pugi::xml_node & | node, |
const char * | str | ||
) |
Gets the uint64_t
attribute from pugi::xml_node
[in] | node | The node |
[in] | str | The string identifying value name |
uint64_t
value uint64_t XMLParseUtils::GetUInt64Attr | ( | const pugi::xml_node & | node, |
const char * | str, | ||
uint64_t | defVal | ||
) |
Gets the uint64_t
attribute from pugi::xml_node
[in] | node | The node |
[in] | str | The string identifying value name |
[in] | defVal | The default value |
uint64_t
value unsigned int XMLParseUtils::GetUIntAttr | ( | const pugi::xml_node & | node, |
const char * | str | ||
) |
Gets the unsigned integer attribute from pugi::xml_node
[in] | node | The node |
[in] | str | The string identifying value name |
unsigned int XMLParseUtils::GetUIntAttr | ( | const pugi::xml_node & | node, |
const char * | str, | ||
unsigned int | defVal | ||
) |
Gets the unsigned integer attribute from pugi::xml_node
[in] | node | The node |
[in] | str | The string identifying value name |
[in] | defVal | The default value |
|
inline |
Parses a file and returns parse_result.
[in] | file_path | The file path |