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; }
DataSetType * m_dt
The associated DataSetType.
Constraint(const Constraint &rhs)
Copy constructor not allowed.
virtual ConstraintType getType() const =0
It returns the constraint type.
Constraint(unsigned int id=0)
Constructor.
Constraint & operator=(const Constraint &rhs)
Assignment operator not allowed.
Constraint(const std::string &name, unsigned int id=0)
Constructor.
virtual void setName(const std::string &name)
It sets the constraint name.
virtual unsigned int getId() const
It returns the constraint identifier.
virtual ~Constraint()
Virtual destructor.
std::string m_name
The constraint name.
virtual void setDataSetType(DataSetType *dt)
It sets the DataSetType associated to the constraint.
virtual DataSetType * getDataSetType() const
It returns the DataSetType associated to the constraint.
virtual const std::string & getName() const
It returns the constraint name.
unsigned int m_id
An identification number for the constraint.
virtual void setId(unsigned int id)
It sets the constraint identifier.
virtual Constraint * clone()=0
It returns a clone of the object.
A class that models the description of a dataset.
ConstraintType
A ConstraintType can have one of the following types:
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.