EUDAQ
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Pages
main
include
eudaq
MachineState.hh
1
#ifndef EUDAQ_INCLUDED_MachineState
2
#define EUDAQ_INCLUDED_MachineState
3
4
#include <string>
5
#include <vector>
6
#include <map>
7
#include "eudaq/Platform.hh"
8
#include "eudaq/ConnectionState.hh"
9
#include "
eudaq/TransportBase.hh
"
10
11
namespace
eudaq
12
{
13
class
DLLEXPORT
MachineState
{
14
public
:
15
MachineState
();
16
int
GetState();
//Returns the state of the whole machine
17
int
GetState(
ConnectionInfo
id
);
// Returns the state of a single connection
18
void
SetState(
ConnectionInfo
*
id
,
ConnectionState
* state);
// Sets the connection associated with id to state.
19
bool
HasRunning();
//Returns true if there are running connections
20
void
RemoveState(
ConnectionInfo
id
);
//Removes a connection when it is disconnected....
21
void
Print();
22
private
:
23
std::map<ConnectionInfo, ConnectionState> connection_status_info;
24
};
25
}
26
27
#endif // EUDAQ_INCLUDED_MachineState
eudaq::MachineState
Definition:
MachineState.hh:13
eudaq::ConnectionState
Definition:
ConnectionState.hh:15
TransportBase.hh
eudaq::ConnectionInfo
Definition:
TransportBase.hh:22
Generated on Wed Oct 12 2016 15:15:55 for EUDAQ by
1.8.6