GlobalObjects
Lade ...
Suche ...
Keine Treffer
GloAbstractBaseLot.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_GLOABSTRACTBASELOT_H
2#define INC_GLOABSTRACTBASELOT_H
3//-----------------------------------------------------------------------------
37//-----------------------------------------------------------------------------
38#include "GloTypes.h"
39#include "GloCallBack.h"
40//-----------------------------------------------------------------------------
41namespace glo
42{
43 //---------------------------------------------------------------------------
44 /* Forwards */
45 //---------------------------------------------------------------------------
46 class BasePersistent;
47 //---------------------------------------------------------------------------
62 {
63 public:
64 //============== Konstruktoren
65 //-----------------------------------------------------------------------
76 //-----------------------------------------------------------------------
87 //-----------------------------------------------------------------------
88
89 private:
90 //============== Konstruktoren
91 //-----------------------------------------------------------------------
102 //-----------------------------------------------------------------------
103
104 public:
105 //============== Methoden
106 //-----------------------------------------------------------------------
118 virtual std::size_t size() const = 0;
119 //-----------------------------------------------------------------------
133 virtual bool inLot( const ObjID & rObjID ) const = 0;
134 //-----------------------------------------------------------------------
155 virtual int getPersistent( BasePersistent *& prRetVal, const ObjID & prObjID ) = 0;
156 //-----------------------------------------------------------------------
172 virtual int getPersistent( std::shared_ptr<BasePersistent> & rRetVal,
173 const ObjID & rObjID );
174 //-----------------------------------------------------------------------
190 virtual int setCurrentObject( const BasePersistent & rObject );
191 //-----------------------------------------------------------------------
207 virtual int setCurrentObject( const ObjID & rObjID ) = 0;
208 //-----------------------------------------------------------------------
222 virtual int setPosition( std::size_t nPosition ) = 0;
223 //-----------------------------------------------------------------------
224
225 private:
226 //============== Operatoren
227 //-----------------------------------------------------------------------
237 AbstractBaseLot & operator= ( const AbstractBaseLot & );
238 //-----------------------------------------------------------------------
239 };
240 //---------------------------------------------------------------------------
241} // namespace glo
242#endif
Header für CallBack
Für jede Bibliothek, hier 'GlobalObjects' gibt es eine Typen-Datei.
#define __glo_export_dll
Definition GloTypes.h:63
Die Basisklasse für Container mit persistenten Objekten.
Definition GloAbstractBaseLot.h:62
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
Abstrakte Basisklasse für Persistent und die generische GenericPersistent.
Definition GloBasePersistent.h:102
Oberklasse für die Klassen, welche mit einer Base 'verbunden' sind.
Definition GloCallBack.h:74
Ein Objekt-ID besteht aus der Klassen-ID, einer Datenbank-ID und der eigentlichen eindeutigen ObjektZ...
Definition GloObjID.h:77
Definition GloAbstractBaseLot.h:42