Ilwis-Objects  1.0
GIS and Remote Sensing framework for data access and processing
 All Classes Functions Enumerations Pages
Public Member Functions | Protected Member Functions | Friends | List of all members
Ilwis::Identity Class Reference

general class to describe the identity of a class More...

#include <identity.h>

Inheritance diagram for Ilwis::Identity:
Ilwis::CatalogItem Ilwis::CatalogView Ilwis::ColumnDefinition Ilwis::GeodeticDatum Ilwis::GeoRefImplementation Ilwis::IlwisObject Ilwis::NumericItem Ilwis::OperationImplementation Ilwis::OperationParameter Ilwis::Parameter Ilwis::Resource

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
 

Detailed Description

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.

Member Function Documentation

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.

Returns
a string identifying the object
quint64 Identity::id ( ) const

id returns a unsigned 64-bit number unique for the objects using the identity

Returns
64-bits unsigned integer
QString Identity::name ( ) const
virtual

name returns the name of an object. All objects have names though names need not to be unique

Returns

Reimplemented in Ilwis::NumericItem.

void Identity::setCode ( const QString &  code)
virtual

sets the code for this instance

Parameters
codeunique 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

Parameters
nthe name

The documentation for this class was generated from the following files: