Go to the documentation of this file.
58 CSerializable::Ptr
get(
const std::string& propertyName)
const;
63 void set(
const std::string& propertyName,
const CSerializable::Ptr& obj);
CSerializable::Ptr get(const std::string &propertyName) const
Returns the value of the property (case insensitive), or nullptr if it does not exist.
#define DEFINE_SERIALIZABLE(class_name, NS)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
CPropertiesValuesList()
Default constructor.
Classes related to the implementation of Hybrid Metric Topological (HMT) SLAM.
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.
CPropertiesValuesList & operator=(const CPropertiesValuesList &o)
Copy operator.
size_t size() const
Returns the number of properties in the list.
~CPropertiesValuesList() override
Destructor.
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 2.0.3 at Fri May 15 15:49:54 UTC 2020 | |