![]() |
Diana Software
|
read handle to access QEvent QObject's. More...
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 QHandle & | operator= (const QHandle &) |
Protected Attributes inherited from QHandle< T > | |
| const char * | fObjectName |
| const char * | fOwner |
| T * | fObject |
| QObject ** | fAddress |
read handle to access QEvent QObject's.
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.
|
inline |
ctor
Definition at line 129 of file QHandle.hh.
|
inline |
Get Object.
Definition at line 133 of file QHandle.hh.
References QHandle< T >::fObject, QHandle< T >::IsValid(), and QHandle< T >::ThrowError().
Referenced by MTestModule::Do(), QFileWriter::Do(), QUnrollSidePulses::FillList(), QEvent::Get(), QEvent::GetByLabel(), and QFileWriter::IsToOpen().