GlobalObjects
Loading...
Searching...
No Matches
GloOndemandList.h
Go to the documentation of this file.
1#ifndef INC_GLOONDEMANDLIST_H
2#define INC_GLOONDEMANDLIST_H
3//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include <list>
38#include "GloTypes.h"
39#include "GloOndemandLot.h"
40//-----------------------------------------------------------------------------
41#ifdef _MSC_VER
42 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
43 #pragma warning( disable : 4251 )
44#endif
45//-----------------------------------------------------------------------------
46namespace glo
47{
48 //---------------------------------------------------------------------------
66 {
67 public:
68 //============== Konstruktoren
69 //-----------------------------------------------------------------------
80 //-----------------------------------------------------------------------
92 OndemandList( Base & rBase );
93 //-----------------------------------------------------------------------
106 virtual ~OndemandList();
107 //-----------------------------------------------------------------------
108
109 private:
110 //============== Konstruktoren
111 //-----------------------------------------------------------------------
122 //-----------------------------------------------------------------------
123
124 public:
125 //============== Methoden
126 //-----------------------------------------------------------------------
160 virtual int insertOndemand( const Reference & rNewOndemand );
161 //-----------------------------------------------------------------------
192 virtual int appendOndemand( const Reference & rNewOndemand );
193 //-----------------------------------------------------------------------
229 virtual int removeOndemand( const Reference & rOndemand );
230 //-----------------------------------------------------------------------
232
241 virtual bool inLot( const ObjID & object ) const;
242 virtual bool inLot( const BasePersistent & object ) const;
243 virtual bool inLot( const std::shared_ptr<BasePersistent> object ) const;
244 virtual bool inLot( const Reference & object ) const;
246 //-----------------------------------------------------------------------
267 virtual int getPersistent( BasePersistent *& prRetVal, const ObjID & rObjID );
268 //-----------------------------------------------------------------------
284 virtual int setCurrentObject( const ObjID & rObjID );
285 //-----------------------------------------------------------------------
299 virtual int setPosition( std::size_t nPosition );
300 //-----------------------------------------------------------------------
314 virtual std::size_t size() const;
315 //-----------------------------------------------------------------------
327 virtual void clear();
328 //-----------------------------------------------------------------------
362 virtual Reference * getOndemand( EnSeekMode eMode );
363 //-----------------------------------------------------------------------
364
365 private:
366 //============== Operatoren
367 //-----------------------------------------------------------------------
377 inline OndemandList & operator= ( const OndemandList & );
378 //-----------------------------------------------------------------------
379 };
380 //---------------------------------------------------------------------------
381 #ifdef _MSC_VER
382 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
383 #pragma warning( default : 4251 )
384 #endif
385 //---------------------------------------------------------------------------
386} // namespace glo
387#endif
Header for OndemandLot
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:63
This class is the interface to the persistent objects. Here "objects" can be registered,...
Definition GloBase.h:250
Abstract base class for Persistent and the generic GenericPersistent.
Definition GloBasePersistent.h:102
An object ID consists of the class ID, a database ID and the actual unique object number (all unsigne...
Definition GloObjID.h:77
Is the base class of Template-Ondemand-List. The objects are managed in a std::list....
Definition GloOndemandList.h:66
OndemandList(const OndemandList &)
virtual bool inLot(const ObjID &object) const
See description in superclass.
virtual ~OndemandList()
virtual int removeOndemand(const Reference &rOndemand)
virtual int getPersistent(BasePersistent *&prRetVal, const ObjID &rObjID)
virtual int setPosition(std::size_t nPosition)
virtual int appendOndemand(const Reference &rNewOndemand)
virtual bool inLot(const BasePersistent &object) const
See description in superclass.
virtual Reference * getOndemand(EnSeekMode eMode)
virtual void clear()
OndemandList(Base &rBase)
virtual bool inLot(const std::shared_ptr< BasePersistent > object) const
See description in superclass.
virtual bool inLot(const Reference &object) const
See description in superclass.
virtual int insertOndemand(const Reference &rNewOndemand)
virtual int setCurrentObject(const ObjID &rObjID)
virtual std::size_t size() const
Is the abstract base class of on-demand sets and lists.
Definition GloOndemandLot.h:62
The base class of a reference attribute from persistent objects to other persistent objects in the da...
Definition GloReference.h:65
Definition GloAbstractBaseLot.h:42
EnSeekMode
Definition GloTypes.h:166