GlobalObjects
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GloUIntRecordAttribute.h
Go to the documentation of this file.
1#ifndef INC_GLOUINTRECORDATTRIBUTE_H
2#define INC_GLOUINTRECORDATTRIBUTE_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include <sstream>
45#include "GloTypes.h"
47//-----------------------------------------------------------------------------
48namespace glo
49{
50 //---------------------------------------------------------------------------
66 {
67 private:
68 //============== Attribute
69 //-----------------------------------------------------------------------
79 unsigned int m_uiValue;
80 //-----------------------------------------------------------------------
81
82 protected:
83 //============= Konstruktoren
84 //-----------------------------------------------------------------------
95 //-----------------------------------------------------------------------
108 //-----------------------------------------------------------------------
109
110 public:
111 //============= Konstruktoren
112 //-----------------------------------------------------------------------
136 const std::streampos & rFilePos );
137 //-----------------------------------------------------------------------
163 unsigned int uiValue,
164 const std::streampos & rFilePos );
165 //-----------------------------------------------------------------------
166
167 protected:
168 //============== Konstruktoren
169 //-----------------------------------------------------------------------
183 //-----------------------------------------------------------------------
184
185 public:
186 //============== Methoden
187 //-----------------------------------------------------------------------
197 virtual void initNew();
198 //-----------------------------------------------------------------------
210 void setValue( unsigned int uiValue );
211 //-----------------------------------------------------------------------
223 virtual void setValueFromVoid( void * pValue );
224 //-----------------------------------------------------------------------
236 const unsigned int & getValueRef() const;
237 //-----------------------------------------------------------------------
249 virtual std::string getValueAsString() const;
250 //-----------------------------------------------------------------------
264 virtual std::string getValueAsDataString() const;
265 //-----------------------------------------------------------------------
277 virtual std::string getValueAsStreamString() const;
278 //-----------------------------------------------------------------------
290 virtual std::string getValueAsDisplayString() const;
291 //-----------------------------------------------------------------------
303 virtual void * getValueAsVoidPointer();
304 //-----------------------------------------------------------------------
317 virtual unsigned short getDataFieldLength() const;
318 //-----------------------------------------------------------------------
330 virtual bool dataIsFieldContent() const;
331 //-----------------------------------------------------------------------
351 virtual int takeValue( const BaseRecordAttribute & rT );
352 //-----------------------------------------------------------------------
373 //-----------------------------------------------------------------------
374
375 //============== Operatoren
376 //-----------------------------------------------------------------------
378
389 bool operator== ( const UIntRecordAttribute & rT ) const;
390 bool operator!= ( const UIntRecordAttribute & rT ) const;
392 //-----------------------------------------------------------------------
393
394 private:
395 //============== Operatoren
396 //-----------------------------------------------------------------------
407 //-----------------------------------------------------------------------
408 };
409 //---------------------------------------------------------------------------
410} // namespace glo
411#endif
Header for INumRecordAttribute
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:70
Base class for the individual attributes of a Record.
Definition GloBaseRecordAttribute.h:116
In objects of this class, the information for GlobalObjects is how a persistent class attribute is st...
Definition GloClassInfoAttribute.h:83
UIntRecordAttribute(ClassInfoAttribute *pType, unsigned int uiValue, const std::streampos &rFilePos)
virtual bool dataIsFieldContent() const
virtual int takeValue(const BaseRecordAttribute &rT)
virtual std::string getValueAsDisplayString() const
virtual std::string getValueAsStreamString() const
virtual void * getValueAsVoidPointer()
UIntRecordAttribute(const UIntRecordAttribute &rT)
virtual void initNew()
unsigned int m_uiValue
Definition GloUIntRecordAttribute.h:79
UIntRecordAttribute(ClassInfoAttribute *pType, const std::streampos &rFilePos)
virtual std::string getValueAsDataString() const
virtual unsigned short getDataFieldLength() const
virtual std::string getValueAsString() const
virtual BaseRecordAttribute * getCopy()
virtual void setValueFromVoid(void *pValue)
void setValue(unsigned int uiValue)
const unsigned int & getValueRef() const
Definition GloAbstractBaseLot.h:49