Go to the documentation of this file.
9 #ifndef CPropertiesValuesList_H
10 #define CPropertiesValuesList_H
66 CSerializablePtr
get(
const std::string &propertyName)
const;
70 void set(
const std::string &propertyName,
const CSerializablePtr &obj);
std::vector< std::string > getPropertyNames() const
Returns the name of all properties in the list.
size_t size() const
Returns the number of properties in the list.
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE(class_name, base_name)
void set(const std::string &propertyName, const CSerializablePtr &obj)
Sets/change the value of the property (case insensitive), making a copy of the object (or setting it ...
virtual ~CPropertiesValuesList()
Destructor.
void clear()
Clears the list.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
CSerializablePtr get(const std::string &propertyName) const
Returns the value of the property (case insensitive), or NULL if it does not exist.
CPropertiesValuesList()
Default constructor.
std::vector< TPropertyValuePair > m_properties
The properties list: a map between strings and objects.
CPropertiesValuesList(const CPropertiesValuesList &o)
Copy constructor.
The virtual base class which provides a unified interface for all persistent objects in MRPT.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
An arbitrary list of "annotations", or named attributes, each being an instance of any CSerializable ...
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE(class_name, base_name)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
Page generated by Doxygen 1.8.20 for MRPT 1.4.0 SVN: at Thu Aug 27 02:40:23 UTC 2020 | | |