26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_INDEX_H
27 #define __TERRALIB_DATAACCESS_INTERNAL_INDEX_H
30 #include "../Config.h"
40 namespace dt {
class Property; }
83 Index(
const std::string& name,
103 Index(
const std::string& name,
105 const std::vector<te::dt::Property*>& properties,
107 unsigned int id = 0);
139 unsigned int getId()
const {
return m_id; }
148 void setId(
unsigned int id) { m_id = id; }
155 const std::string&
getName()
const {
return m_name; }
162 void setName(
const std::string& name) { m_name = name; }
183 const std::vector<te::dt::Property*>&
getProperties()
const {
return m_properties; }
190 void setProperties(
const std::vector<te::dt::Property*>& properties) { m_properties = properties; }
256 #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.
void setIndexType(IndexType t)
It sets the index type.
void add(te::dt::Property *p)
It adds the property to the list of properties of the index.
DataSetType * getDataSetType() const
It returns the DataSetType associated to the index.
It models a property definition.
void setId(unsigned int id)
It sets the DataSetType identifier.
unsigned int m_id
An identification number for the index.
void setProperties(const std::vector< te::dt::Property * > &properties)
It sets the properties that take part of the index.
std::string m_name
The index name.
const std::vector< te::dt::Property * > & getProperties() const
It returns the properties that take part of the index.
unsigned int getId() const
It returns the index identifier.
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.
IndexType getIndexType() const
It gets the index type.
std::vector< te::dt::Property * > m_properties
The list of properties that form the index.
It describes an index associated to a DataSetType.
const std::string & getName() const
It returns the index name.