1#ifndef INC_GLOTONDEMAND_H
2#define INC_GLOTONDEMAND_H
196 int set(
const T * pObj );
215 int set(
const T & rObj );
234 int set(
const std::shared_ptr<T> & spObj );
255 int get( T *& prObj )
const;
272 int get( std::shared_ptr<T> & rRetVal )
const;
329 #define SUPER Reference
361 :
SUPER( rObjID, rBase )
385 return SUPER::setReference( pObj );
391 return SUPER::setReference( rObj );
397 return SUPER::setReference( spObj.get() );
406 t_iErr = SUPER::getReference( t_pGetObj );
409 prObj =
dynamic_cast<T*
>( t_pGetObj );
422 T * t_pPersObject = 0;
423 int t_iErr = this->get( t_pPersObject );
436 SUPER::setReference( rObjID );
444 SUPER::operator=( rT );
454 SUPER::operator=( rT );
462 return SUPER::operator==( rT );
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
virtual unsigned int forget()
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
The base class of a reference attribute from persistent objects to other persistent objects in the da...
Definition GloReference.h:65
A reference (as attribute) of a persistent object to another persistent object in the database.
Definition GloTOndemand.h:90
bool operator==(const TOndemand &rT) const
Comparison operator.
Definition GloTOndemand.h:460
int set(const T *pObj)
Definition GloTOndemand.h:383
virtual ~TOndemand()
Definition GloTOndemand.h:378
virtual void setReference(const ObjID &rObjID)
Definition GloTOndemand.h:434
TOndemand()
Definition GloTOndemand.h:332
bool operator!=(const TOndemand &rT) const
Comparison operator.
Definition GloTOndemand.h:466
int get(T *&prObj) const
Definition GloTOndemand.h:401
TOndemand< T > & operator=(const TOndemand &rT)
Assignment operator.
Definition GloTOndemand.h:440
Definition GloAbstractBaseLot.h:42
@ ERR_WRONG_TYPE
Definition GloErrors.h:540