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

#include <identifieritem.h>

Inheritance diagram for Ilwis::IndexedIdentifier:
Ilwis::DomainItem

Public Member Functions

 IndexedIdentifier ()
 
 IndexedIdentifier (const QString &label, quint32 ind=0, qint32 cnt=iUNDEF)
 
QString name () const
 
quint32 raw () const
 
QString prefix () const
 
void setPrefix (const QString &pf)
 
bool operator== (const IndexedIdentifier &item) const
 
DomainItemclone () const
 
IlwisTypes valueType () const
 
bool isValid () const
 
- Public Member Functions inherited from Ilwis::DomainItem
 DomainItem (quint32 rawvalue=iUNDEF)
 
virtual void raw (quint32 r)
 
template<typename ItemType >
ItemType * toType ()
 

Static Public Member Functions

static ItemRangecreateRange ()
 
static IlwisTypes valueTypeS ()
 

Friends

class IndexedIdentifierRange
 

Additional Inherited Members

- Protected Attributes inherited from Ilwis::DomainItem
quint32 _raw
 

Detailed Description

The IndexedIdentifier class

Constructor & Destructor Documentation

IndexedIdentifier::IndexedIdentifier ( )

Constructor for an empty IndexedIdentifier

IndexedIdentifier::IndexedIdentifier ( const QString &  label,
quint32  ind = 0,
qint32  cnt = iUNDEF 
)

Creates an IndexedIdentifier from a given label and index, and optionally a counter

Parameters
labelthe label of this indentifier, will be used as a prefix
indindex of this identifier, standard 0
cntcounter of this identifier, standard iUNDEF

Member Function Documentation

DomainItem * IndexedIdentifier::clone ( ) const
virtual

Creates a new IndexedIdentifier with the same prefix raw and count

Returns
a clone of this object

Implements Ilwis::DomainItem.

ItemRange * IndexedIdentifier::createRange ( )
static

Creates an itemrange according to this object

Returns
a new IndexedIdentifierRange
bool IndexedIdentifier::isValid ( ) const
virtual

Checks if this object is valid

Returns
returns true when valid

Implements Ilwis::DomainItem.

QString IndexedIdentifier::name ( ) const
virtual

Query for the name of this IndexedIdentifier
normally the name equalls prefix+index(raw)

Returns
the name of this object

Implements Ilwis::DomainItem.

bool IndexedIdentifier::operator== ( const IndexedIdentifier item) const

override of operator==

an IndexedIdentifier is the equal to another if both the prefix and the raw are the same

Parameters
itemitem that should be compared
Returns
true when the identifiers are equal
QString IndexedIdentifier::prefix ( ) const

Query to the prefix of this IndexedIdentifier

Returns
the prefix of this object
quint32 IndexedIdentifier::raw ( ) const
virtual

Query to the index of this IndexedIdentifier without prefix

Returns
the index of this object

Reimplemented from Ilwis::DomainItem.

void IndexedIdentifier::setPrefix ( const QString &  pf)

Changes the prefix of this IndexedIdentifier to the specified value

Parameters
pfthe new prefix

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