EUDAQ
 All Classes Namespaces Files Functions Variables Pages
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
Definition: MachineState.hh:13
Definition: ConnectionState.hh:15
Definition: TransportBase.hh:22