BASE::TRCKeyPointer< TData, TStruct > Class Template Reference

Pointer to keyinstance specified by a key. More...

Inherits BASE::RCKeyPointer.

Inheritance diagram for BASE::TRCKeyPointer< TData, TStruct >:

Inheritance graph
[legend]
Collaboration diagram for BASE::TRCKeyPointer< TData, TStruct >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef TData *(TStruct::* TGetDataFcn )(const RCString &)
typedef TData *(TStruct::* TGetDataFcn2 )(const RCString &, TData *)

Public Member Functions

 TRCKeyPointer (TStruct &Struct, TGetDataFcn pGetDataFcn)
 TRCKeyPointer (TStruct &Struct, TGetDataFcn2 pGetDataFcn2)
virtual TBool SetKey (const RCString &sKey)
void SetData (TData &Data, const RCString &sKey=_T(""))
TBool IsValid () const
TData * operator * () const
TData * operator-> () const

Protected Attributes

TData * m_pData
TStruct & m_Struct
TGetDataFcn m_pGetDataFcn
TGetDataFcn2 m_pGetDataFcn2

Detailed Description

template<class TData, class TStruct>
class BASE::TRCKeyPointer< TData, TStruct >

Pointer to keyinstance specified by a key.

Author:
Patrik Stellmann
This class hold internally a pointer to an instance that is specified by a key. To get that instance the structure this variable is a member of needs to provide a callback functions returning the corresponding instance for the given key. Instances of this class can be handled by RCKeyParamHandler.


The documentation for this class was generated from the following file:
Generated on Thu Feb 16 12:46:26 2006 for Simulator Bob by  doxygen 1.4.6-NO