diff options
Diffstat (limited to 'lib/libtqtrla/src/tqtrla.cpp')
| -rw-r--r-- | lib/libtqtrla/src/tqtrla.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/libtqtrla/src/tqtrla.cpp b/lib/libtqtrla/src/tqtrla.cpp index 711804e..75bae5e 100644 --- a/lib/libtqtrla/src/tqtrla.cpp +++ b/lib/libtqtrla/src/tqtrla.cpp @@ -454,5 +454,47 @@ TQDataStream &operator>>( TQDataStream &s, StationType &st ) s >> st.description; return s; } + +/*! + \relates SensorType + + Writes the SensorType \a str to the stream \a s. + + See also \link datastreamformat.html Format of the TQDataStream operators \endlink +*/ + +TQDataStream &operator<<( TQDataStream &s, const SensorType &st ) +{ + s << st.index; + s << st.name; + s << st.description; + s << st.units; + s << st.min; + s << st.max; + s << st.mininterval; + s << st.nominalinterval; + return s; +} + +/*! + \relates SensorType + + Reads a SensorType from the stream \a s into SensorType \a str. + + See also \link datastreamformat.html Format of the TQDataStream operators \endlink +*/ + +TQDataStream &operator>>( TQDataStream &s, SensorType &st ) +{ + s >> st.index; + s >> st.name; + s >> st.description; + s >> st.units; + s >> st.min; + s >> st.max; + s >> st.mininterval; + s >> st.nominalinterval; + return s; +} #endif // QT_NO_DATASTREAM |
