Functions
XMLParseUtils Namespace Reference

XML helpers function to extract values from pugi::xml_node More...

Functions

int GetIntAttr (const pugi::xml_node &node, const char *str)
 Gets the integer attribute from pugi::xml_node More...
 
int GetIntAttr (const pugi::xml_node &node, const char *str, int defVal)
 Gets the integer attribute from pugi::xml_node More...
 
int64_t GetInt64Attr (const pugi::xml_node &node, const char *str)
 Gets the int64_t attribute from pugi::xml_node More...
 
int64_t GetInt64Attr (const pugi::xml_node &node, const char *str, int64_t defVal)
 Gets the int64_t attribute from pugi::xml_node More...
 
uint64_t GetUInt64Attr (const pugi::xml_node &node, const char *str)
 Gets the uint64_t attribute from pugi::xml_node More...
 
uint64_t GetUInt64Attr (const pugi::xml_node &node, const char *str, uint64_t defVal)
 Gets the uint64_t attribute from pugi::xml_node More...
 
unsigned int GetUIntAttr (const pugi::xml_node &node, const char *str)
 Gets the unsigned integer attribute from pugi::xml_node More...
 
unsigned int GetUIntAttr (const pugi::xml_node &node, const char *str, unsigned int defVal)
 Gets the unsigned integer attribute from pugi::xml_node More...
 
std::string GetStrAttr (const pugi::xml_node &node, const char *str)
 Gets the string attribute from pugi::xml_node More...
 
std::string GetStrAttr (const pugi::xml_node &node, const char *str, const char *def)
 Gets the string attribute from pugi::xml_node More...
 
bool GetBoolAttr (const pugi::xml_node &node, const char *str)
 Gets the bool attribute from pugi::xml_node More...
 
bool GetBoolAttr (const pugi::xml_node &node, const char *str, const bool def)
 Gets the bool attribute from pugi::xml_node More...
 
float GetFloatAttr (const pugi::xml_node &node, const char *str)
 Gets the float attribute from pugi::xml_node More...
 
float GetFloatAttr (const pugi::xml_node &node, const char *str, float defVal)
 Gets the float attribute from pugi::xml_node More...
 
InferenceEngine::Precision GetPrecisionAttr (const pugi::xml_node &node, const char *str)
 Gets the Precision attribute from pugi::xml_node More...
 
InferenceEngine::Precision GetPrecisionAttr (const pugi::xml_node &node, const char *str, InferenceEngine::Precision def)
 Gets the Precision attribute from pugi::xml_node More...
 
int GetIntChild (const pugi::xml_node &node, const char *str, int defVal)
 Gets the integer value located in a child node. More...
 

Detailed Description

XML helpers function to extract values from pugi::xml_node

Function Documentation

◆ GetIntAttr()

int XMLParseUtils::GetIntAttr ( const pugi::xml_node &  node,
const char *  str,
int  defVal 
)

Gets the integer attribute from pugi::xml_node

Parameters
[in]nodeThe node
[in]strThe string identifying value name
[in]defValThe default value
Returns
An integer value