Ilwis-Objects
1.0
GIS and Remote Sensing framework for data access and processing
|
general class to describe the identity of a class More...
#include <identity.h>
Public Member Functions | |
virtual void | setCode (const QString &code) |
sets the code for this instance More... | |
QString | code () const |
code returns the code of the identity. If no code is attached it will return sUNDEF ("?"). More... | |
quint64 | id () const |
id returns a unsigned 64-bit number unique for the objects using the identity More... | |
virtual QString | name () const |
name returns the name of an object. All objects have names though names need not to be unique More... | |
void | setName (const QString &n) |
setName sets the name of an object. All objects have names though names need not to be unique More... | |
virtual QString | description () const |
void | setDescription (const QString &desc) |
Protected Member Functions | |
Identity (const QString &name, qint64 id=i64UNDEF, const QString &cde=sUNDEF, const QString &descr=sUNDEF) | |
void | prepare (quint64 base=0) |
void | setId (quint64 newid) |
Friends | |
class | Resource |
general class to describe the identity of a class
The identity is used as baseclass for a number of classes that need a unique identification The code and id are unique. The code has an attached meaning usualy related to the type of the instance Other members might be unique (e.g. name) but that depends on the type of class. Codes are not mandatory.
QString Identity::code | ( | ) | const |
code returns the code of the identity. If no code is attached it will return sUNDEF ("?").
*A code is unique for a certain type of objects. The difference between code and id (see below) is that code may have some meaning and that they are only unique *for a certain type of objects (e.g. epsg number for coordinate systems), while id are all uniquem irrespective of the type.
quint64 Identity::id | ( | ) | const |
id returns a unsigned 64-bit number unique for the objects using the identity
|
virtual |
name returns the name of an object. All objects have names though names need not to be unique
Reimplemented in Ilwis::NumericItem.
|
virtual |
sets the code for this instance
code | unique code from a code set that is unique for this class |
Reimplemented in Ilwis::IlwisObject.
void Identity::setName | ( | const QString & | n | ) |
setName sets the name of an object. All objects have names though names need not to be unique
n | the name |