GlobalObjects
Loading...
Searching...
No Matches
GloGenericAllSet.h
Go to the documentation of this file.
1#ifndef INC_GLOGENERICALLSET_H
2#define INC_GLOGENERICALLSET_H
3//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include "GloTypes.h"
38#include "GloBaseAllSet.h"
40//-----------------------------------------------------------------------------
41namespace glo
42{
43 //---------------------------------------------------------------------------
75 {
76 public:
77 //============== Konstruktoren
78 //-----------------------------------------------------------------------
89 //-----------------------------------------------------------------------
103 GenericAllSet( Base & rBase );
104 //-----------------------------------------------------------------------
127 unsigned long ulClassID,
128 bool bWithSubClasses = true );
129 //-----------------------------------------------------------------------
151 GenericAllSet( Base & rBase, unsigned long ulClassID, const std::string & rsFullIndexName );
152 //-----------------------------------------------------------------------
162 virtual ~GenericAllSet();
163 //-----------------------------------------------------------------------
164
165 private:
166 //============== Konstruktoren
167 //-----------------------------------------------------------------------
178 //-----------------------------------------------------------------------
179
180 public:
181 //============== Methoden
182 //-----------------------------------------------------------------------
196 virtual void setClassID( unsigned long ulClassID );
197 //-----------------------------------------------------------------------
245 int get( GenericPersistent *& prRetVal, EnSeekMode eMode );
246 //-----------------------------------------------------------------------
282 int get( std::shared_ptr<GenericPersistent> & rRetVal, EnSeekMode eMode );
283 //-----------------------------------------------------------------------
337 int get( ObjID & rObjID,
338 GenericPersistent *& prRetVal,
339 EnSeekMode eMode );
340 //-----------------------------------------------------------------------
383 int get( ObjID & rObjID,
384 std::shared_ptr<GenericPersistent> & rRetVal,
385 EnSeekMode eMode );
386 //-----------------------------------------------------------------------
388
416 virtual int getPersistent( BasePersistent *& prRetVal, const ObjID & rObjID );
417 int get( GenericPersistent *& prRetVal, const ObjID & rObjID );
419 //-----------------------------------------------------------------------
438 int get( std::shared_ptr<GenericPersistent> & rRetVal,
439 const ObjID & rObjID );
440 //-----------------------------------------------------------------------
487 virtual int setWatch( TdWatchNotifyMode ulWatchMode,
488 CallBack * pCallBack = 0 );
489 //-----------------------------------------------------------------------
521 virtual int unsetWatch( TdWatchNotifyMode ulWatchMode,
522 CallBack * pCallBack = 0 );
523 //-----------------------------------------------------------------------
524
525 private:
526 //============== Operatoren
527 //-----------------------------------------------------------------------
537 GenericAllSet & operator= ( const GenericAllSet & );
538 //-----------------------------------------------------------------------
539 };
540 //---------------------------------------------------------------------------
541} // namespace glo
542#endif
Header for BaseAllSet
Header for GenericPersistent
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:63
Is the base class of template AllSets and the generic AllSet.
Definition GloBaseAllSet.h:80
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
Superclass for the classes that are 'connected' to a Base.
Definition GloCallBack.h:74
AllSet, which returns generic objects.
Definition GloGenericAllSet.h:75
int get(std::shared_ptr< GenericPersistent > &rRetVal, const ObjID &rObjID)
virtual int getPersistent(BasePersistent *&prRetVal, const ObjID &rObjID)
Returns an object from the AllSet of the database with passed object ID.
virtual ~GenericAllSet()
int get(GenericPersistent *&prRetVal, EnSeekMode eMode)
virtual int setWatch(TdWatchNotifyMode ulWatchMode, CallBack *pCallBack=0)
int get(std::shared_ptr< GenericPersistent > &rRetVal, EnSeekMode eMode)
int get(ObjID &rObjID, std::shared_ptr< GenericPersistent > &rRetVal, EnSeekMode eMode)
GenericAllSet(Base &rBase, unsigned long ulClassID, bool bWithSubClasses=true)
GenericAllSet(const GenericAllSet &)
virtual int unsetWatch(TdWatchNotifyMode ulWatchMode, CallBack *pCallBack=0)
int get(GenericPersistent *&prRetVal, const ObjID &rObjID)
Returns an object from the AllSet of the database with passed object ID.
int get(ObjID &rObjID, GenericPersistent *&prRetVal, EnSeekMode eMode)
GenericAllSet(Base &rBase, unsigned long ulClassID, const std::string &rsFullIndexName)
GenericAllSet(Base &rBase)
virtual void setClassID(unsigned long ulClassID)
Generic persistent class. Does not require ObjCreator or ObjectMaker. Objects from the database can b...
Definition GloGenericPersistent.h:84
An object ID consists of the class ID, a database ID and the actual unique object number (all unsigne...
Definition GloObjID.h:77
Definition GloAbstractBaseLot.h:42
EnSeekMode
Definition GloTypes.h:166
unsigned long TdWatchNotifyMode
Definition GloTypes.h:543