diff options
Diffstat (limited to 'src/serialise.cpp')
-rw-r--r-- | src/serialise.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/serialise.cpp b/src/serialise.cpp index 55555c7c..72a6dc50 100644 --- a/src/serialise.cpp +++ b/src/serialise.cpp @@ -80,6 +80,12 @@ Serialiser& Serialiser_TextTree::operator<<(uint64_t val) m_os << val << "\n"; return *this; } +Serialiser& Serialiser_TextTree::operator<<(int64_t val) +{ + print_indent(); + m_os << val << "\n"; + return *this; +} Serialiser& Serialiser_TextTree::operator<<(double val) { print_indent(); @@ -195,6 +201,13 @@ void Deserialiser_TextTree::item(uint64_t& v) if( !m_is.good() ) throw ::std::runtime_error("TODO: Less shit exception, item(uint64_t)"); } +void Deserialiser_TextTree::item(int64_t& v) +{ + eat_ws(); + m_is >> v; + if( !m_is.good() ) + throw ::std::runtime_error("TODO: Less shit exception, item(int64_t)"); +} void Deserialiser_TextTree::item(double& v) { eat_ws(); |