File indexing completed on 2025-01-18 10:02:33
0001 #pragma once
0002
0003 #include <nopayloadclient/moment.hpp>
0004 #include <nopayloadclient/exception.hpp>
0005
0006
0007 namespace nopayloadclient {
0008
0009 using ll = long long;
0010
0011 struct IOV {
0012 Moment start_;
0013 Moment end_;
0014 bool is_open_;
0015 IOV() {};
0016 IOV(Moment start);
0017 IOV(Moment start, Moment end);
0018 IOV(ll major_start, ll minor_start) :
0019 IOV(Moment(major_start, minor_start)) {};
0020 IOV(ll major_start, ll minor_start, ll major_end, ll minor_end) :
0021 IOV(Moment(major_start, minor_start), Moment(major_end, minor_end)) {};
0022 bool contains(Moment& mom);
0023 friend std::ostream& operator<< (std::ostream& os, const IOV& i);
0024 };
0025
0026 }