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