X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=signaldata.h;h=d85d4369a1bf78e0bbe892ab5fad740311c5838f;hp=74d1facd3bc944c24368282ccdf7aec6628ca47d;hb=190fc91a86d732c7c9d14603b6bf263894a0e159;hpb=28a4c9c5eb20296199fc3496bb40b7733dffac75 diff --git a/signaldata.h b/signaldata.h index 74d1facd..d85d4369 100644 --- a/signaldata.h +++ b/signaldata.h @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the PulseView project. * * Copyright (C) 2012 Joel Holdsworth * @@ -18,19 +18,18 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include -#include #include -class DataSnapshot; - class SignalData { public: - SignalData(uint64_t samplerate); + SignalData(double samplerate); -protected: - const uint64_t _samplerate; +public: + double get_samplerate() const; + double get_start_time() const; - std::queue< boost::shared_ptr > _snapshots; +protected: + const double _samplerate; + const double _start_time; };