From 7c7dfe8a3150981f47bd6283d97f9b84e05371c3 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sat, 5 Nov 2022 16:57:34 -0700 Subject: Support for more line formats in evt reader --- io/model.cpp | 20 ++++++++++---------- io/model.h | 9 ++++----- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/io/model.cpp b/io/model.cpp index d332908..741a885 100644 --- a/io/model.cpp +++ b/io/model.cpp @@ -51,10 +51,10 @@ bool iomodel::interact(std::uint64_t icount, std::array &ctlregs); - bool done() { - return log.lower_bound(time) == log.end(); + bool interact(std::uint64_t icount, std::array &ctlregs, bool replay=false); + bool done(std::uint64_t icount) { + return log.lower_bound(icount) == log.end(); } - std::uint64_t load_time = 0; + std::uint64_t load_icount = 0; void load_evt(std::istream &fh); std::ostream & write_evt(std::ostream &fh); -- cgit v1.2.3