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

Public Member Functions

 TextDomain ()
 
 TextDomain (const Resource &resource)
 
virtual IlwisTypes valueType () const
 
virtual QVariant impliedValue (const QVariant &v) const
 
virtual Containement contains (const QVariant &) const
 
IlwisTypes ilwisType () const
 
void setParent (const IDomain &)
 
bool isCompatibleWith (const IDomain &dom) const
 
void range (Range *)
 
- Public Member Functions inherited from Ilwis::Domain
 Domain ()
 
 Domain (const Resource &resource)
 
bool isStrict () const
 
void setStrict (bool yesno)
 
IDomain parent () const
 
template<typename T = Range>
QSharedPointer< T > range2range () const
 
- Public Member Functions inherited from Ilwis::IlwisObject
 IlwisObject ()
 
 IlwisObject (const Resource &source)
 
virtual bool prepare ()
 
void setName (const QString &nm)
 
void setCode (const QString &cd)
 
QDateTime modifiedTime () const
 returns the moment when the object was last modified More...
 
void setModifiedTime (const Time &time)
 sets the last modified time of the object More...
 
Time createTime () const
 
void setCreateTime (const Time &time)
 
virtual QString toString ()
 translates the defintion of an object to a string representation More...
 
virtual void setConnector (ConnectorInterface *connector, int mode=cmINPUT|cmOUTPUT)
 connects an ilwisobject to an input or output source More...
 
virtual bool isEqual (const Ilwis::IlwisObject *obj) const
 isEqual compares the properties of ilwisobjects to test for equality. More...
 
virtual bool isValid () const
 isValid Tests the validity of an ilwisobject. More...
 
virtual bool isReadOnly () const
 isReadOnly tells if the source/target of the ilwisobject maybe modifiable. More...
 
virtual void setReadOnly (bool yesno)
 
virtual bool hasChanged () const
 
virtual void changed (bool yesno)
 
virtual bool prepare (const QString &def)
 prepare More...
 
bool fromInternal (const QSqlRecord &rec)
 
bool isAnonymous () const
 
virtual Resource source (int mode=cmINPUT) const
 source the location of the source that represents the physical read origin of this object More...
 
virtual bool store (int mode=smMETADATA|smBINARYDATA)
 target the location of the source that represents the physical write target of this object More...
 
void connectTo (const QUrl &url, const QString &format, const QString &fnamespace, ConnectorMode cmode)
 
virtual IlwisObjectclone ()
 
virtual bool merge (const IlwisObject *obj, int options=0)
 
bool isSystemObject () const
 
bool isInternalObject () const
 
- Public Member Functions inherited from Ilwis::Identity
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)
 

Additional Inherited Members

- Public Types inherited from Ilwis::Domain
enum  Containement { cSELF =1, cPARENT =2, cDECLARED =3, cNONE =0 }
 
- Static Public Member Functions inherited from Ilwis::Domain
static IlwisTypes ilwType (const QVariant &v)
 
static IlwisTypes ilwType (const QString &impliedValue)
 
- Protected Member Functions inherited from Ilwis::Domain
void addChildDomain (quint64 idchild)
 
bool removeChildDomain (quint64 idchild)
 
- Protected Attributes inherited from Ilwis::Domain
std::map< quint64, quint32 > _childDomains
 

Constructor & Destructor Documentation

TextDomain::TextDomain ( )

Constructs an empty TextDomain

TextDomain::TextDomain ( const Resource resource)

The constructor for a RasterCoverage with a a Resource that is registered in the mastercatalog.
This resource must have a name and an Id.
Code and description are optional.

Parameters
resourceThe Resource

Member Function Documentation

Domain::Containement TextDomain::contains ( const QVariant &  ) const
virtual

Checks if this domain contains a certain value.
Every value can be translated to a String, so the containment is always cSELF

Returns
Domain::cSELF

Implements Ilwis::Domain.

IlwisTypes TextDomain::ilwisType ( ) const
virtual

Gives the IlwisTypes of this object

See Also
IlwisObject
Returns
the IlwisTypes of this IlwisObject

Implements Ilwis::IlwisObject.

QVariant TextDomain::impliedValue ( const QVariant &  v) const
virtual

Transforms the given QVariant into a Qstring.
basically the same as QVariant.toString()

Parameters
vThe variant of which you want the value
Returns
the value of v

Reimplemented from Ilwis::Domain.

bool TextDomain::isCompatibleWith ( const IDomain dom) const
virtual

Checks if the given domain is compatible with this ItemDomain
Will not be compatible if the given domain is not viable or not an ItemDomain

Parameters
domThe domain to be checked
Returns
true when compatible

Implements Ilwis::Domain.

void Ilwis::TextDomain::range ( Range rng)
inlinevirtual

sets a new range on this domain, for requirements on the parameter and ensures on the function see the relevant subclass

Parameters
rngthe new range

Implements Ilwis::Domain.

void Ilwis::TextDomain::setParent ( const IDomain )
inlinevirtual

Sets the given domain as parent of this TextDomain
Not really relevant for a TextDomain, so it is not implemented

Reimplemented from Ilwis::Domain.


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