GlobalObjects
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GloFloatRecordAttribute.h
Go to the documentation of this file.
1#ifndef INC_GLOFLOATRECORDATTRIBUTE_H
2#define INC_GLOFLOATRECORDATTRIBUTE_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include <sstream>
45#include "GloTypes.h"
47#include "EuStdFunctions.h"
48//-----------------------------------------------------------------------------
49namespace glo
50{
51 //---------------------------------------------------------------------------
69 {
70 private:
71 //============== Attribute
72 //-----------------------------------------------------------------------
82 float m_fValue;
83 //-----------------------------------------------------------------------
84
85 protected:
86 //============= Konstruktoren
87 //-----------------------------------------------------------------------
98 //-----------------------------------------------------------------------
111 //-----------------------------------------------------------------------
112
113 public:
114 //============= Konstruktoren
115 //-----------------------------------------------------------------------
139 const std::streampos & rFilePos );
140 //-----------------------------------------------------------------------
166 float fValue,
167 const std::streampos & rFilePos );
168 //-----------------------------------------------------------------------
169
170 protected:
171 //============== Konstruktoren
172 //-----------------------------------------------------------------------
186 //-----------------------------------------------------------------------
187
188 public:
189 //============== Methoden
190 //-----------------------------------------------------------------------
200 virtual void initNew() override;
201 //-----------------------------------------------------------------------
213 void setValue( float fValue );
214 //-----------------------------------------------------------------------
226 virtual void setValueFromVoid( void * pValue ) override;
227 //-----------------------------------------------------------------------
239 const float & getValueRef() const;
240 //-----------------------------------------------------------------------
260 virtual std::string getValueAsString() const override;
261 //-----------------------------------------------------------------------
283 virtual std::string getValueAsDataString() const override;
284 //-----------------------------------------------------------------------
296 virtual std::string getValueAsStreamString() const override;
297 //-----------------------------------------------------------------------
309 virtual std::string getValueAsDisplayString() const override;
310 //-----------------------------------------------------------------------
322 virtual void * getValueAsVoidPointer() override;
323 //-----------------------------------------------------------------------
336 virtual unsigned short getDataFieldLength() const override;
337 //-----------------------------------------------------------------------
349 virtual bool dataIsFieldContent() const override;
350 //-----------------------------------------------------------------------
370 virtual int takeValue( const BaseRecordAttribute & rT ) override;
371 //-----------------------------------------------------------------------
384 //-----------------------------------------------------------------------
404 virtual BaseRecordAttribute * getCopy() override;
405 //-----------------------------------------------------------------------
406
407 //============== Operatoren
408 //-----------------------------------------------------------------------
410
421 bool operator== ( const FloatRecordAttribute & rT ) const;
422 bool operator!= ( const FloatRecordAttribute & rT ) const;
424 //-----------------------------------------------------------------------
425
426 private:
427 //============== Operatoren
428 //-----------------------------------------------------------------------
439 //-----------------------------------------------------------------------
440 };
441 //---------------------------------------------------------------------------
442} // namespace glo
443#endif
Header for StdStringFunctions
Header for FNumRecordAttribute
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
void setValue(float fValue)
virtual void * getValueAsVoidPointer() override
virtual BaseRecordAttribute * getCopy() override
virtual int takeValue(const BaseRecordAttribute &rT) override
FloatRecordAttribute(ClassInfoAttribute *pType, const std::streampos &rFilePos)
int getAcceptedDecimals() const
virtual std::string getValueAsString() const override
float m_fValue
Definition GloFloatRecordAttribute.h:82
virtual bool dataIsFieldContent() const override
const float & getValueRef() const
virtual unsigned short getDataFieldLength() const override
virtual std::string getValueAsDataString() const override
FloatRecordAttribute(ClassInfoAttribute *pType, float fValue, const std::streampos &rFilePos)
FloatRecordAttribute(const FloatRecordAttribute &rT)
virtual void setValueFromVoid(void *pValue) override
virtual std::string getValueAsStreamString() const override
virtual void initNew() override
virtual std::string getValueAsDisplayString() const override
Definition GloAbstractBaseLot.h:49