1#ifndef INC_GLOTONDEMANDSET_H
2#define INC_GLOTONDEMANDSET_H
218 virtual int insert( T * NewObj );
219 virtual int insert( std::shared_ptr<T> NewObj );
256 virtual int remove( T * Object );
257 virtual int remove( std::shared_ptr<T> Object );
315 virtual int get( std::shared_ptr<T> & rRetVal,
EnSeekMode eMode );
418 virtual int get( T *& prRetVal,
const ObjID & rObjID );
439 virtual int get( std::shared_ptr<T> & rRetVal,
const ObjID & rObjID );
458 #define SUPER OndemandSet
486 std::size_t t_nCount( 0 );
488 rsTypeName =
typeid(T).name();
489 rsTypeName.replace( t_nCount, 6,
"");
496 return SUPER::insertPers( pNewObj );
502 return SUPER::insertPers( spNewObj.operator->() );
508 return SUPER::removePers( pObject );
514 return SUPER::removePers( spObject.operator->() );
527 T * t_pPersObject =
nullptr;
528 int t_iErr = this->
get( t_pPersObject, eMode );
541 T * t_pPersObject =
nullptr;
542 int t_iErr = this->
get( t_pPersObject, eMode );
546 rRetVal.
set( t_pPersObject );
554 return SUPER::getPers( rObjID, (
BasePersistent*&) prRetVal, eMode );
559 std::shared_ptr<T> & rRetVal,
562 T * t_pPersObject =
nullptr;
563 int t_iErr = this->
get( rObjID, t_pPersObject, eMode );
577 T * t_pPersObject =
nullptr;
578 int t_iErr = this->
get( rObjID, t_pPersObject, eMode );
582 rRetVal.
set( t_pPersObject );
590 return SUPER::getPersistent( (
BasePersistent*&) prRetVal, rObjID );
595 const ObjID & rObjID )
597 T * t_pPersObject =
nullptr;
598 int t_iErr = this->
get( t_pPersObject, rObjID );
Header for BasePersistent
#define SUPER
Definition GloTAllSet.h:1300
For each library, here 'GlobalObjects' there is a type file.
Abstract base class for Persistent and the generic GenericPersistent.
Definition GloBasePersistent.h:124
std::string m_strDebugInfo
Definition GloCallBack.h:111
Especially for GenericPersistent or derived classes of Persistent the Forget method for std::shared_p...
Definition GloTypes.h:1253
An object ID consists of the class ID, a database ID and the actual unique object number (all unsigne...
Definition GloObjID.h:84
A reference (as attribute) of a persistent object to another persistent object in the database.
Definition GloTOndemand.h:102
int set(const T *rObj)
Adopts the object ID of the passed object as reference.
Definition GloTOndemand.h:443
virtual ~TOndemandSet()
Definition GloTOndemandSet.h:479
virtual int getTypeAsString(std::string &rsTypeName) override
Definition GloTOndemandSet.h:484
virtual int remove(T *Object)
Removes the passed persistent object from the set.
Definition GloTOndemandSet.h:506
virtual int insert(T *NewObj)
Inserts the passed persistent object into the set.
Definition GloTOndemandSet.h:494
TOndemandSet< T > & operator=(const TOndemandSet &)
TOndemandSet(const TOndemandSet &)
static unsigned long getStaticGloClassID()
Definition GloTOndemandSet.h:165
TOndemandSet()
Definition GloTOndemandSet.h:461
virtual int get(T *&prRetVal, EnSeekMode eMode)
Definition GloTOndemandSet.h:518
Definition GloAbstractBaseLot.h:49
EnSeekMode
Definition GloTypes.h:192