26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_CONSTRAINT_H    27 #define __TERRALIB_DATAACCESS_INTERNAL_CONSTRAINT_H    30 #include "../Config.h"    73         Constraint(
const std::string& name, 
unsigned int id = 0);
   103         virtual unsigned int getId()
 const { 
return m_id; }
   112         virtual void setId(
unsigned int id) { m_id = id; }
   119         virtual const std::string& 
getName()
 const { 
return m_name; }
   126         virtual void setName(
const std::string& name) { m_name = name; }
   173 #endif  // __TERRALIB_DATAACCESS_INTERNAL_CONSTRAINT_H virtual void setName(const std::string &name)
It sets the constraint name. 
 
virtual void setDataSetType(DataSetType *dt)
It sets the DataSetType associated to the constraint. 
 
A class that models the description of a dataset. 
 
virtual void setId(unsigned int id)
It sets the constraint identifier. 
 
virtual unsigned int getId() const
It returns the constraint identifier. 
 
virtual const std::string & getName() const
It returns the constraint name. 
 
ConstraintType
A ConstraintType can have one of the following types: 
 
unsigned int m_id
An identification number for the constraint. 
 
virtual ~Constraint()
Virtual destructor. 
 
std::string m_name
The constraint name. 
 
DataSetType * m_dt
The associated DataSetType. 
 
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
virtual DataSetType * getDataSetType() const
It returns the DataSetType associated to the constraint.