1#ifndef INC_GLOTPOINTERSET_H
2#define INC_GLOTPOINTERSET_H
196 virtual int insert( T * pNewObj );
227 virtual int insert( std::shared_ptr<T> spNewObj );
264 virtual int remove( T * pObject );
299 virtual int remove( std::shared_ptr<T> spObject );
375 virtual int get( std::shared_ptr<T> & rRetVal,
EnSeekMode eMode );
394 #define SUPER PointerSet
422 std::size_t t_nCount( 0 );
424 rsTypeName =
typeid(T).name();
425 rsTypeName.replace( t_nCount, 6,
"");
432 return SUPER::insertPers( pNewObj );
438 return SUPER::insertPers( spNewObj.operator->() );
444 return SUPER::removePers( pObject );
450 return SUPER::removePers( spObject.operator->() );
462 T * t_pPersObject = 0;
463 int t_iErr = this->get( t_pPersObject, eMode );
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
Is the base class of a template set. The persistent objects are managed in a std::set....
Definition GloPointerSet.h:73
A type-safe set of pointers to persistent objects in the database (intended as an attribute for persi...
Definition GloTPointerSet.h:88
virtual int insert(T *pNewObj)
Definition GloTPointerSet.h:430
TPointerSet(const TPointerSet &)
virtual int getTypeAsString(std::string &rsTypeName) override
Definition GloTPointerSet.h:420
TPointerSet< T > & operator=(const TPointerSet &)
virtual int remove(T *pObject)
Definition GloTPointerSet.h:442
virtual int get(T *&prRetVal, EnSeekMode eMode)
Definition GloTPointerSet.h:454
TPointerSet()
Definition GloTPointerSet.h:397
virtual ~TPointerSet()
Definition GloTPointerSet.h:415
Definition GloAbstractBaseLot.h:49
EnSeekMode
Definition GloTypes.h:173