1#ifndef INC_GLOTONDEMAND_H
2#define INC_GLOTONDEMAND_H
241 int set(
const T * pObj );
260 int set(
const T & rObj );
279 int set(
const std::shared_ptr<T> & spObj );
311 int get( T *& prObj );
332 int get( std::shared_ptr<T> & rRetVal );
389 #define SUPER Reference
420 :
SUPER( ulDatabaseID )
429 :
SUPER( rObjID, rBase )
438 :
SUPER( rObjID, ulDatabaseID )
462 return SUPER::setReference( pObj );
468 return SUPER::setReference( rObj );
474 return SUPER::setReference( spObj.get() );
483 t_iErr = SUPER::getReference( t_pGetObj );
486 prObj =
dynamic_cast<T*
>( t_pGetObj );
490 t_iErr = ERR_WRONG_TYPE;
503 T * t_pPersObject = 0;
504 int t_iErr = this->get( t_pPersObject );
508 rRetVal.reset( t_pPersObject, Forgetter<T>() );
520 return SUPER::setReference( rObjID );
528 SUPER::operator=( rT );
538 SUPER::operator=( rT );
546 return SUPER::operator==( rT );
Header for BasePersistent
#define SUPER
Definition GloTOndemand.h:389
Abstract base class for Persistent and the generic GenericPersistent.
Definition GloBasePersistent.h:124
virtual unsigned int forget()
std::string m_strDebugInfo
Definition GloCallBack.h:111
An object ID consists of the class ID, a database ID and the actual unique object number (all unsigne...
Definition GloObjID.h:84
The base class of a reference attribute from persistent objects to other persistent objects in the da...
Definition GloReference.h:72
friend class Base
Definition GloReference.h:82
A reference (as attribute) of a persistent object to another persistent object in the database.
Definition GloTOndemand.h:102
bool operator==(const TOndemand &rT) const
Comparison operator.
Definition GloTOndemand.h:544
int set(const T *pObj)
Definition GloTOndemand.h:460
virtual int setReference(const ObjID &rObjID) override
Definition GloTOndemand.h:518
virtual ~TOndemand()
Definition GloTOndemand.h:455
TOndemand()
Definition GloTOndemand.h:392
bool operator!=(const TOndemand &rT) const
Comparison operator.
Definition GloTOndemand.h:550
TOndemand< T > & operator=(const TOndemand &rT)
Assignment operator.
Definition GloTOndemand.h:524
int get(T *&prObj)
Definition GloTOndemand.h:478
Definition GloBasePersistent.h:60