Public Member Functions | |
virtual bool | exists () |
virtual bool | getProperty (std::string &out, const char *property) |
bool | getProperty (std::vector< std::string > &out, const char *property) override |
virtual bool | getProperty (double &out, const char *property) |
virtual bool | getProperty (int &out, const char *property) |
virtual bool | getProperty (MatNd *&out, const char *property) |
virtual bool | getPropertyBool (const char *property, bool def=false) |
virtual PropertySource * | getChild (const char *prefix) |
virtual const std::vector< PropertySource * > & | getChildList (const char *prefix) |
virtual PropertySource * | clone () const |
virtual void | saveXML (const char *fileName, const char *rootNodeName) |
![]() | |
PropertySource () | |
virtual | ~PropertySource () |
Additional Inherited Members | |
![]() | |
static PropertySource * | empty () |
Definition at line 50 of file PropertySource.cpp.
|
inlinevirtual |
Create an independent copy of this property source.
Implements Rcs::PropertySource.
Definition at line 98 of file PropertySource.cpp.
|
inlinevirtual |
Check if this property source exists in the underlying storage.
Implements Rcs::PropertySource.
Definition at line 53 of file PropertySource.cpp.
|
inlinevirtual |
Obtain a child property source.
The exact meaning of this depends on the implementation. For an Xml document, it could be a child element. For a python dict, it could be a dict-typed entry.
The returned object is owned by the parent.
Implements Rcs::PropertySource.
Definition at line 87 of file PropertySource.cpp.
|
inlinevirtual |
Obtain a list of child property sources. The exact meaning of this depends on the implementation. For an Xml document, it could be child elements with the same tag name. For a python dict, it could be a list of dicts.
The returned objects are owned by the parent.
Implements Rcs::PropertySource.
Definition at line 92 of file PropertySource.cpp.
|
inlinevirtual |
Read a string value.
[out] | out | storage for read value |
[in] | property | name of property to read |
std::exception | if the property exists, but couldn't be converted |
Implements Rcs::PropertySource.
Definition at line 58 of file PropertySource.cpp.
|
inlineoverridevirtual |
Read a string list value.
[out] | out | storage for read value |
[in] | property | name of property to read |
std::exception | if the property exists, but couldn't be converted |
Implements Rcs::PropertySource.
Definition at line 63 of file PropertySource.cpp.
|
inlinevirtual |
Read a double value.
[out] | out | storage for read value |
[in] | property | name of property to read |
std::exception | if the property exists, but couldn't be converted |
Implements Rcs::PropertySource.
Definition at line 67 of file PropertySource.cpp.
|
inlinevirtual |
Read an int value.
[out] | out | storage for read value |
[in] | property | name of property to read |
std::exception | if the property exists, but couldn't be converted |
Implements Rcs::PropertySource.
Definition at line 72 of file PropertySource.cpp.
|
inlinevirtual |
Read a vector/matrix value. The variable out should be a pointer and will be set to a newly created MatNd* on success.
[out] | out | storage for read value |
[in] | property | name of property to read |
std::exception | if the property exists, but couldn't be converted |
Implements Rcs::PropertySource.
Definition at line 77 of file PropertySource.cpp.
|
inlinevirtual |
Read a boolean value, returning a default value if not found. This interface differs from the others to ease usability
[in] | property | name of property to read |
[in] | def | value to return if property doesn't exist |
std::exception | if the property exists, but couldn't be converted |
Implements Rcs::PropertySource.
Definition at line 82 of file PropertySource.cpp.
|
inlinevirtual |
Save this property source as xml file.
[in] | fileName | name of the file to write |
[in] | rootNodeName | name of the xml root node |
Implements Rcs::PropertySource.
Definition at line 103 of file PropertySource.cpp.