CFEL - ASG Software Suite
2.5.0
CASS
|
wrapper for the 0d data More...
#include <zero_d_viewer_data.h>
Public Member Functions | |
ZeroDViewerData (QLabel *valuedisplay) | |
constructor More... | |
virtual | ~ZeroDViewerData () |
virtual destructor More... | |
virtual void | setResult (Data::result_t::shared_pointer result) |
set the result More... | |
virtual Data::result_t::shared_pointer | result () |
retrieve the result More... | |
![]() | |
Data () | |
constructor More... | |
virtual | ~Data () |
virtual destrutor More... | |
virtual void | setSourceName (const QString &name) |
set the source name More... | |
virtual QString | sourceName () const |
retrieve the source name More... | |
virtual bool | wasUpdated () const |
retrieve was upDated flag More... | |
Private Attributes | |
Data::result_t::shared_pointer | _result |
the cass data container More... | |
QLabel * | _value |
pointer to the lable that displays the value More... | |
Additional Inherited Members | |
![]() | |
typedef cass::Result< float > | result_t |
define the result type More... | |
![]() | |
QString | _sourceName |
the name of the source More... | |
bool | _wasUpdated |
flag to tell whether the data was updated More... | |
wrapper for the 0d data
Definition at line 28 of file zero_d_viewer_data.h.
ZeroDViewerData::ZeroDViewerData | ( | QLabel * | valuedisplay | ) |
constructor
initializes the pointer to 0
valuedisplay | The label that displays the value. |
Definition at line 25 of file zero_d_viewer_data.cpp.
|
virtual |
|
virtual |
retrieve the result
Implements jocassview::Data.
Definition at line 46 of file zero_d_viewer_data.cpp.
References _result.
Referenced by setResult().
|
virtual |
set the result
take ownership of the data pointed to and destroy anthing that we have been managing so far.
result | the pointer to the data that contains the value we manage |
Implements jocassview::Data.
Definition at line 36 of file zero_d_viewer_data.cpp.
References _result, _value, QString::number(), and result().
|
private |
the cass data container
Definition at line 62 of file zero_d_viewer_data.h.
Referenced by result(), and setResult().
|
private |
pointer to the lable that displays the value
Definition at line 65 of file zero_d_viewer_data.h.
Referenced by setResult().