mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
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:
31
fairmq/FairMQContext.h
Normal file
31
fairmq/FairMQContext.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* FairMQContext.h
|
||||
*
|
||||
* Created on: Dec 5, 2012
|
||||
* Author: dklein
|
||||
*/
|
||||
|
||||
#ifndef FAIRMQCONTEXT_H_
|
||||
#define FAIRMQCONTEXT_H_
|
||||
|
||||
#include <string>
|
||||
#include <zmq.hpp>
|
||||
#include "Rtypes.h"
|
||||
#include "TString.h"
|
||||
|
||||
|
||||
class FairMQContext
|
||||
{
|
||||
private:
|
||||
TString fId;
|
||||
zmq::context_t* fContext;
|
||||
public:
|
||||
const static TString PAYLOAD, LOG, CONFIG, CONTROL;
|
||||
FairMQContext(TString deviceId, TString contextId, Int_t numIoThreads);
|
||||
virtual ~FairMQContext();
|
||||
TString GetId();
|
||||
zmq::context_t* GetContext();
|
||||
void Close();
|
||||
};
|
||||
|
||||
#endif /* FAIRMQCONTEXT_H_ */
|
Reference in New Issue
Block a user