Zero MQ implimentation and example (Tutorial3)

git-svn-id: https://subversion.gsi.de/fairroot/fairbase/trunk@20162 0381ead4-6506-0410-b988-94b70fbc4730
This commit is contained in:
Mohammad Al-Turany
2013-06-07 08:07:48 +00:00
commit 231c7c8f7e
38 changed files with 2596 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
/*
* FairMQStateMachine.h
*
* Created on: Oct 25, 2012
* Author: dklein
*/
#ifndef FAIRMQSTATEMACHINE_H_
#define FAIRMQSTATEMACHINE_H_
class FairMQStateMachine
{
private:
int fState;
public:
enum {
START, INIT, BIND, CONNECT, RUN, PAUSE, SHUTDOWN, END
};
FairMQStateMachine();
virtual void Init() = 0;
virtual void Bind() = 0;
virtual void Connect() = 0;
virtual void Run() = 0;
virtual void Pause() = 0;
virtual void Shutdown() = 0;
bool ChangeState(int new_state);
void RunStateMachine();
virtual ~FairMQStateMachine();
};
#endif /* FAIRMQSTATEMACHINE_H_ */