Add CRTP base class for the policies of the generic device

This commit is contained in:
NicolasWinckler
2015-10-14 17:12:19 +02:00
parent 559c7babca
commit 323033c9eb
12 changed files with 341 additions and 13 deletions

View File

@@ -28,7 +28,7 @@
*
* -------- INPUT POLICY --------
* deserialization_type::InitContainer(...)
* CONTAINER_TYPE deserialization_type::DeSerializeMsg(FairMQMessage* msg)
* CONTAINER_TYPE deserialization_type::DeserializeMsg(FairMQMessage* msg)
*
*
* -------- OUTPUT POLICY --------
@@ -82,7 +82,7 @@ class GenericFileSink : public FairMQDevice, public T, public U
if (inputChannel.Receive(msg) > 0)
{
sink_type::AddToFile(deserialization_type::DeSerializeMsg(msg.get()));
sink_type::AddToFile(deserialization_type::DeserializeMsg(msg.get()));
receivedMsg++;
}
}