diff --git a/libs/main/text/pitextstream.h b/libs/main/text/pitextstream.h index ee289a37..95b10e63 100644 --- a/libs/main/text/pitextstream.h +++ b/libs/main/text/pitextstream.h @@ -408,6 +408,22 @@ inline PITextStream

& operator>>(PITextStream

& s, uint & v) { return s; } +//! \~english Read word as integer +//! \~russian Читает слово как целое +template +inline PITextStream

& operator>>(PITextStream

& s, long & v) { + v = s.readWord().toLong(); + return s; +} + +//! \~english Read word as integer +//! \~russian Читает слово как целое +template +inline PITextStream

& operator>>(PITextStream

& s, ulong & v) { + v = s.readWord().toULong(); + return s; +} + //! \~english Read word as integer //! \~russian Читает слово как целое template