CFEL - ASG Software Suite  2.5.0
CASS
zero_d_viewer_data.h
Go to the documentation of this file.
1 // Copyright (C) 2014 Lutz Foucar
2 
3 /**
4  * @file zero_d_viewer_data.h contains the wrapper of the data for the 0d viewer
5  *
6  * @author Lutz Foucar
7  */
8 
9 #ifndef _ZERODVIEWERDATA_
10 #define _ZERODVIEWERDATA_
11 
12 #include "data.h"
13 
14 namespace cass
15 {
16 class Histogram0DFloat;
17 }//end namespace cass
18 
19 class QLabel;
20 
21 namespace jocassview
22 {
23 
24 /** wrapper for the 0d data
25  *
26  * @author Lutz Foucar
27  */
28 class ZeroDViewerData : public Data
29 {
30 public:
31  /** constructor
32  *
33  * initializes the pointer to 0
34  *
35  * @param valuedisplay The label that displays the value.
36  */
37  ZeroDViewerData(QLabel *valuedisplay);
38 
39  /** virtual destructor
40  *
41  * destory the 0d histogram
42  */
43  virtual ~ZeroDViewerData();
44 
45  /** set the result
46  *
47  * take ownership of the data pointed to and destroy anthing that we have been
48  * managing so far.
49  *
50  * @param result the pointer to the data that contains the value we manage
51  */
53 
54  /** retrieve the result
55  *
56  * @return pointer to the result
57  */
59 
60 private:
61  /** the cass data container */
63 
64  /** pointer to the lable that displays the value */
66 };
67 }//end namespace jocassview
68 #endif
ZeroDViewerData(QLabel *valuedisplay)
constructor
virtual Data::result_t::shared_pointer result()
retrieve the result
std::tr1::shared_ptr< self_type > shared_pointer
a shared pointer of this class
Definition: result.hpp:323
Data::result_t::shared_pointer _result
the cass data container
QLabel * _value
pointer to the lable that displays the value
contains the base class for add viewer data
wrapper for the 0d data
virtual void setResult(Data::result_t::shared_pointer result)
set the result
base class for all data wrappers
Definition: data.h:22
virtual ~ZeroDViewerData()
virtual destructor