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 );
215 //-----------------------------------------------------------------------
241 virtual int removePers( BasePersistent * pObject ) = 0;
242 //-----------------------------------------------------------------------
280 virtual int getPers( BasePersistent *& prRetVal, EnSeekMode eMode ) = 0;
281 //-----------------------------------------------------------------------
315 virtual int getObjID( ObjID & rObjID, EnSeekMode eMode );
316 //-----------------------------------------------------------------------
318
331 virtual bool inLot( const ObjID & object ) const = 0;
332 virtual bool inLot( const BasePersistent & object ) const;
333 virtual bool inLot( const std::shared_ptr<BasePersistent> object ) const;
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
Is the base class of pointer and on-demand sets or pointer and on-demand lists.
Definition GloBaseLot.h:73
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
Is the abstract base class of pointer sets and lists.
Definition GloPointerLot.h:69
virtual bool inLot(const std::shared_ptr< BasePersistent > object) const
Checks if passed object is referenced in the container.
virtual bool inLot(const BasePersistent &object) const
Checks if passed object is referenced in the container.
Base * m_pBase
Definition GloPointerLot.h:82
virtual int getPers(BasePersistent *&prRetVal, EnSeekMode eMode)=0
virtual int removePers(BasePersistent *pObject)=0
virtual int getObjID(ObjID &rObjID, EnSeekMode eMode)
virtual Base * getBase() const override
PointerLot(Base &rBase)
virtual bool inLot(const ObjID &object) const =0
Checks if passed object is referenced in the container.
PointerLot(const PointerLot &)
virtual int setBase(Base *pBase) override
virtual ~PointerLot()
virtual int insertPersBefore(BasePersistent *pNewObj, const BasePersistent *pObject)
Definition GloAbstractBaseLot.h:49
EnSeekMode
Definition GloTypes.h:173