ToolDAQFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
MyToolThread.h
Go to the documentation of this file.
1 #ifndef MYTOOLThread_H
2 #define MYTOOLThread_H
3 
4 #include <string>
5 #include <iostream>
6 
7 #include "Tool.h"
8 
20 
23 
24 };
25 
36 class MyToolThread: public Tool {
37 
38 
39  public:
40 
41  MyToolThread();
42  bool Initialise(std::string configfile,DataModel &data);
43  bool Execute();
44  bool Finalise();
45 
46 
47  private:
48 
49  static void Thread(Thread_args* arg);
52 
53 };
54 
55 
56 #endif
bool Initialise(std::string configfile, DataModel &data)
Initialise Function for setting up Tool resorces.
Utilities * m_util
Pointer to utilities class to help with threading.
Definition: MyToolThread.h:50
bool Finalise()
Finalise funciton used to clean up resorces.
MyToolThread()
Simple constructor.
Definition: MyToolThread.cpp:8
static void Thread(Thread_args *arg)
Function to be run by the thread in a loop. Make sure not to block in it.
MyToolThread_args * args
thread args (also holds pointer to the thread)
Definition: MyToolThread.h:51
bool Execute()
Executre function used to perform Tool perpose.