Diana Software
Public Member Functions | List of all members
ReadHandle< T > Class Template Reference

read handle to access QEvent QObject's. More...

Inheritance diagram for ReadHandle< T >:
QHandle< T >

Public Member Functions

 ReadHandle (const char *name)
 ctor More...
 
const T & Get () const
 Get Object. More...
 
- Public Member Functions inherited from QHandle< T >
virtual bool Exists () const
 Check object validity. More...
 
virtual bool IsValid () const
 Check object validity. More...
 
const char * GetObjectName () const
 get object name More...
 
const char * GetObjectOwner () const
 get object owner More...
 
std::string GetObjectType () const
 get object type More...
 
void Set (QObject **address, const char *owner)
 set object address (owned by the caller) and owner More...
 
virtual ~QHandle ()
 destructor More...
 

Additional Inherited Members

- Protected Member Functions inherited from QHandle< T >
 QHandle (const char *objectName)
 ctor More...
 
void ThrowError () const
 
QObject ** BaseGetAddress ()
 
 QHandle (const QHandle &)
 
const QHandleoperator= (const QHandle &)
 
- Protected Attributes inherited from QHandle< T >
const char * fObjectName
 
const char * fOwner
 
T * fObject
 
QObject ** fAddress
 

Detailed Description

template<typename T>
class ReadHandle< T >

read handle to access QEvent QObject's.

Author
Marco Vignati

ReadHandle is the access class to read QObject's in the event. The Get() method returns a const reference to the QObject if it is valid, otherwise it throws an exception. Users can check the validity before calling Get() using the IsValid() method.

Definition at line 125 of file QHandle.hh.

Constructor & Destructor Documentation

◆ ReadHandle()

template<typename T >
ReadHandle< T >::ReadHandle ( const char *  name)
inline

ctor

Definition at line 129 of file QHandle.hh.

Member Function Documentation

◆ Get()

template<typename T >
const T& ReadHandle< T >::Get ( ) const
inline

The documentation for this class was generated from the following file: