1#ifndef INC_GLOTONDEMANDSET_H
2#define INC_GLOTONDEMANDSET_H
203 virtual int insert( T * NewObj );
204 virtual int insert( std::shared_ptr<T> NewObj );
241 virtual int remove( T * Object );
242 virtual int remove( std::shared_ptr<T> Object );
300 virtual int get( std::shared_ptr<T> & rRetVal,
EnSeekMode eMode );
399 virtual int get( T *& prRetVal,
const ObjID & rObjID );
425 virtual int get( std::shared_ptr<T> & rRetVal,
const ObjID & rObjID );
444 #define SUPER OndemandSet
472 std::size_t t_nCount( 0 );
474 rsTypeName =
typeid(T).name();
475 rsTypeName.replace( t_nCount, 6,
"");
482 return SUPER::insertPers( pNewObj );
488 return SUPER::insertPers( spNewObj.operator->() );
494 return SUPER::removePers( pObject );
500 return SUPER::removePers( spObject.operator->() );
513 T * t_pPersObject =
nullptr;
514 int t_iErr = this->
get( t_pPersObject, eMode );
527 T * t_pPersObject =
nullptr;
528 int t_iErr = this->
get( t_pPersObject, eMode );
532 rRetVal.
set( t_pPersObject );
540 return SUPER::getPers( rObjID, (
BasePersistent*&) prRetVal, eMode );
545 std::shared_ptr<T> & rRetVal,
548 T * t_pPersObject =
nullptr;
549 int t_iErr = this->
get( rObjID, t_pPersObject, eMode );
563 T * t_pPersObject =
nullptr;
564 int t_iErr = this->
get( rObjID, t_pPersObject, eMode );
568 rRetVal.
set( t_pPersObject );
576 return SUPER::getPersistent( (
BasePersistent*&) prRetVal, rObjID );
581 const ObjID & rObjID )
583 T * t_pPersObject =
nullptr;
584 int t_iErr = this->
get( t_pPersObject, rObjID );
Header for BasePersistent
#define SUPER
Definition GloTAllSet.h:1204
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:1234
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 *pObj)
Definition GloTOndemand.h:460
virtual ~TOndemandSet()
Definition GloTOndemandSet.h:465
virtual int getTypeAsString(std::string &rsTypeName) override
Definition GloTOndemandSet.h:470
virtual int remove(T *Object)
Removes the passed persistent object from the set.
Definition GloTOndemandSet.h:492
virtual int insert(T *NewObj)
Inserts the passed persistent object into the set behind the current position.
Definition GloTOndemandSet.h:480
TOndemandSet< T > & operator=(const TOndemandSet &)
TOndemandSet(const TOndemandSet &)
TOndemandSet()
Definition GloTOndemandSet.h:447
virtual int get(T *&prRetVal, EnSeekMode eMode)
Definition GloTOndemandSet.h:504
Definition GloAbstractBaseLot.h:49
EnSeekMode
Definition GloTypes.h:173