26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_INDEX_H 27 #define __TERRALIB_DATAACCESS_INTERNAL_INDEX_H 30 #include "../Config.h" 32 #include "../../datatype/Property.h" 81 Index(
const std::string& name,
117 unsigned int getId()
const {
return m_id; }
126 void setId(
unsigned int id) { m_id = id; }
133 const std::string&
getName()
const {
return m_name; }
140 void setName(
const std::string& name) { m_name = name; }
161 const std::vector<te::dt::Property*>&
getProperties()
const {
return m_properties; }
194 bool has(
const std::string& propertyName);
213 Index* clone()
const;
227 #endif // __TERRALIB_DATAACCESS_INTERNAL_INDEX_H void setDataSetType(DataSetType *dt)
It sets the DataSetType associated to the index.
DataSetType * m_dt
The parent DataSetType.
IndexType m_type
The index type.
A class that models the description of a dataset.
virtual Property * clone() const =0
It returns a clone of the object.
void setIndexType(IndexType t)
It sets the index type.
It models a property definition.
void setId(unsigned int id)
It sets the DataSetType identifier.
void add(const te::dt::Property *p)
It adds the property to the list of properties of the index.
unsigned int m_id
An identification number for the index.
const std::vector< te::dt::Property * > & getProperties() const
It returns the properties that take part of the index.
IndexType getIndexType() const
It gets the index type.
std::string m_name
The index name.
DataSetType * getDataSetType() const
It returns the DataSetType associated to the index.
const std::string & getName() const
It returns the index name.
void setName(const std::string &name)
It sets the index name.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
unsigned int getId() const
It returns the index identifier.
std::vector< te::dt::Property * > m_properties
The list of properties that form the index.
It describes an index associated to a DataSetType.