26#ifndef __TERRALIB_DATAACCESS_INTERNAL_INDEX_H 
   27#define __TERRALIB_DATAACCESS_INTERNAL_INDEX_H 
   32#include "../../datatype/Property.h" 
  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);
 
A class that models the description of a dataset.
 
It describes an index associated to a DataSetType.
 
std::string m_name
The index name.
 
void setDataSetType(DataSetType *dt)
It sets the DataSetType associated to the index.
 
unsigned int m_id
An identification number for the index.
 
IndexType getIndexType() const
It gets the index type.
 
IndexType m_type
The index type.
 
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.
 
void setIndexType(IndexType t)
It sets the index type.
 
unsigned int getId() const
It returns the index identifier.
 
const std::string & getName() const
It returns the index name.
 
Index & operator=(const Index &rhs)
Assignment operator.
 
Index(const Index &rhs)
Copy constructor.
 
bool has(const std::string &propertyName)
It verifies if Property is associated to the index.
 
Index(DataSetType *parent=0, unsigned int id=0)
Constructor.
 
std::vector< te::dt::Property * > m_properties
The list of properties that form the index.
 
DataSetType * m_dt
The parent DataSetType.
 
void replace(const std::string &propName, const te::dt::Property *pp)
It changes the reference to property p to pp.
 
void setName(const std::string &name)
It sets the index name.
 
Index * clone() const
It returns a clone of the object.
 
DataSetType * getDataSetType() const
It returns the DataSetType associated to the index.
 
const std::vector< te::dt::Property * > & getProperties() const
It returns the properties that take part of the index.
 
Index(const std::string &name, IndexType t=B_TREE_TYPE, DataSetType *dt=0, unsigned int id=0)
Constructor.
 
It models a property definition.
 
virtual Property * clone() const =0
It returns a clone of the object.
 
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.