9 #ifndef FAIRSOURCEMQINTERFACE_H
10 #define FAIRSOURCEMQINTERFACE_H
12 #include "BaseSourcePolicy.h"
16 #include <FairMQLogger.h>
18 #include <type_traits>
20 template<
typename T,
typename U>
21 using enable_if_match =
typename std::enable_if<std::is_same<T, U>::value,
int>::type;
23 template<
typename FairSourceType,
typename DataType>
26 typedef DataType* DataType_ptr;
68 template<
typename T = FairSourceType, enable_if_match<T, FairFileSource> = 0>
79 template<
typename T = FairSourceType, enable_if_match<T, FairFileSource> = 0>
85 template<
typename T = FairSourceType, enable_if_match<T, FairFileSource> = 0>
DataType_ptr GetOutData()
virtual ~FairSourceMQInterface()
void GetOutData(DataType_ptr &data, int64_t evtIdx)
int64_t GetNumberOfEvent()
std::unique_ptr< DataType > fInput2
FairSourceMQInterface operator=(const FairSourceMQInterface &)=delete
typename std::enable_if< std::is_same< T, U >::value, int >::type enable_if_match
void SetFileProperties(const std::string &filename, const std::string &branchname)
void deserialize_impl(int64_t evtIdx)
void SetIndex(int64_t eventIdx)