GlobalObjects
Lade ...
Suche ...
Keine Treffer
GloIntSetRecordAttribute.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_GLOINTSETRECORDATTRIBUTE_H
2#define INC_GLOINTSETRECORDATTRIBUTE_H
3//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include <set>
39#include "GloTypes.h"
40//-----------------------------------------------------------------------------
41namespace glo
42{
43 //---------------------------------------------------------------------------
44 #ifdef _MSC_VER
45 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
46 #pragma warning( disable : 4251 )
47 #endif
48 //---------------------------------------------------------------------------
67 {
68 private:
69 //============== Attribute
70 //-----------------------------------------------------------------------
80 std::set<int> m_ValueSet;
81 //-----------------------------------------------------------------------
82
83 protected:
84 //============= Konstruktoren
85 //-----------------------------------------------------------------------
96 //-----------------------------------------------------------------------
109 //-----------------------------------------------------------------------
110
111 public:
112 //============= Konstruktoren
113 //-----------------------------------------------------------------------
137 const std::streampos & rFilePos );
138 //-----------------------------------------------------------------------
164 const std::set< int > & rValueSet,
165 const std::streampos & rFilePos );
166 //-----------------------------------------------------------------------
167
168 protected:
169 //============== Konstruktoren
170 //-----------------------------------------------------------------------
184 //-----------------------------------------------------------------------
185
186 public:
187 //============== Methoden
188 //-----------------------------------------------------------------------
202 void setValue( const std::set< int > & rValueSet );
203 //-----------------------------------------------------------------------
221 virtual void setValueFromVoid( void * pValueSet );
222 //-----------------------------------------------------------------------
234 const std::set< int > & getValueRef() const;
235 //-----------------------------------------------------------------------
247 virtual void * getValueAsVoidPointer();
248 //-----------------------------------------------------------------------
268 virtual int takeValue( const BaseRecordAttribute & rT );
269 //-----------------------------------------------------------------------
281 virtual void addValue( int iValue );
282 //-----------------------------------------------------------------------
294 virtual std::size_t getValueSize() const;
295 //-----------------------------------------------------------------------
316 //-----------------------------------------------------------------------
326 virtual void clearValueLot();
327 //-----------------------------------------------------------------------
328
329 protected:
330 //============== Methoden
331 //-----------------------------------------------------------------------
352 virtual void streamValueListInFileStream( std::ofstream & rFileStream );
353 //-----------------------------------------------------------------------
354
355 //============== Operatoren
356 //-----------------------------------------------------------------------
358
369 bool operator== ( const IntSetRecordAttribute & rT ) const;
370 bool operator!= ( const IntSetRecordAttribute & rT ) const;
372 //-----------------------------------------------------------------------
373
374 private:
375 //============== Operatoren
376 //-----------------------------------------------------------------------
387 //-----------------------------------------------------------------------
388 };
389 //---------------------------------------------------------------------------
390 #ifdef _MSC_VER
391 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
392 #pragma warning( default : 4251 )
393 #endif
394 //---------------------------------------------------------------------------
395} // namespace glo
396#endif
Header für IntLotRecordAttribute
Für jede Bibliothek, hier 'GlobalObjects' gibt es eine Typen-Datei.
#define __glo_export_dll
Definition GloTypes.h:63
Basisklasse für die einzelnen Attribute eines Record.
Definition GloBaseRecordAttribute.h:109
In Objekten dieser Klasse sind die Information für GlobalObjects, wie ein persistentes Klassenattribu...
Definition GloClassInfoAttribute.h:76
Basisklasse für unterschiedliche Integer-Kontainer-Attribute eines Record.
Definition GloIntLotRecordAttribute.h:56
Klasse für die Integer-Set-Attribute eines Record.
Definition GloIntSetRecordAttribute.h:67
IntSetRecordAttribute(ClassInfoAttribute *pType, const std::streampos &rFilePos)
virtual void * getValueAsVoidPointer()
virtual void addValue(int iValue)
IntSetRecordAttribute(const IntSetRecordAttribute &rT)
virtual void streamValueListInFileStream(std::ofstream &rFileStream)
virtual void setValueFromVoid(void *pValueSet)
virtual std::size_t getValueSize() const
virtual BaseRecordAttribute * getCopy()
std::set< int > m_ValueSet
Definition GloIntSetRecordAttribute.h:80
void setValue(const std::set< int > &rValueSet)
IntSetRecordAttribute(ClassInfoAttribute *pType, const std::set< int > &rValueSet, const std::streampos &rFilePos)
const std::set< int > & getValueRef() const
virtual int takeValue(const BaseRecordAttribute &rT)
virtual void clearValueLot()
Definition GloAbstractBaseLot.h:42