#include <SmartDataPtr.h>
Inheritance diagram for SmartDataPtr:

Public Methods | |
| SmartDataPtr (IDataProviderSvc* pService, const std::string& fullPath) | |
| Standard constructor: Construct an SmartDataPtr instance which is able to connect to a DataObject instance which is identified by its parent object and the path relative to the parent. More... | |
| SmartDataPtr (IDataProviderSvc* pService, IDataDirectory* pDirectory) | |
| Standard constructor: Construct an SmartDataPtr instance which is able to connect to a DataObject instance which is identified by its directory entry. More... | |
| SmartDataPtr (IDataProviderSvc* pService, DataObject* pObject, const std::string& path) | |
| Standard constructor: Construct an SmartDataPtr instance which is able to connect to a DataObject instance which is identified by its parent object and the path relative to the parent. More... | |
| SmartDataPtr (SmartDataObjectPtr& refObject, IDataDirectory* pDirectory) | |
| Standard constructor: Construct an SmartDataPtr instance which is able to connect to a DataObject instance which is identified by its parent object and the path relative to the parent. More... | |
| SmartDataPtr (SmartDataObjectPtr& refObject, const std::string& path) | |
| Standard constructor: Construct an SmartDataPtr instance which is able to connect to a DataObject instance which is identified by its parent object and the path relative to the parent. More... | |
| SmartDataPtr (const SmartDataObjectPtr& copy) | |
| Copy constructor: Construct an copy of a SmartDataPtr instance. More... | |
| virtual | ~SmartDataPtr () |
| Standard destructor. More... | |
| template<classOTHER> SmartDataPtr& | operator=<OTHER> ( OTHER* pObj ) |
| Automatic conversion to data type. More... | |
The class constructors take several arguments neccessary to be passed tyo the data services in order to automatically load objects in case they are not yet loaded. This is achieved through a smart pointer mechanism i.e. by overloading the operator->() at dereferencing time the the object will be requested from the store.
The SmartDataPtr is meant to be "short living". It only makes sense to keep an object instance within e.g. the scope of one method. "long living" instances do not make sense and in the contrary would be harmful, because the information passed during construction to would be invalid and returned object pointers would actually point to hyperspace.
The intrinsic functionality, wether the object will be retrieved or loaded from the data store is defined by the LOADER::.
Base Class: SmartDataStorePtr
Dependencies:
History :
+---------+----------------------------------------------+--------+
| Date | Comment | Who |
+---------+----------------------------------------------+--------+
| 21/04/99| Initial version. | MF |
+---------+----------------------------------------------+--------+
Author: M.Frank Version: 1.0
Definition at line 58 of file SmartDataPtr.h.
|
||||||
|
Standard constructor: Construct an SmartDataPtr instance which is able to connect to a DataObject instance which is identified by its parent object and the path relative to the parent.
Definition at line 68 of file SmartDataPtr.h. |
|
||||||
|
Standard constructor: Construct an SmartDataPtr instance which is able to connect to a DataObject instance which is identified by its directory entry. FASTEST ACCESS TO THE DATA STORE ***
Definition at line 80 of file SmartDataPtr.h. |
|
||||||||
|
Standard constructor: Construct an SmartDataPtr instance which is able to connect to a DataObject instance which is identified by its parent object and the path relative to the parent. The path is meant to address only ONE level, multiple path layers are invalid.
Definition at line 95 of file SmartDataPtr.h. |
|
||||||
|
Standard constructor: Construct an SmartDataPtr instance which is able to connect to a DataObject instance which is identified by its parent object and the path relative to the parent. The path is meant to address only ONE level, multiple path layers are invalid.
Definition at line 111 of file SmartDataPtr.h. |
|
||||||
|
Standard constructor: Construct an SmartDataPtr instance which is able to connect to a DataObject instance which is identified by its parent object and the path relative to the parent. The path is meant to address only ONE level, multiple path layers are invalid.
Definition at line 124 of file SmartDataPtr.h. |
|
||||
|
Copy constructor: Construct an copy of a SmartDataPtr instance.
Definition at line 131 of file SmartDataPtr.h. |
|
||||
|
Standard destructor.
Definition at line 137 of file SmartDataPtr.h. |
|
||||||
|
Automatic conversion to data type.
Reimplemented from SmartDataStorePtr. Definition at line 141 of file SmartDataPtr.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000