Go to the documentation of this file.
9 #ifndef CPropertiesValuesList_H
10 #define CPropertiesValuesList_H
CSerializable::Ptr get(const std::string &propertyName) const
Returns the value of the property (case insensitive), or nullptr if it does not exist.
GLsizei GLsizei GLuint * obj
virtual ~CPropertiesValuesList()
Destructor.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
CPropertiesValuesList()
Default constructor.
The virtual base class which provides a unified interface for all persistent objects in MRPT.
std::vector< std::string > getPropertyNames() const
Returns the name of all properties in the list.
An arbitrary list of "annotations", or named attributes, each being an instance of any CSerializable ...
void clear()
Clears the list.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
CPropertiesValuesList & operator=(const CPropertiesValuesList &o)
Copy operator.
GLsizei const GLchar ** string
size_t size() const
Returns the number of properties in the list.
std::vector< TPropertyValuePair > m_properties
The properties list: a map between strings and objects.
void set(const std::string &propertyName, const CSerializable::Ptr &obj)
Sets/change the value of the property (case insensitive), making a copy of the object (or setting it ...
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |