31 #ifndef _PROPERTYSOURCEXML_H_ 32 #define _PROPERTYSOURCEXML_H_ 36 #include <libxml/tree.h> 52 std::map<std::string, PropertySource*>
children;
74 virtual bool getProperty(std::string& out,
const char* property);
76 bool getProperty(std::vector<std::string> &out,
const char *property)
override;
78 virtual bool getProperty(
double& out,
const char* property);
80 virtual bool getProperty(
int& out,
const char* property);
82 virtual bool getProperty(MatNd*& out,
const char* property);
88 virtual const std::vector<PropertySource*>&
getChildList(
const char* prefix);
92 virtual void saveXML(
const char* fileName,
const char* rootNodeName);
virtual const std::vector< PropertySource * > & getChildList(const char *prefix)
std::map< std::string, PropertySource * > children
virtual void saveXML(const char *fileName, const char *rootNodeName)
virtual bool getProperty(std::string &out, const char *property)
virtual PropertySource * clone() const
virtual PropertySource * getChild(const char *prefix)
std::map< std::string, std::vector< PropertySource * > > listChildren
PropertySourceXml(xmlNodePtr node, xmlDocPtr doc=NULL)
virtual ~PropertySourceXml()
virtual bool getPropertyBool(const char *property, bool def=false)