GlobalObjects
Loading...
Searching...
No Matches
GloAttributeID.h
Go to the documentation of this file.
1#ifndef INC_GLOATTRIBUTEID_H
2#define INC_GLOATTRIBUTEID_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include <string>
45#include "GloTypes.h"
46//-----------------------------------------------------------------------------
47namespace glo
48{
49 //---------------------------------------------------------------------------
50 // Forwards
51 class ClassInfoAttribute;
52 //---------------------------------------------------------------------------
81 {
82 private:
83 //============== Attribute
84 //-----------------------------------------------------------------------
94 unsigned long m_ulClassID;
95 //-----------------------------------------------------------------------
106 //-----------------------------------------------------------------------
124 //-----------------------------------------------------------------------
125
126 public:
127 //============= Konstruktoren
128 //-----------------------------------------------------------------------
139 //-----------------------------------------------------------------------
153 AttributeID( unsigned long ulClassID, int iFieldPos );
154 //-----------------------------------------------------------------------
176 AttributeID( const std::string & sAttributeId,
177 const std::string & sDelimiter = "." );
178 //-----------------------------------------------------------------------
192 AttributeID( const ClassInfoAttribute & rClassInfoAttribute );
193 //-----------------------------------------------------------------------
206 //-----------------------------------------------------------------------
216 virtual ~AttributeID();
217 //-----------------------------------------------------------------------
218
219 //============== Methoden
220 //-----------------------------------------------------------------------
232 bool isNULL() const;
233 //-----------------------------------------------------------------------
243 virtual void setNULL();
244 //-----------------------------------------------------------------------
258 void setID( unsigned long ulClassID, int iFieldPos );
259 //-----------------------------------------------------------------------
279 int setID( const std::string & sAttributeId, const std::string & sDelimiter = "." );
280 //-----------------------------------------------------------------------
292 void setClassID( unsigned long ulClassID );
293 //-----------------------------------------------------------------------
305 void setFieldPos( int iFieldPos );
306 //-----------------------------------------------------------------------
316 unsigned long getClassID() const;
317 //-----------------------------------------------------------------------
327 int getFieldPos() const;
328 //-----------------------------------------------------------------------
342 virtual void setClassInfoAttribute( const ClassInfoAttribute & rClassInfoAttribute );
343 //-----------------------------------------------------------------------
360 //-----------------------------------------------------------------------
375 std::string toString() const;
376 //-----------------------------------------------------------------------
394 std::string toString( const std::string & sDelimiter ) const;
395 //-----------------------------------------------------------------------
396
397 //============== Operatoren
398 //-----------------------------------------------------------------------
400
411 bool operator== ( const AttributeID & rT ) const;
412 bool operator!= ( const AttributeID & rT ) const;
413 bool operator> ( const AttributeID & rT ) const;
414 bool operator>= ( const AttributeID & rT ) const;
415 bool operator< ( const AttributeID & rT ) const;
416 bool operator<= ( const AttributeID & rT ) const;
418 //-----------------------------------------------------------------------
430 AttributeID & operator= ( const AttributeID & rT );
431 //-----------------------------------------------------------------------
432 };
433 //---------------------------------------------------------------------------
434} // namespace glo
435#endif
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:70
This class reflects a unique ID of a class information attribute.
Definition GloAttributeID.h:81
unsigned long m_ulClassID
Definition GloAttributeID.h:94
int getFieldPos() const
ClassInfoAttribute * getClassInfoAttribute() const
AttributeID(const AttributeID &rT)
std::string toString(const std::string &sDelimiter) const
void setFieldPos(int iFieldPos)
AttributeID(const std::string &sAttributeId, const std::string &sDelimiter=".")
ClassInfoAttribute * m_pGloClassInfoAttribute
Definition GloAttributeID.h:123
AttributeID(const ClassInfoAttribute &rClassInfoAttribute)
void setID(unsigned long ulClassID, int iFieldPos)
virtual void setNULL()
bool isNULL() const
std::string toString() const
void setClassID(unsigned long ulClassID)
int m_iFieldPos
Definition GloAttributeID.h:105
int setID(const std::string &sAttributeId, const std::string &sDelimiter=".")
unsigned long getClassID() const
virtual ~AttributeID()
virtual void setClassInfoAttribute(const ClassInfoAttribute &rClassInfoAttribute)
AttributeID(unsigned long ulClassID, int iFieldPos)
In objects of this class, the information for GlobalObjects is how a persistent class attribute is st...
Definition GloClassInfoAttribute.h:83
Definition GloAbstractBaseLot.h:49