ROOT_Application  2.0
C++ Core modules and GUIStock
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RealTime.h
Go to the documentation of this file.
1 /* \file RealTime.h
2  *
3  * RealTime derives from Ttimer
4  *
5  * Created on 16/01/2011
6  *
7  * Call GUIMainFrame:: UpdateStock() for the moment
8  * But should be called by other ?? good only one point access ??
9  *
10  */
11 
12 #ifndef _REALTIME_H_
13 #define _REALTIME_H_
14 
15 #include <iostream>
16 #include <TTimer.h>
17 
18 class RealTime : public TTimer {
19  private:
20  static bool status_rt;
21  //bool status_rt;
22  static RealTime * frealtime;
23  //Constructor private, called by getInstance
25  ~RealTime() {std::cout << "Destructor RealTime" << std::endl;}
26 
27 
28  public:
29  static RealTime* getInstance();
30  static void killInstance();
31  bool GetStatus() { return status_rt;}
32 
33  void ConnectToGUI();
34 
35  ClassDef(RealTime,0);
36 };
37 
38 #endif /* _REALTIME_H */
RealTime()
Definition: RealTime.h:24
static bool status_rt
Definition: RealTime.h:20
ClassDef(RealTime, 0)
static void killInstance()
Definition: RealTime.cxx:22
void ConnectToGUI()
Definition: RealTime.cxx:36
bool GetStatus()
Definition: RealTime.h:31
~RealTime()
Definition: RealTime.h:25
static RealTime * frealtime
Definition: RealTime.h:22
static RealTime * getInstance()
Definition: RealTime.cxx:11