#include <Constraint.h>
Definition at line 50 of file Constraint.h.
te::da::Constraint::Constraint |
( |
unsigned int |
id = 0 | ) |
|
Constructor.
- Parameters
-
id | The constraint identifier. |
- Note
- The new constraint will belong to the given DataSetType.
- Warning
- The identifier value (id) may be used by data source implementations. So, don't rely on its value!
te::da::Constraint::Constraint |
( |
const std::string & |
name, |
|
|
unsigned int |
id = 0 |
|
) |
| |
Constructor.
- Parameters
-
name | The constraint name. |
id | The constraint identifier. |
- Warning
- The identifier value (id) may be used by data source implementations. So, don't rely on its value!
te::da::Constraint::Constraint |
( |
const Constraint & |
rhs | ) |
|
Copy constructor not allowed.
The new object will not have an associated DataSetType.
- Parameters
-
rhs | Right-hand-side instance. |
virtual te::da::Constraint::~Constraint |
( |
| ) |
|
|
inlinevirtual |
virtual DataSetType* te::da::Constraint::getDataSetType |
( |
| ) |
const |
|
inlinevirtual |
virtual unsigned int te::da::Constraint::getId |
( |
| ) |
const |
|
inlinevirtual |
It returns the constraint identifier.
- Returns
- A number that identifies the constraint.
- Warning
- The identifier value (id) may be used by data source implementations. So, don't rely on its value!
Definition at line 103 of file Constraint.h.
virtual const std::string& te::da::Constraint::getName |
( |
| ) |
const |
|
inlinevirtual |
It returns the constraint name.
- Returns
- The constraint name.
Definition at line 119 of file Constraint.h.
Assignment operator not allowed.
- Parameters
-
rhs | Right-hand-side instance. |
- Returns
- A reference to this object.
virtual void te::da::Constraint::setDataSetType |
( |
DataSetType * |
dt | ) |
|
|
inlinevirtual |
It sets the DataSetType associated to the constraint.
- Parameters
-
- Warning
- Take care when calling this method. If the constraint belongs to a DataSetType, remember to detach it from the DataSetType before calling this method.
Definition at line 143 of file Constraint.h.
virtual void te::da::Constraint::setId |
( |
unsigned int |
id | ) |
|
|
inlinevirtual |
It sets the constraint identifier.
- Parameters
-
id | A number that identifies the constraint. |
- Warning
- The identifier value (id) may be used by data source implementations. So, don't rely on its value!
Definition at line 112 of file Constraint.h.
virtual void te::da::Constraint::setName |
( |
const std::string & |
name | ) |
|
|
inlinevirtual |
It sets the constraint name.
- Parameters
-
Definition at line 126 of file Constraint.h.
unsigned int te::da::Constraint::m_id |
|
private |
An identification number for the constraint.
Definition at line 165 of file Constraint.h.
std::string te::da::Constraint::m_name |
|
private |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/dataaccess/dataset/Constraint.h