Go to the documentation of this file.
26 #ifndef __TERRALIB_DATATYPE_INTERNAL_COMPOSITEDATA_H
27 #define __TERRALIB_DATATYPE_INTERNAL_COMPOSITEDATA_H
151 #endif // __TERRALIB_DATATYPE_INTERNAL_COMPOSITEDATA_H
CompositeData()
Constructor.
A base class for composite data values.
CompositeData(std::size_t nComponents)
It prepares the internal container for at least nComponents.
std::vector< AbstractData * > m_values
The component values.
CompositeData(const CompositeData &rhs)
Copy constructor.
std::string m_name
The composite name.
AbstractData * getValue(std::size_t i) const
It returns the i-th component value of the composite data.
A base class for objects that can be retrieved from the data access module.
Enumerations of XML module.
AbstractData * clone() const
It creates a new clone of the composite.
void setName(const std::string &name)
~CompositeData()
Destructor.
void setValue(std::size_t i, AbstractData *value)
It sets the i-th component value of the composite data.
A base class for values that can be retrieved from the data access module.
void add(const std::string &name, AbstractData *value)
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.
int getTypeCode() const
It returns the associated data type code.
void add(AbstractData *value)
It adds the value as the last component of the composite data.
CompositeData & operator=(const CompositeData &rhs)
Copy constructor.
CompositeData(const std::string &name)
std::string toString() const
It returns the data value in a string representation.
std::vector< std::string > m_names
The component names.