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 | List of all members
Ilwis::ThematicItem Class Reference
Inheritance diagram for Ilwis::ThematicItem:
Ilwis::NamedIdentifier Ilwis::DomainItem

Public Member Functions

 ThematicItem ()
 
 ThematicItem (const QStringList &parts, quint32 rawvalue=iUNDEF)
 
QString description () const
 
QString code () const
 
void description (const QString &desc)
 
void code (const QString &code)
 
DomainItemclone () const
 
IlwisTypes valueType () const
 
- Public Member Functions inherited from Ilwis::NamedIdentifier
 NamedIdentifier ()
 
 NamedIdentifier (const QString &name, quint32 rawvalue=iUNDEF)
 
bool isValid () const
 
QString name () const
 
void setName (const QString &n)
 
bool operator== (const NamedIdentifier &item) const
 
- Public Member Functions inherited from Ilwis::DomainItem
 DomainItem (quint32 rawvalue=iUNDEF)
 
virtual void raw (quint32 r)
 
virtual quint32 raw () const
 
template<typename ItemType >
ItemType * toType ()
 

Static Public Member Functions

static IlwisTypes valueTypeS ()
 
- Static Public Member Functions inherited from Ilwis::NamedIdentifier
static
Ilwis::NamedIdentifierRange
createRange ()
 
static IlwisTypes valueTypeS ()
 

Additional Inherited Members

- Protected Attributes inherited from Ilwis::DomainItem
quint32 _raw
 

Constructor & Destructor Documentation

ThematicItem::ThematicItem ( )

Constructs an empty ThematicItem

ThematicItem::ThematicItem ( const QStringList &  parts,
quint32  rawvalue = iUNDEF 
)

Constructs a ThematicItem from a list of strings, in which the parts of this ThematicItem are specified.
The first entry in the list should be the name of this ThematicItem.
The second entry in the list should be the code of this ThematicItem.
The third entry in the list should be the description of this ThematicItem.
You are free to use less entries in the list, in case there are less entries than 3 it will drop the last field(s).
more than 3 entries however should not be used.
empty Strings should also be avoided when possible.

Parameters
partsthe list of strings or the parts

Member Function Documentation

DomainItem * ThematicItem::clone ( ) const
virtual

Creates a new NamedIdentifier with the same raw and name

Returns
a clone of this object

Reimplemented from Ilwis::NamedIdentifier.

QString ThematicItem::code ( ) const

Query for the code of this ThematicItem

Returns
the code
void ThematicItem::code ( const QString &  code)

Sets a new code for this ThematicItem

Parameters
codethe new code
QString ThematicItem::description ( ) const

Query for the description of this ThematicItem

Returns
the description
void ThematicItem::description ( const QString &  desc)

Sets a new description to this ThematicItem

Parameters
descthe new description
IlwisTypes ThematicItem::valueType ( ) const
virtual

Query to the ilwistype of this object

Returns
itNAMEDITEM

Reimplemented from Ilwis::NamedIdentifier.


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