12 namespace duds {
namespace data {
23 template <
class SVT,
class SQT,
class TVT,
class TQT>
45 timestamp(t), measured(s) { }
75 class TT = duds::time::interstellar::NanoTime
boost::variant< std::string, duds::general::LanguageTaggedString, std::array< std::int32_t, 4 >, std::array< std::int64_t, 2 >, duds::data::int128_w, std::array< float, 4 >, std::array< double, 2 >, double, duds::data::Quantity, boost::recursive_wrapper< duds::data::QuantityNddArray >, duds::time::interstellar::Femtoseconds, duds::time::interstellar::Nanoseconds, duds::time::interstellar::FemtoTime, duds::time::interstellar::NanoTime, boost::uuids::uuid, boost::recursive_wrapper< duds::data::GenericValueTable >, std::shared_ptr< std::vector< char > >> GenericValue
A general value of a type can be serialized for transmission over a network and can be used with a re...
CompactSample< VT, QT > measured
TimeSample timestamp
The time when measured was recorded.
GenericSample< TVT, TQT > TimeSample
The type used to store the timestamp.
GenericMeasurement()=default
GenericMeasurement(const TimeSample &t, const Sample &s)
move_impl move(unsigned int c, unsigned int r)
Display stream manipulator that moves the display cursor to the given location.
Sample measured
A sample from an instrument.
GenericMeasurement< GenericValue, double, duds::time::interstellar::NanoTime, float > Measurement
A measurement type capable of holding a wide range of types for the sample value. ...
CompactSample< TT, float > timestamp
std::shared_ptr< const Measurement > ConstMeasurementSptr
A shared pointer to a const Measurement, a common GenericMeasurement type.
GenericMeasurement(TimeSample &&t, Sample &&s)
Stores a sample of something along with a timestamp stored as a sample from a clock.
std::shared_ptr< Measurement > MeasurementSptr
A shared pointer to a Measurement, a common GenericMeasurement type.
NanoClock::time_point NanoTime
A point in time in Interstellar Time stored in Nanoseconds.
GenericSample< SVT, SQT > Sample
The type used to store a sample from some instrument.