GlobalObjects
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GloIntRecordAttribute.h
Go to the documentation of this file.
1#ifndef INC_GLOINTRECORDATTRIBUTE_H
2#define INC_GLOINTRECORDATTRIBUTE_H
3//-----------------------------------------------------------------------------
44//-----------------------------------------------------------------------------
45#include <sstream>
46#include "GloTypes.h"
48//-----------------------------------------------------------------------------
49namespace glo
50{
51 //---------------------------------------------------------------------------
67 {
68 private:
69 //============== Attribute
70 //-----------------------------------------------------------------------
81 //-----------------------------------------------------------------------
82
83 protected:
84 //============= Konstruktoren
85 //-----------------------------------------------------------------------
96 //-----------------------------------------------------------------------
109 //-----------------------------------------------------------------------
110
111 public:
112 //============= Konstruktoren
113 //-----------------------------------------------------------------------
137 const std::streampos & rFilePos );
138 //-----------------------------------------------------------------------
164 int iValue,
165 const std::streampos & rFilePos );
166 //-----------------------------------------------------------------------
167
168 protected:
169 //============== Konstruktoren
170 //-----------------------------------------------------------------------
184 //-----------------------------------------------------------------------
185
186 public:
187 //============== Methoden
188 //-----------------------------------------------------------------------
198 virtual void initNew() override;
199 //-----------------------------------------------------------------------
211 void setValue( int iValue );
212 //-----------------------------------------------------------------------
224 virtual void setValueFromVoid( void * pValue ) override;
225 //-----------------------------------------------------------------------
237 const int & getValueRef() const;
238 //-----------------------------------------------------------------------
250 virtual std::string getValueAsString() const override;
251 //-----------------------------------------------------------------------
265 virtual std::string getValueAsDataString() const override;
266 //-----------------------------------------------------------------------
278 virtual std::string getValueAsStreamString() const override;
279 //-----------------------------------------------------------------------
291 virtual std::string getValueAsDisplayString() const override;
292 //-----------------------------------------------------------------------
304 virtual void * getValueAsVoidPointer() override;
305 //-----------------------------------------------------------------------
318 virtual unsigned short getDataFieldLength() const override;
319 //-----------------------------------------------------------------------
331 virtual bool dataIsFieldContent() const override;
332 //-----------------------------------------------------------------------
352 virtual int takeValue( const BaseRecordAttribute & rT ) override;
353 //-----------------------------------------------------------------------
373 virtual BaseRecordAttribute * getCopy() override;
374 //-----------------------------------------------------------------------
375
376 //============== Operatoren
377 //-----------------------------------------------------------------------
379
390 bool operator== ( const IntRecordAttribute & rT ) const;
391 bool operator!= ( const IntRecordAttribute & rT ) const;
393 //-----------------------------------------------------------------------
394
395 private:
396 //============== Operatoren
397 //-----------------------------------------------------------------------
407 IntRecordAttribute & operator= ( const IntRecordAttribute & );
408 //-----------------------------------------------------------------------
409 };
410 //---------------------------------------------------------------------------
411} // namespace glo
412#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
IntRecordAttribute(ClassInfoAttribute *pType, const std::streampos &rFilePos)
const int & getValueRef() const
virtual int takeValue(const BaseRecordAttribute &rT) override
void setValue(int iValue)
virtual BaseRecordAttribute * getCopy() override
virtual unsigned short getDataFieldLength() const override
virtual bool dataIsFieldContent() const override
virtual std::string getValueAsDataString() const override
virtual void initNew() override
IntRecordAttribute(ClassInfoAttribute *pType, int iValue, const std::streampos &rFilePos)
virtual std::string getValueAsStreamString() const override
int m_iValue
Definition GloIntRecordAttribute.h:80
virtual void setValueFromVoid(void *pValue) override
virtual std::string getValueAsDisplayString() const override
virtual void * getValueAsVoidPointer() override
virtual std::string getValueAsString() const override
IntRecordAttribute(const IntRecordAttribute &rT)
Definition GloAbstractBaseLot.h:49