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.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'io/model.h') diff --git a/io/model.h b/io/model.h index be16283..16e7ca7 100644 --- a/io/model.h +++ b/io/model.h @@ -12,13 +12,12 @@ struct iomodel { static constexpr unsigned int TT_OUTPUT_DELAY = 10; event_log log; - std::uint64_t time = 0; - bool interact(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