1#ifndef INC_GLOTONDEMANDLIST_H
2#define INC_GLOTONDEMANDLIST_H
190 virtual int insert( T * NewObj );
191 virtual int insert( std::shared_ptr<T> NewObj );
226 virtual int insertBefore( T * NewObj,
const T * Object );
228 const std::shared_ptr<T> Object );
261 virtual int append( T * NewObj );
262 virtual int append( std::shared_ptr<T> NewObj );
299 virtual int remove( T * Object );
300 virtual int remove( std::shared_ptr<T> Object );
344 virtual int get( std::shared_ptr<T> & rRetVal,
EnSeekMode eMode );
368 virtual int get( T *& prRetVal,
const ObjID & rObjID );
390 virtual int get( std::shared_ptr<T> & rRetVal,
const ObjID & rObjID );
409 #define SUPER OndemandList
437 std::size_t t_nCount( 0 );
439 rsTypeName =
typeid(T).name();
440 rsTypeName.replace( t_nCount, 6,
"");
447 return SUPER::insertPers( pNewObj );
453 return SUPER::insertPers( spNewObj.operator->() );
459 return SUPER::insertPersBefore( pNewObj, pObject );
464 const std::shared_ptr<T> spObject )
466 return SUPER::insertPersBefore( spNewObj.operator->(), spObject.operator->() );
472 return SUPER::appendPers( pNewObj );
478 return SUPER::appendPers( spNewObj.operator->() );
484 return SUPER::removePers( pObject );
490 return SUPER::removePers( spObject.operator->() );
503 T * t_pPersObject = 0;
504 int t_iErr = this->get( t_pPersObject, eMode );
517 T * t_pPersObject = 0;
518 int t_iErr = this->get( t_pPersObject, eMode );
522 rRetVal.
set( t_pPersObject );
530 return SUPER::getPersistent( (
BasePersistent*&) prRetVal, rObjID );
535 const ObjID & rObjID )
537 T * t_pPersObject = 0;
538 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-List. The objects are managed in a std::list....
Definition GloOndemandList.h:66
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 list of references to persistent objects in the database (intended as an attribute for pe...
Definition GloTOndemandList.h:80
virtual int get(T *&prRetVal, EnSeekMode eMode)
Definition GloTOndemandList.h:494
TOndemandList(const TOndemandList &)
virtual int insert(T *NewObj)
Inserts the passed persistent object into the list behind the current position.
Definition GloTOndemandList.h:445
virtual ~TOndemandList()
Definition GloTOndemandList.h:430
TOndemandList()
Definition GloTOndemandList.h:412
virtual int insertBefore(T *NewObj, const T *Object)
Inserts a persistent object before another object in the list.
Definition GloTOndemandList.h:457
virtual int remove(T *Object)
Removes the passed persistent object from the list.
Definition GloTOndemandList.h:482
virtual int append(T *NewObj)
Appends a persistent object to the end of the list.
Definition GloTOndemandList.h:470
virtual int getTypeAsString(std::string &rsTypeName) override
Definition GloTOndemandList.h:435
TOndemandList< T > & operator=(const TOndemandList &)
Definition GloAbstractBaseLot.h:42
EnSeekMode
Definition GloTypes.h:166