1#ifndef INC_GLOTONDEMANDSET_H
2#define INC_GLOTONDEMANDSET_H
188 virtual int insert( T * NewObj );
189 virtual int insert( std::shared_ptr<T> NewObj );
226 virtual int remove( T * Object );
227 virtual int remove( std::shared_ptr<T> Object );
271 virtual int get( std::shared_ptr<T> & rRetVal,
EnSeekMode eMode );
295 virtual int get( T *& prRetVal,
const ObjID & rObjID );
317 virtual int get( std::shared_ptr<T> & rRetVal,
const ObjID & rObjID );
336 #define SUPER OndemandSet
364 std::size_t t_nCount( 0 );
366 rsTypeName =
typeid(T).name();
367 rsTypeName.replace( t_nCount, 6,
"");
374 return SUPER::insertPers( pNewObj );
380 return SUPER::insertPers( spNewObj.operator->() );
386 return SUPER::removePers( pObject );
392 return SUPER::removePers( spObject.operator->() );
405 T * t_pPersObject = 0;
406 int t_iErr = this->get( t_pPersObject, eMode );
419 T * t_pPersObject = 0;
420 int t_iErr = this->get( t_pPersObject, eMode );
424 rRetVal.
set( t_pPersObject );
432 return SUPER::getPersistent( (
BasePersistent*&) prRetVal, rObjID );
437 const ObjID & rObjID )
439 T * t_pPersObject = 0;
440 int t_iErr = this->get( t_pPersObject, rObjID );
Header for BasePersistent
#define SUPER
Definition GloTAllSet.h:1151
For each library, here 'GlobalObjects' there is a type file.
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
std::string m_strDebugInfo
Definition GloCallBack.h:115
Especially for GenericPersistent or derived classes of Persistent the Forget method for std::shared_p...
Definition GloTypes.h:1249
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-Set. Objects can be inserted only once.
Definition GloOndemandSet.h:64
A reference (as attribute) of a persistent object to another persistent object in the database.
Definition GloTOndemand.h:90
int set(const T *pObj)
Definition GloTOndemand.h:383
A type-safe set of references to persistent objects in the database (intended as an attribute for per...
Definition GloTOndemandSet.h:78
virtual ~TOndemandSet()
Definition GloTOndemandSet.h:357
virtual int getTypeAsString(std::string &rsTypeName) override
Definition GloTOndemandSet.h:362
virtual int remove(T *Object)
Removes the passed persistent object from the set.
Definition GloTOndemandSet.h:384
virtual int insert(T *NewObj)
Inserts the passed persistent object into the set behind the current position.
Definition GloTOndemandSet.h:372
TOndemandSet< T > & operator=(const TOndemandSet &)
TOndemandSet(const TOndemandSet &)
TOndemandSet()
Definition GloTOndemandSet.h:339
virtual int get(T *&prRetVal, EnSeekMode eMode)
Definition GloTOndemandSet.h:396
Definition GloAbstractBaseLot.h:42
EnSeekMode
Definition GloTypes.h:166