1#ifndef INC_GLOTONDEMANDLIST_H
2#define INC_GLOTONDEMANDLIST_H
222 virtual int insert( T * NewObj );
223 virtual int insert( std::shared_ptr<T> NewObj );
258 virtual int insertBefore( T * NewObj,
const T * Object );
260 const std::shared_ptr<T> Object );
293 virtual int append( T * NewObj );
294 virtual int append( std::shared_ptr<T> NewObj );
331 virtual int remove( T * Object );
332 virtual int remove( std::shared_ptr<T> Object );
390 virtual int get( std::shared_ptr<T> & rRetVal,
EnSeekMode eMode );
491 virtual int get( T *& prRetVal,
const ObjID & rObjID );
512 virtual int get( std::shared_ptr<T> & rRetVal,
const ObjID & rObjID );
531 #define SUPER OndemandList
559 std::size_t t_nCount( 0 );
561 rsTypeName =
typeid(T).name();
562 rsTypeName.replace( t_nCount, 6,
"");
569 return SUPER::insertPers( pNewObj );
575 return SUPER::insertPers( spNewObj.operator->() );
581 return SUPER::insertPersBefore( pNewObj, pObject );
586 const std::shared_ptr<T> spObject )
588 return SUPER::insertPersBefore( spNewObj.operator->(), spObject.operator->() );
594 return SUPER::appendPers( pNewObj );
600 return SUPER::appendPers( spNewObj.operator->() );
606 return SUPER::removePers( pObject );
612 return SUPER::removePers( spObject.operator->() );
625 T * t_pPersObject =
nullptr;
626 int t_iErr = this->
get( t_pPersObject, eMode );
639 T * t_pPersObject =
nullptr;
640 int t_iErr = this->
get( t_pPersObject, eMode );
644 rRetVal.
set( t_pPersObject );
652 return SUPER::getPers( rObjID, (
BasePersistent*&) prRetVal, eMode );
657 std::shared_ptr<T> & rRetVal,
660 T * t_pPersObject =
nullptr;
661 int t_iErr = this->
get( rObjID, t_pPersObject, eMode );
675 T * t_pPersObject =
nullptr;
676 int t_iErr = this->
get( rObjID, t_pPersObject, eMode );
680 rRetVal.
set( t_pPersObject );
688 return SUPER::getPersistent( (
BasePersistent*&) prRetVal, rObjID );
693 const ObjID & rObjID )
695 T * t_pPersObject =
nullptr;
696 int t_iErr = this->
get( t_pPersObject, rObjID );
Header for BasePersistent
#define SUPER
Definition GloTAllSet.h:1302
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
Definition GloTOndemand.h:209
int set(const T *rObj)
Adopts the object ID of the passed object as reference.
Definition GloTOndemand.h:535
virtual int get(T *&prRetVal, EnSeekMode eMode)
Definition GloTOndemandList.h:616
TOndemandList(const TOndemandList &)
virtual int insert(T *NewObj)
Inserts the passed persistent object into the list behind the current position.
Definition GloTOndemandList.h:567
virtual ~TOndemandList()
Definition GloTOndemandList.h:552
TOndemandList()
Definition GloTOndemandList.h:534
virtual int insertBefore(T *NewObj, const T *Object)
Inserts a persistent object before another object in the list.
Definition GloTOndemandList.h:579
virtual int remove(T *Object)
Removes the passed persistent object from the list.
Definition GloTOndemandList.h:604
virtual int append(T *NewObj)
Appends a persistent object to the end of the list.
Definition GloTOndemandList.h:592
virtual int getTypeAsString(std::string &rsTypeName) override
Definition GloTOndemandList.h:557
TOndemandList< T > & operator=(const TOndemandList &)
static unsigned long getStaticGloClassID()
Definition GloTOndemandList.h:167
Definition GloAbstractBaseLot.h:49
EnSeekMode
Definition GloTypes.h:192