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//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include "GloTypes.h"
45#include "GloBaseAllSet.h"
47//-----------------------------------------------------------------------------
48namespace glo
49{
50 //---------------------------------------------------------------------------
82 {
83 public:
84 //============== Konstruktoren
85 //-----------------------------------------------------------------------
96 //-----------------------------------------------------------------------
110 GenericAllSet( Base & rBase );
111 //-----------------------------------------------------------------------
134 unsigned long ulClassID,
135 bool bWithSubClasses = true );
136 //-----------------------------------------------------------------------
158 GenericAllSet( Base & rBase, unsigned long ulClassID, const std::string & rsFullIndexName );
159 //-----------------------------------------------------------------------
169 virtual ~GenericAllSet();
170 //-----------------------------------------------------------------------
171
172 private:
173 //============== Konstruktoren
174 //-----------------------------------------------------------------------
185 //-----------------------------------------------------------------------
186
187 public:
188 //============== Methoden
189 //-----------------------------------------------------------------------
203 virtual void setClassID( unsigned long ulClassID );
204 //-----------------------------------------------------------------------
252 int get( GenericPersistent *& prRetVal, EnSeekMode eMode );
253 //-----------------------------------------------------------------------
289 int get( std::shared_ptr<GenericPersistent> & rRetVal, EnSeekMode eMode );
290 //-----------------------------------------------------------------------
344 int get( ObjID & rObjID,
345 GenericPersistent *& prRetVal,
346 EnSeekMode eMode );
347 //-----------------------------------------------------------------------
390 int get( ObjID & rObjID,
391 std::shared_ptr<GenericPersistent> & rRetVal,
392 EnSeekMode eMode );
393 //-----------------------------------------------------------------------
395
423 virtual int getPersistent( BasePersistent *& prRetVal, const ObjID & rObjID );
424 int get( GenericPersistent *& prRetVal, const ObjID & rObjID );
426 //-----------------------------------------------------------------------
445 int get( std::shared_ptr<GenericPersistent> & rRetVal,
446 const ObjID & rObjID );
447 //-----------------------------------------------------------------------
498 virtual int setWatch( TdWatchNotifyMode ulWatchMode,
499 CallBack * pCallBack = 0 );
500 //-----------------------------------------------------------------------
536 virtual int unsetWatch( TdWatchNotifyMode ulWatchMode,
537 CallBack * pCallBack = 0 );
538 //-----------------------------------------------------------------------
539
540 private:
541 //============== Operatoren
542 //-----------------------------------------------------------------------
552 GenericAllSet & operator= ( const GenericAllSet & );
553 //-----------------------------------------------------------------------
554 };
555 //---------------------------------------------------------------------------
556} // namespace glo
557#endif
Header for BaseAllSet
Header for GenericPersistent
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:70
Is the base class of template AllSets and the generic AllSet.
Definition GloBaseAllSet.h:87
Definition GloBase.h:263
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
AllSet, which returns generic objects.
Definition GloGenericAllSet.h:82
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:91
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
EnSeekMode
Definition GloTypes.h:173
unsigned long TdWatchNotifyMode
Definition GloTypes.h:558