GlobalObjects
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GloOdRefSetRecordAttribute.h
Go to the documentation of this file.
1#ifndef INC_GLOODREFSETRECORDATTRIBUTE_H
2#define INC_GLOODREFSETRECORDATTRIBUTE_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include <set>
45#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 //---------------------------------------------------------------------------
80 {
81 private:
82 //============== Attribute
83 //-----------------------------------------------------------------------
93 std::set<ObjID> m_ValueSet;
94 //-----------------------------------------------------------------------
95
96 protected:
97 //============= Konstruktoren
98 //-----------------------------------------------------------------------
109 //-----------------------------------------------------------------------
122 //-----------------------------------------------------------------------
123
124 public:
125 //============= Konstruktoren
126 //-----------------------------------------------------------------------
150 const std::streampos & rFilePos );
151 //-----------------------------------------------------------------------
177 const std::set< ObjID > & rValueSet,
178 const std::streampos & rFilePos );
179 //-----------------------------------------------------------------------
180
181 protected:
182 //============== Konstruktoren
183 //-----------------------------------------------------------------------
197 //-----------------------------------------------------------------------
198
199 public:
200 //============== Methoden
201 //-----------------------------------------------------------------------
213 void insert( const ObjID & rObjID );
214 //-----------------------------------------------------------------------
228 void setValue( const std::set< ObjID > & rValueSet );
229 //-----------------------------------------------------------------------
248 virtual void setValueFromVoid( void * pValueSet ) override;
249 //-----------------------------------------------------------------------
272 const AttributeID & rAttributeID ) override;
273 //-----------------------------------------------------------------------
285 const std::set< ObjID > & getValueRef() const;
286 //-----------------------------------------------------------------------
298 virtual std::string getValueAsStreamString() const override;
299 //-----------------------------------------------------------------------
311 virtual void * getValueAsVoidPointer() override;
312 //-----------------------------------------------------------------------
332 virtual int takeValue( const BaseRecordAttribute & rT ) override;
333 //-----------------------------------------------------------------------
345 virtual std::size_t getValueSize() const override;
346 //-----------------------------------------------------------------------
356 virtual void clearValueLot() override;
357 //-----------------------------------------------------------------------
377 virtual BaseRecordAttribute * getCopy() override;
378 //-----------------------------------------------------------------------
379
380 protected:
381 //============== Methoden
382 //-----------------------------------------------------------------------
403 virtual void streamValueListInFileStream( std::ofstream & rFileStream ) override;
404 //-----------------------------------------------------------------------
405
406 //============== Operatoren
407 //-----------------------------------------------------------------------
409
420 bool operator== ( const OdRefSetRecordAttribute & rT ) const;
421 bool operator!= ( const OdRefSetRecordAttribute & rT ) const;
423 //-----------------------------------------------------------------------
424
425 private:
426 //============== Operatoren
427 //-----------------------------------------------------------------------
438 //-----------------------------------------------------------------------
439 };
440 //---------------------------------------------------------------------------
441 #ifdef _MSC_VER
442 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
443 #pragma warning( default : 4251 )
444 #endif
445 //---------------------------------------------------------------------------
446} // namespace glo
447#endif
Header for LotRecordAttribute
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:70
This class reflects a unique ID of a class information attribute.
Definition GloAttributeID.h:81
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
An object ID consists of the class ID, a database ID and the actual unique object number (all unsigne...
Definition GloObjID.h:84
OdRefSetRecordAttribute(ClassInfoAttribute *pType, const std::set< ObjID > &rValueSet, const std::streampos &rFilePos)
virtual void setValueFromVoid(void *pValueSet) override
void setValue(const std::set< ObjID > &rValueSet)
virtual void clearValueLot() override
virtual void streamValueListInFileStream(std::ofstream &rFileStream) override
void insert(const ObjID &rObjID)
virtual BaseRecordAttribute * getCopy() override
virtual std::size_t getValueSize() const override
OdRefSetRecordAttribute(ClassInfoAttribute *pType, const std::streampos &rFilePos)
std::set< ObjID > m_ValueSet
Definition GloOdRefSetRecordAttribute.h:93
OdRefSetRecordAttribute(const OdRefSetRecordAttribute &rT)
virtual void * getValueAsVoidPointer() override
virtual int takeValue(const BaseRecordAttribute &rT) override
const std::set< ObjID > & getValueRef() const
virtual int setValueFromObjectAttributeID(Persistent &rObject, const AttributeID &rAttributeID) override
virtual std::string getValueAsStreamString() const override
The base class of the persistent classes. All persistent classes must be derived from this class to b...
Definition GloPersistent.h:245
Definition GloAbstractBaseLot.h:49