GlobalObjects
Loading...
Searching...
No Matches
GloLongRecordAttribute.h
Go to the documentation of this file.
1#ifndef INC_GLOLONGRECORDATTRIBUTE_H
2#define INC_GLOLONGRECORDATTRIBUTE_H
3//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include <sstream>
38#include "GloTypes.h"
40//-----------------------------------------------------------------------------
41namespace glo
42{
43 //---------------------------------------------------------------------------
59 {
60 private:
61 //============== Attribute
62 //-----------------------------------------------------------------------
73 //-----------------------------------------------------------------------
74
75 protected:
76 //============= Konstruktoren
77 //-----------------------------------------------------------------------
88 //-----------------------------------------------------------------------
101 //-----------------------------------------------------------------------
102
103 public:
104 //============= Konstruktoren
105 //-----------------------------------------------------------------------
129 const std::streampos & rFilePos );
130 //-----------------------------------------------------------------------
156 long lValue,
157 const std::streampos & rFilePos );
158 //-----------------------------------------------------------------------
159
160 protected:
161 //============== Konstruktoren
162 //-----------------------------------------------------------------------
176 //-----------------------------------------------------------------------
177
178 public:
179 //============== Methoden
180 //-----------------------------------------------------------------------
190 virtual void initNew();
191 //-----------------------------------------------------------------------
203 void setValue( long lValue );
204 //-----------------------------------------------------------------------
216 virtual void setValueFromVoid( void * pValue );
217 //-----------------------------------------------------------------------
229 const long & getValueRef() const;
230 //-----------------------------------------------------------------------
242 virtual std::string getValueAsString() const;
243 //-----------------------------------------------------------------------
257 virtual std::string getValueAsDataString() const;
258 //-----------------------------------------------------------------------
270 virtual std::string getValueAsStreamString() const;
271 //-----------------------------------------------------------------------
283 virtual std::string getValueAsDisplayString() const;
284 //-----------------------------------------------------------------------
296 virtual void * getValueAsVoidPointer();
297 //-----------------------------------------------------------------------
310 virtual unsigned short getDataFieldLength() const;
311 //-----------------------------------------------------------------------
323 virtual bool dataIsFieldContent() const;
324 //-----------------------------------------------------------------------
344 virtual int takeValue( const BaseRecordAttribute & rT );
345 //-----------------------------------------------------------------------
366 //-----------------------------------------------------------------------
367
368 //============== Operatoren
369 //-----------------------------------------------------------------------
371
382 bool operator== ( const LongRecordAttribute & rT ) const;
383 bool operator!= ( const LongRecordAttribute & rT ) const;
385 //-----------------------------------------------------------------------
386
387 private:
388 //============== Operatoren
389 //-----------------------------------------------------------------------
400 //-----------------------------------------------------------------------
401 };
402 //---------------------------------------------------------------------------
403} // namespace glo
404#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 long attributes of a Record. Represents an attribute of the type 'long' of a persistent...
Definition GloLongRecordAttribute.h:59
LongRecordAttribute(ClassInfoAttribute *pType, const std::streampos &rFilePos)
virtual void * getValueAsVoidPointer()
virtual void initNew()
virtual std::string getValueAsString() const
virtual int takeValue(const BaseRecordAttribute &rT)
long m_lValue
Definition GloLongRecordAttribute.h:72
virtual std::string getValueAsDataString() const
LongRecordAttribute(ClassInfoAttribute *pType, long lValue, const std::streampos &rFilePos)
virtual std::string getValueAsStreamString() const
virtual unsigned short getDataFieldLength() const
LongRecordAttribute(const LongRecordAttribute &rT)
virtual BaseRecordAttribute * getCopy()
virtual void setValueFromVoid(void *pValue)
void setValue(long lValue)
virtual bool dataIsFieldContent() const
virtual std::string getValueAsDisplayString() const
const long & getValueRef() const
Definition GloAbstractBaseLot.h:42