GlobalObjects
Loading...
Searching...
No Matches
GloAbstractBaseLot.h
Go to the documentation of this file.
1#ifndef INC_GLOABSTRACTBASELOT_H
2#define INC_GLOABSTRACTBASELOT_H
3//-----------------------------------------------------------------------------
44//-----------------------------------------------------------------------------
45#include "GloTypes.h"
46#include "GloCallBack.h"
47//-----------------------------------------------------------------------------
48namespace glo
49{
50 //---------------------------------------------------------------------------
51 /* Forwards */
52 //---------------------------------------------------------------------------
53 class BasePersistent;
54 //---------------------------------------------------------------------------
69 {
70 public:
71 //============== Konstruktoren
72 //-----------------------------------------------------------------------
83 //-----------------------------------------------------------------------
94 //-----------------------------------------------------------------------
95
96 private:
97 //============== Konstruktoren
98 //-----------------------------------------------------------------------
109 //-----------------------------------------------------------------------
110
111 public:
112 //============== Methoden
113 //-----------------------------------------------------------------------
125 virtual std::size_t size() const = 0;
126 //-----------------------------------------------------------------------
140 virtual bool inLot( const ObjID & rObjID ) const = 0;
141 //-----------------------------------------------------------------------
162 virtual int getPersistent( BasePersistent *& prRetVal, const ObjID & prObjID ) = 0;
163 //-----------------------------------------------------------------------
179 virtual int getPersistent( std::shared_ptr<BasePersistent> & rRetVal,
180 const ObjID & rObjID );
181 //-----------------------------------------------------------------------
197 virtual int setCurrentObject( const BasePersistent & rObject );
198 //-----------------------------------------------------------------------
214 virtual int setCurrentObject( const ObjID & rObjID ) = 0;
215 //-----------------------------------------------------------------------
229 virtual int setPosition( std::size_t nPosition ) = 0;
230 //-----------------------------------------------------------------------
231
232 private:
233 //============== Operatoren
234 //-----------------------------------------------------------------------
244 AbstractBaseLot & operator= ( const AbstractBaseLot & );
245 //-----------------------------------------------------------------------
246 };
247 //---------------------------------------------------------------------------
248} // namespace glo
249#endif
Header for CallBack
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:70
The base class for container with persistent objects.
Definition GloAbstractBaseLot.h:69
virtual ~AbstractBaseLot()
virtual int setPosition(std::size_t nPosition)=0
virtual int setCurrentObject(const BasePersistent &rObject)
virtual int setCurrentObject(const ObjID &rObjID)=0
virtual int getPersistent(BasePersistent *&prRetVal, const ObjID &prObjID)=0
virtual std::size_t size() const =0
AbstractBaseLot(const AbstractBaseLot &)
virtual int getPersistent(std::shared_ptr< BasePersistent > &rRetVal, const ObjID &rObjID)
virtual bool inLot(const ObjID &rObjID) const =0
Abstract base class for Persistent and the generic GenericPersistent.
Definition GloBasePersistent.h:124
Superclass for the classes that are 'connected' to a Base.
Definition GloCallBack.h:81
An object ID consists of the class ID, a database ID and the actual unique object number (all unsigne...
Definition GloObjID.h:84
Definition GloAbstractBaseLot.h:49