From 194ac05864e2f2efa6344d684bbb2a31d47c1cb3 Mon Sep 17 00:00:00 2001
From: jhrdinka <julia.hrdinka@cern.ch>
Date: Thu, 2 Nov 2017 14:05:41 +0100
Subject: [PATCH] Update reader interface to be able to give number of events
 to be read in

---
 Core/include/ACTFW/Framework/IReader.hpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Core/include/ACTFW/Framework/IReader.hpp b/Core/include/ACTFW/Framework/IReader.hpp
index b0f792c9..84086c3e 100644
--- a/Core/include/ACTFW/Framework/IReader.hpp
+++ b/Core/include/ACTFW/Framework/IReader.hpp
@@ -13,8 +13,8 @@
 #ifndef ACTFW_IREADER_H
 #define ACTFW_IREADER_H
 
+#include <boost/optional.hpp>
 #include <string>
-
 #include "ACTFW/Framework/AlgorithmContext.hpp"
 #include "ACTFW/Framework/ProcessCode.hpp"
 
@@ -40,6 +40,11 @@ public:
   virtual ProcessCode
   read(AlgorithmContext context)
       = 0;
+
+  /// The number of events to be read in
+  /// @return (optional) number of events
+  virtual boost::optional<size_t>
+  numEvents() const = 0;
 };
 
 }  // namespace FW
-- 
GitLab