ToolDAQFramework
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
UserTools
template
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
19
struct
MyToolThread_args
:
Thread_args
{
20
21
MyToolThread_args
();
22
~MyToolThread_args
();
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);
50
Utilities
*
m_util
;
51
MyToolThread_args
*
args
;
52
53
};
54
55
56
#endif
Utilities
Definition:
Utilities.h:82
MyToolThread::Initialise
bool Initialise(std::string configfile, DataModel &data)
Initialise Function for setting up Tool resorces.
Definition:
MyToolThread.cpp:11
MyToolThread::m_util
Utilities * m_util
Pointer to utilities class to help with threading.
Definition:
MyToolThread.h:50
Thread_args
Definition:
Utilities.h:29
MyToolThread_args::MyToolThread_args
MyToolThread_args()
Definition:
MyToolThread.cpp:3
MyToolThread_args
Definition:
MyToolThread.h:19
MyToolThread::Finalise
bool Finalise()
Finalise funciton used to clean up resorces.
Definition:
MyToolThread.cpp:36
MyToolThread::MyToolThread
MyToolThread()
Simple constructor.
Definition:
MyToolThread.cpp:8
MyToolThread::Thread
static void Thread(Thread_args *arg)
Function to be run by the thread in a loop. Make sure not to block in it.
Definition:
MyToolThread.cpp:49
DataModel
Definition:
DataModel.h:39
MyToolThread::args
MyToolThread_args * args
thread args (also holds pointer to the thread)
Definition:
MyToolThread.h:51
MyToolThread
Definition:
MyToolThread.h:36
MyToolThread::Execute
bool Execute()
Executre function used to perform Tool perpose.
Definition:
MyToolThread.cpp:30
MyToolThread_args::~MyToolThread_args
~MyToolThread_args()
Definition:
MyToolThread.cpp:5
Generated by
1.8.5