mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
FairMQDevice: Rename property for socket rate logging to have common format (old name is still available for compatibility). FairMQ: Avoid using std namespace in class headers (may require adding std namespace to some child devices). FairMQ: A bit of code cleanup FairMQConfigurable: Stop with an error if a property assignment failed due to incorrect key.
47 lines
987 B
C++
47 lines
987 B
C++
/*
|
|
* File: GenericFileSink.h
|
|
* Author: winckler
|
|
*
|
|
* Created on October 7, 2014, 6:06 PM
|
|
*/
|
|
|
|
#ifndef GENERICFILESINK_H
|
|
#define GENERICFILESINK_H
|
|
|
|
#include <boost/thread.hpp>
|
|
#include <boost/bind.hpp>
|
|
|
|
#include "FairMQDevice.h"
|
|
#include "FairMQLogger.h"
|
|
|
|
template <typename InputPolicy, typename OutputPolicy>
|
|
class GenericFileSink : public FairMQDevice, public InputPolicy, public OutputPolicy
|
|
{
|
|
//using InputPolicy::message;
|
|
//using OutputPolicy::InitOutFile;
|
|
//using OutputPolicy::AddToFile;
|
|
|
|
public:
|
|
GenericFileSink();
|
|
virtual ~GenericFileSink();
|
|
|
|
template <typename... Args>
|
|
void InitInputPolicyContainer(Args... args)
|
|
{
|
|
InputPolicy::InitContainer(std::forward<Args>(args)...);
|
|
}
|
|
|
|
virtual void SetTransport(FairMQTransportFactory* transport);
|
|
virtual void InitOutputFile();
|
|
|
|
protected:
|
|
virtual void Run();
|
|
virtual void Init();
|
|
|
|
};
|
|
|
|
#include "GenericFileSink.tpl"
|
|
|
|
#endif /* GENERICFILESINK_H */
|
|
|