GlobalObjects
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GloDoubleVectorRecordAttribute.h
Go to the documentation of this file.
1#ifndef INC_GLODOUBLEVECTORRECORDATTRIBUTE_H
2#define INC_GLODOUBLEVECTORRECORDATTRIBUTE_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include <vector>
46#include "GloTypes.h"
47//-----------------------------------------------------------------------------
48namespace glo
49{
50 //---------------------------------------------------------------------------
51 #ifdef _MSC_VER
52 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
53 #pragma warning( disable : 4251 )
54 #endif
55 //---------------------------------------------------------------------------
74 {
75 private:
76 //============== Attribute
77 //-----------------------------------------------------------------------
87 std::vector<double> m_ValueVector;
88 //-----------------------------------------------------------------------
89
90 protected:
91 //============= Konstruktoren
92 //-----------------------------------------------------------------------
103 //-----------------------------------------------------------------------
116 //-----------------------------------------------------------------------
117
118 public:
119 //============= Konstruktoren
120 //-----------------------------------------------------------------------
144 const std::streampos & rFilePos );
145 //-----------------------------------------------------------------------
171 const std::vector< double > & rValueVector,
172 const std::streampos & rFilePos );
173 //-----------------------------------------------------------------------
174
175 protected:
176 //============== Konstruktoren
177 //-----------------------------------------------------------------------
191 //-----------------------------------------------------------------------
192
193 public:
194 //============== Methoden
195 //-----------------------------------------------------------------------
209 void setValue (const std::vector< double > & rValueVector);
210 //-----------------------------------------------------------------------
228 virtual void setValueFromVoid (void * pValueVector) override;
229 //-----------------------------------------------------------------------
241 const std::vector<double> & getValueRef() const;
242 //-----------------------------------------------------------------------
254 virtual void * getValueAsVoidPointer() override;
255 //-----------------------------------------------------------------------
275 virtual int takeValue( const BaseRecordAttribute & rT ) override;
276 //-----------------------------------------------------------------------
288 virtual void addValue( double dValue ) override;
289 //-----------------------------------------------------------------------
301 virtual std::size_t getValueSize() const override;
302 //-----------------------------------------------------------------------
322 virtual BaseRecordAttribute * getCopy() override;
323 //-----------------------------------------------------------------------
333 virtual void clearValueLot() override;
334 //-----------------------------------------------------------------------
335
336 protected:
337 //============== Methoden
338 //-----------------------------------------------------------------------
359 virtual void streamValueListInFileStream( std::ofstream & rFileStream ) override;
360 //-----------------------------------------------------------------------
361
362 //============== Operatoren
363 //-----------------------------------------------------------------------
365
376 bool operator== ( const DoubleVectorRecordAttribute & rT ) const;
377 bool operator!= ( const DoubleVectorRecordAttribute & rT ) const;
379 //-----------------------------------------------------------------------
380
381 private:
382 //============== Operatoren
383 //-----------------------------------------------------------------------
394 //-----------------------------------------------------------------------
395 };
396 //---------------------------------------------------------------------------
397 #ifdef _MSC_VER
398 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
399 #pragma warning( default : 4251 )
400 #endif
401 //---------------------------------------------------------------------------
402} // namespace glo
403#endif
Header for DoubleLotRecordAttribute
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
virtual std::size_t getValueSize() const override
virtual void clearValueLot() override
virtual int takeValue(const BaseRecordAttribute &rT) override
virtual BaseRecordAttribute * getCopy() override
DoubleVectorRecordAttribute(ClassInfoAttribute *pType, const std::streampos &rFilePos)
virtual void streamValueListInFileStream(std::ofstream &rFileStream) override
DoubleVectorRecordAttribute(const DoubleVectorRecordAttribute &rT)
virtual void addValue(double dValue) override
const std::vector< double > & getValueRef() const
virtual void setValueFromVoid(void *pValueVector) override
std::vector< double > m_ValueVector
Definition GloDoubleVectorRecordAttribute.h:87
DoubleVectorRecordAttribute(ClassInfoAttribute *pType, const std::vector< double > &rValueVector, const std::streampos &rFilePos)
virtual void * getValueAsVoidPointer() override
void setValue(const std::vector< double > &rValueVector)
Definition GloAbstractBaseLot.h:49