GlobalObjects
Loading...
Searching...
No Matches
GloIntRecordAttribute.h
Go to the documentation of this file.
1#ifndef INC_GLOINTRECORDATTRIBUTE_H
2#define INC_GLOINTRECORDATTRIBUTE_H
3//-----------------------------------------------------------------------------
37//-----------------------------------------------------------------------------
38#include <sstream>
39#include "GloTypes.h"
41//-----------------------------------------------------------------------------
42namespace glo
43{
44 //---------------------------------------------------------------------------
60 {
61 private:
62 //============== Attribute
63 //-----------------------------------------------------------------------
74 //-----------------------------------------------------------------------
75
76 protected:
77 //============= Konstruktoren
78 //-----------------------------------------------------------------------
89 //-----------------------------------------------------------------------
102 //-----------------------------------------------------------------------
103
104 public:
105 //============= Konstruktoren
106 //-----------------------------------------------------------------------
130 const std::streampos & rFilePos );
131 //-----------------------------------------------------------------------
157 int iValue,
158 const std::streampos & rFilePos );
159 //-----------------------------------------------------------------------
160
161 protected:
162 //============== Konstruktoren
163 //-----------------------------------------------------------------------
177 //-----------------------------------------------------------------------
178
179 public:
180 //============== Methoden
181 //-----------------------------------------------------------------------
191 virtual void initNew();
192 //-----------------------------------------------------------------------
204 void setValue( int iValue );
205 //-----------------------------------------------------------------------
217 virtual void setValueFromVoid( void * pValue );
218 //-----------------------------------------------------------------------
230 const int & getValueRef() const;
231 //-----------------------------------------------------------------------
243 virtual std::string getValueAsString() const;
244 //-----------------------------------------------------------------------
258 virtual std::string getValueAsDataString() const;
259 //-----------------------------------------------------------------------
271 virtual std::string getValueAsStreamString() const;
272 //-----------------------------------------------------------------------
284 virtual std::string getValueAsDisplayString() const;
285 //-----------------------------------------------------------------------
297 virtual void * getValueAsVoidPointer();
298 //-----------------------------------------------------------------------
311 virtual unsigned short getDataFieldLength() const;
312 //-----------------------------------------------------------------------
324 virtual bool dataIsFieldContent() const;
325 //-----------------------------------------------------------------------
345 virtual int takeValue( const BaseRecordAttribute & rT );
346 //-----------------------------------------------------------------------
367 //-----------------------------------------------------------------------
368
369 //============== Operatoren
370 //-----------------------------------------------------------------------
372
383 bool operator== ( const IntRecordAttribute & rT ) const;
384 bool operator!= ( const IntRecordAttribute & rT ) const;
386 //-----------------------------------------------------------------------
387
388 private:
389 //============== Operatoren
390 //-----------------------------------------------------------------------
400 IntRecordAttribute & operator= ( const IntRecordAttribute & );
401 //-----------------------------------------------------------------------
402 };
403 //---------------------------------------------------------------------------
404} // namespace glo
405#endif
Header for INumRecordAttribute
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:63
Base class for the individual attributes of a Record.
Definition GloBaseRecordAttribute.h:109
In objects of this class, the information for GlobalObjects is how a persistent class attribute is st...
Definition GloClassInfoAttribute.h:76
Represents as superclass all integer attributes of a Record.
Definition GloINumRecordAttribute.h:59
Class for the integer attributes of a Record. Represents an attribute of the type 'int' of a persiste...
Definition GloIntRecordAttribute.h:60
virtual int takeValue(const BaseRecordAttribute &rT)
virtual std::string getValueAsString() const
IntRecordAttribute(ClassInfoAttribute *pType, const std::streampos &rFilePos)
virtual BaseRecordAttribute * getCopy()
virtual void setValueFromVoid(void *pValue)
virtual void initNew()
const int & getValueRef() const
virtual unsigned short getDataFieldLength() const
void setValue(int iValue)
virtual std::string getValueAsStreamString() const
virtual std::string getValueAsDataString() const
IntRecordAttribute(ClassInfoAttribute *pType, int iValue, const std::streampos &rFilePos)
int m_iValue
Definition GloIntRecordAttribute.h:73
virtual std::string getValueAsDisplayString() const
virtual void * getValueAsVoidPointer()
virtual bool dataIsFieldContent() const
IntRecordAttribute(const IntRecordAttribute &rT)
Definition GloAbstractBaseLot.h:42