GlobalObjects
Loading...
Searching...
No Matches
GloULongRecordAttribute.h
Go to the documentation of this file.
1#ifndef INC_GLOULONGRECORDATTRIBUTE_H
2#define INC_GLOULONGRECORDATTRIBUTE_H
3//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include <sstream>
38#include "GloTypes.h"
40//-----------------------------------------------------------------------------
41namespace glo
42{
43 //---------------------------------------------------------------------------
60 {
61 private:
62 //============== Attribute
63 //-----------------------------------------------------------------------
73 unsigned long m_ulValue;
74 //-----------------------------------------------------------------------
75
76 protected:
77 //============= Konstruktoren
78 //-----------------------------------------------------------------------
89 //-----------------------------------------------------------------------
102 //-----------------------------------------------------------------------
103
104 public:
105 //============= Konstruktoren
106 //-----------------------------------------------------------------------
130 const std::streampos & rFilePos );
131 //-----------------------------------------------------------------------
157 unsigned long ulValue,
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( unsigned long ulValue );
205 //-----------------------------------------------------------------------
217 virtual void setValueFromVoid( void * pValue );
218 //-----------------------------------------------------------------------
230 const unsigned long & 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 ULongRecordAttribute & rT ) const;
384 bool operator!= ( const ULongRecordAttribute & rT ) const;
386 //-----------------------------------------------------------------------
387
388 private:
389 //============== Operatoren
390 //-----------------------------------------------------------------------
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 unsigned long attributes of a Record. Represents an attribute of the type 'unsigned lon...
Definition GloULongRecordAttribute.h:60
virtual int takeValue(const BaseRecordAttribute &rT)
virtual BaseRecordAttribute * getCopy()
virtual std::string getValueAsStreamString() const
virtual void setValueFromVoid(void *pValue)
unsigned long m_ulValue
Definition GloULongRecordAttribute.h:73
virtual void * getValueAsVoidPointer()
virtual std::string getValueAsDataString() const
virtual bool dataIsFieldContent() const
ULongRecordAttribute(ClassInfoAttribute *pType, const std::streampos &rFilePos)
virtual std::string getValueAsString() const
void setValue(unsigned long ulValue)
const unsigned long & getValueRef() const
virtual std::string getValueAsDisplayString() const
ULongRecordAttribute(const ULongRecordAttribute &rT)
ULongRecordAttribute(ClassInfoAttribute *pType, unsigned long ulValue, const std::streampos &rFilePos)
virtual unsigned short getDataFieldLength() const
Definition GloAbstractBaseLot.h:42