GlobalObjects
Lade ...
Suche ...
Keine Treffer
GloAttributeID.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_GLOATTRIBUTEID_H
2#define INC_GLOATTRIBUTEID_H
3//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include <string>
38#include "GloTypes.h"
39//-----------------------------------------------------------------------------
40namespace glo
41{
42 //---------------------------------------------------------------------------
43 // Forwards
44 class ClassInfoAttribute;
45 //---------------------------------------------------------------------------
74 {
75 private:
76 //============== Attribute
77 //-----------------------------------------------------------------------
87 unsigned long m_ulClassID;
88 //-----------------------------------------------------------------------
99 //-----------------------------------------------------------------------
117 //-----------------------------------------------------------------------
118
119 public:
120 //============= Konstruktoren
121 //-----------------------------------------------------------------------
132 //-----------------------------------------------------------------------
146 AttributeID( unsigned long ulClassID, int iFieldPos );
147 //-----------------------------------------------------------------------
169 AttributeID( const std::string & sAttributeId,
170 const std::string & sDelimiter = "." );
171 //-----------------------------------------------------------------------
185 AttributeID( const ClassInfoAttribute & rClassInfoAttribute );
186 //-----------------------------------------------------------------------
199 //-----------------------------------------------------------------------
209 virtual ~AttributeID();
210 //-----------------------------------------------------------------------
211
212 //============== Methoden
213 //-----------------------------------------------------------------------
225 bool isNULL() const;
226 //-----------------------------------------------------------------------
236 virtual void setNULL();
237 //-----------------------------------------------------------------------
251 void setID( unsigned long ulClassID, int iFieldPos );
252 //-----------------------------------------------------------------------
272 int setID( const std::string & sAttributeId, const std::string & sDelimiter = "." );
273 //-----------------------------------------------------------------------
285 void setClassID( unsigned long ulClassID );
286 //-----------------------------------------------------------------------
298 void setFieldPos( int iFieldPos );
299 //-----------------------------------------------------------------------
309 unsigned long getClassID() const;
310 //-----------------------------------------------------------------------
320 int getFieldPos() const;
321 //-----------------------------------------------------------------------
335 virtual void setClassInfoAttribute( const ClassInfoAttribute & rClassInfoAttribute );
336 //-----------------------------------------------------------------------
353 //-----------------------------------------------------------------------
368 std::string toString() const;
369 //-----------------------------------------------------------------------
387 std::string toString( const std::string & sDelimiter ) const;
388 //-----------------------------------------------------------------------
389
390 //============== Operatoren
391 //-----------------------------------------------------------------------
393
404 bool operator== ( const AttributeID & rT ) const;
405 bool operator!= ( const AttributeID & rT ) const;
406 bool operator> ( const AttributeID & rT ) const;
407 bool operator>= ( const AttributeID & rT ) const;
408 bool operator< ( const AttributeID & rT ) const;
409 bool operator<= ( const AttributeID & rT ) const;
411 //-----------------------------------------------------------------------
423 AttributeID & operator= ( const AttributeID & rT );
424 //-----------------------------------------------------------------------
425 };
426 //---------------------------------------------------------------------------
427} // namespace glo
428#endif
Für jede Bibliothek, hier 'GlobalObjects' gibt es eine Typen-Datei.
#define __glo_export_dll
Definition GloTypes.h:63
Diese Klasse spiegelt eine eindeutige ID eines Klasseninformations-Attributes wieder.
Definition GloAttributeID.h:74
unsigned long m_ulClassID
Definition GloAttributeID.h:87
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:116
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:98
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 Objekten dieser Klasse sind die Information für GlobalObjects, wie ein persistentes Klassenattribu...
Definition GloClassInfoAttribute.h:76
Definition GloAbstractBaseLot.h:42