GlobalObjects
Alle Klassen Namensbereiche Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Freundbeziehungen Makrodefinitionen Seiten
GloIntSetRecordAttribute.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_GLOINTSETRECORDATTRIBUTE_H
2#define INC_GLOINTSETRECORDATTRIBUTE_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include <set>
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::set<int> m_ValueSet;
88 //-----------------------------------------------------------------------
89
90 protected:
91 //============= Konstruktoren
92 //-----------------------------------------------------------------------
103 //-----------------------------------------------------------------------
116 //-----------------------------------------------------------------------
117
118 public:
119 //============= Konstruktoren
120 //-----------------------------------------------------------------------
144 const std::streampos & rFilePos );
145 //-----------------------------------------------------------------------
171 const std::set< int > & rValueSet,
172 const std::streampos & rFilePos );
173 //-----------------------------------------------------------------------
174
175 protected:
176 //============== Konstruktoren
177 //-----------------------------------------------------------------------
191 //-----------------------------------------------------------------------
192
193 public:
194 //============== Methoden
195 //-----------------------------------------------------------------------
209 void setValue( const std::set< int > & rValueSet );
210 //-----------------------------------------------------------------------
228 virtual void setValueFromVoid( void * pValueSet );
229 //-----------------------------------------------------------------------
241 const std::set< int > & getValueRef() const;
242 //-----------------------------------------------------------------------
254 virtual void * getValueAsVoidPointer();
255 //-----------------------------------------------------------------------
275 virtual int takeValue( const BaseRecordAttribute & rT );
276 //-----------------------------------------------------------------------
288 virtual void addValue( int iValue );
289 //-----------------------------------------------------------------------
301 virtual std::size_t getValueSize() const;
302 //-----------------------------------------------------------------------
323 //-----------------------------------------------------------------------
333 virtual void clearValueLot();
334 //-----------------------------------------------------------------------
335
336 protected:
337 //============== Methoden
338 //-----------------------------------------------------------------------
359 virtual void streamValueListInFileStream( std::ofstream & rFileStream );
360 //-----------------------------------------------------------------------
361
362 //============== Operatoren
363 //-----------------------------------------------------------------------
365
376 bool operator== ( const IntSetRecordAttribute & rT ) const;
377 bool operator!= ( const IntSetRecordAttribute & 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 für IntLotRecordAttribute
Für jede Bibliothek, hier 'GlobalObjects' gibt es eine Typen-Datei.
#define __glo_export_dll
Definition GloTypes.h:70
Basisklasse für die einzelnen Attribute eines Record.
Definition GloBaseRecordAttribute.h:116
In Objekten dieser Klasse sind die Information für GlobalObjects, wie ein persistentes Klassenattribu...
Definition GloClassInfoAttribute.h:83
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:87
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:49