GlobalObjects
Loading...
Searching...
No Matches
GloPointerLot.h
Go to the documentation of this file.
1#ifndef INC_GLOPOINTERLOT_H
2#define INC_GLOPOINTERLOT_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include <list>
45#include "GloTypes.h"
46#include "GloBaseLot.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 //---------------------------------------------------------------------------
69 {
70 private:
71 //============== Attribute
72 //-----------------------------------------------------------------------
83 //-----------------------------------------------------------------------
84
85 public:
86 //============== Konstruktoren
87 //-----------------------------------------------------------------------
98 //-----------------------------------------------------------------------
110 PointerLot( Base & rBase );
111 //-----------------------------------------------------------------------
121 virtual ~PointerLot();
122 //-----------------------------------------------------------------------
123
124 private:
125 //============== Konstruktoren
126 //-----------------------------------------------------------------------
137 //-----------------------------------------------------------------------
138
139 public:
140 //============== Methoden
141 //-----------------------------------------------------------------------
168 virtual int setBase( Base * pBase ) override;
169 //-----------------------------------------------------------------------
184 virtual Base * getBase() const override;
185 //-----------------------------------------------------------------------
213 virtual int insertPersBefore( BasePersistent * pNewObj,
214 const BasePersistent * pObject ) override;
215 //-----------------------------------------------------------------------
241 virtual int removePers( BasePersistent * pObject ) override = 0;
242 //-----------------------------------------------------------------------
280 virtual int getPers( BasePersistent *& prRetVal, EnSeekMode eMode ) override = 0;
281 //-----------------------------------------------------------------------
315 virtual int getObjID( ObjID & rObjID, EnSeekMode eMode ) override;
316 //-----------------------------------------------------------------------
318
331 virtual bool inLot( const ObjID & object ) const override = 0;
332 virtual bool inLot( const BasePersistent & object ) const override;
333 virtual bool inLot( const std::shared_ptr<BasePersistent> object ) const override;
335 //-----------------------------------------------------------------------
336
337
338 private:
339 //============== Operatoren
340 //-----------------------------------------------------------------------
350 inline PointerLot & operator= ( const PointerLot & );
351 //-----------------------------------------------------------------------
352 };
353 //---------------------------------------------------------------------------
354 #ifdef _MSC_VER
355 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
356 #pragma warning( default : 4251 )
357 #endif
358 //---------------------------------------------------------------------------
359} // namespace glo
360#endif
Header for BaseLot
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:70
Definition GloBase.h:263
Abstract base class for Persistent and the generic GenericPersistent.
Definition GloBasePersistent.h:124
An object ID consists of the class ID, a database ID and the actual unique object number (all unsigne...
Definition GloObjID.h:84
virtual int getPers(BasePersistent *&prRetVal, EnSeekMode eMode) override=0
Base * m_pBase
Definition GloPointerLot.h:82
virtual bool inLot(const ObjID &object) const override=0
Checks if passed object is referenced in the container.
virtual bool inLot(const BasePersistent &object) const override
Checks if passed object is referenced in the container.
virtual int getObjID(ObjID &rObjID, EnSeekMode eMode) override
virtual bool inLot(const std::shared_ptr< BasePersistent > object) const override
Checks if passed object is referenced in the container.
virtual Base * getBase() const override
PointerLot(Base &rBase)
PointerLot(const PointerLot &)
virtual int removePers(BasePersistent *pObject) override=0
virtual int setBase(Base *pBase) override
virtual int insertPersBefore(BasePersistent *pNewObj, const BasePersistent *pObject) override
virtual ~PointerLot()
Definition GloAbstractBaseLot.h:49
EnSeekMode
Definition GloTypes.h:173