31 #ifndef _PROPERTYSOURCEDICT_H_ 32 #define _PROPERTYSOURCEDICT_H_ 37 #include <pybind11/pybind11.h> 52 std::map<std::string, PropertySourceDict*>
children;
75 virtual bool getProperty(std::string& out,
const char* property);
77 virtual bool getProperty(std::vector<std::string> &out,
const char *property);
79 virtual bool getProperty(
double& out,
const char* property);
81 virtual bool getProperty(
int& out,
const char* property);
83 virtual bool getProperty(MatNd*& out,
const char* property);
90 virtual const std::vector<PropertySource*>&
getChildList(
const char* prefix);
94 const std::string& value);
96 virtual void setProperty(
const char* property,
bool value);
98 virtual void setProperty(
const char* property,
int value);
100 virtual void setProperty(
const char* property,
double value);
102 virtual void setProperty(
const char* property, MatNd* value);
106 virtual void saveXML(
const char* fileName,
const char* rootNodeName);
virtual void saveXML(const char *fileName, const char *rootNodeName)
virtual PropertySink * getChild(const char *prefix)
virtual PropertySink * clone() const
PropertySourceDict * parent
virtual ~PropertySourceDict()
void appendPrefix(std::ostream &)
virtual const std::vector< PropertySource * > & getChildList(const char *prefix)
PropertySourceDict(pybind11::dict dict, PropertySourceDict *parent, const char *prefix, bool exists)
virtual bool getProperty(std::string &out, const char *property)
std::map< std::string, PropertySourceDict * > children
std::map< std::string, std::vector< PropertySource * > > listChildren
virtual bool getPropertyBool(const char *property, bool def=false)
virtual void setProperty(const char *property, const std::string &value)