GlobalObjects
Lade ...
Suche ...
Keine Treffer
GloStringVectorRecordAttribute.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_GLOSTRINGVECTORRECORDATTRIBUTE_H
2#define INC_GLOSTRINGVECTORRECORDATTRIBUTE_H
3//-----------------------------------------------------------------------------
37//-----------------------------------------------------------------------------
39#include <vector>
40#include "GloTypes.h"
41//-----------------------------------------------------------------------------
42namespace glo
43{
44 //---------------------------------------------------------------------------
45 #ifdef _MSC_VER
46 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
47 #pragma warning( disable : 4251 )
48 #endif
49 //---------------------------------------------------------------------------
68 {
69 private:
70 //============== Attribute
71 //-----------------------------------------------------------------------
81 std::vector<std::string> m_ValueVector;
82 //-----------------------------------------------------------------------
83
84 protected:
85 //============= Konstruktoren
86 //-----------------------------------------------------------------------
97 //-----------------------------------------------------------------------
110 //-----------------------------------------------------------------------
111
112 public:
113 //============= Konstruktoren
114 //-----------------------------------------------------------------------
138 const std::streampos & rFilePos );
139 //-----------------------------------------------------------------------
165 const std::vector< std::string > & rValueVector,
166 const std::streampos & rFilePos );
167 //-----------------------------------------------------------------------
168
169 protected:
170 //============== Konstruktoren
171 //-----------------------------------------------------------------------
185 //-----------------------------------------------------------------------
186
187 public:
188 //============== Methoden
189 //-----------------------------------------------------------------------
203 void setValue( const std::vector< std::string > & rValueVector );
204 //-----------------------------------------------------------------------
222 virtual void setValueFromVoid( void * pValueVector );
223 //-----------------------------------------------------------------------
235 const std::vector< std::string > & getValueRef() const;
236 //-----------------------------------------------------------------------
248 virtual void * getValueAsVoidPointer();
249 //-----------------------------------------------------------------------
269 virtual int takeValue( const BaseRecordAttribute & rT );
270 //-----------------------------------------------------------------------
282 virtual void addValue( const std::string rsValue );
283 //-----------------------------------------------------------------------
295 virtual std::size_t getValueSize() const;
296 //-----------------------------------------------------------------------
317 //-----------------------------------------------------------------------
327 virtual void clearValueLot();
328 //-----------------------------------------------------------------------
329
330 protected:
331 //============== Methoden
332 //-----------------------------------------------------------------------
353 virtual void streamValueListInFileStream( std::ofstream & rFileStream );
354 //-----------------------------------------------------------------------
355
356 //============== Operatoren
357 //-----------------------------------------------------------------------
359
370 bool operator== ( const StringVectorRecordAttribute & rT ) const;
371 bool operator!= ( const StringVectorRecordAttribute & rT ) const;
373 //-----------------------------------------------------------------------
374
375 private:
376 //============== Operatoren
377 //-----------------------------------------------------------------------
388 //-----------------------------------------------------------------------
389 };
390 //---------------------------------------------------------------------------
391 #ifdef _MSC_VER
392 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
393 #pragma warning( default : 4251 )
394 #endif
395 //---------------------------------------------------------------------------
396} // namespace glo
397#endif
Header für StringLotRecordAttribute
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 String-Kontainer-Attribute eines Record.
Definition GloStringLotRecordAttribute.h:56
Klasse für die String-Vector-Attribute eines Record.
Definition GloStringVectorRecordAttribute.h:68
StringVectorRecordAttribute(ClassInfoAttribute *pType, const std::streampos &rFilePos)
std::vector< std::string > m_ValueVector
Definition GloStringVectorRecordAttribute.h:81
virtual int takeValue(const BaseRecordAttribute &rT)
virtual void setValueFromVoid(void *pValueVector)
virtual void addValue(const std::string rsValue)
virtual void * getValueAsVoidPointer()
void setValue(const std::vector< std::string > &rValueVector)
virtual std::size_t getValueSize() const
const std::vector< std::string > & getValueRef() const
virtual void streamValueListInFileStream(std::ofstream &rFileStream)
StringVectorRecordAttribute(ClassInfoAttribute *pType, const std::vector< std::string > &rValueVector, const std::streampos &rFilePos)
StringVectorRecordAttribute(const StringVectorRecordAttribute &rT)
virtual BaseRecordAttribute * getCopy()
Definition GloAbstractBaseLot.h:42