X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Flogic.h;h=607e0bd450d78f56c1462a2adf158105972657ce;hb=f9abf97e78bc4825d80926b0ebc6cbaef40768b1;hp=e29427a6f3669ab889cc8e3b727d9202ed821b94;hpb=be73bdfa788fcc62bda3187cb1ba04fed2b9d721;p=pulseview.git diff --git a/pv/data/logic.h b/pv/data/logic.h index e29427a..607e0bd 100644 --- a/pv/data/logic.h +++ b/pv/data/logic.h @@ -23,8 +23,8 @@ #include "signaldata.h" -#include #include +#include namespace pv { namespace data { @@ -34,19 +34,23 @@ class LogicSnapshot; class Logic : public SignalData { public: - Logic(unsigned int num_probes, uint64_t samplerate); + Logic(unsigned int num_probes); int get_num_probes() const; void push_snapshot( - boost::shared_ptr &snapshot); + std::shared_ptr &snapshot); - std::deque< boost::shared_ptr >& + std::deque< std::shared_ptr >& get_snapshots(); + void clear(); + + uint64_t get_max_sample_count() const; + private: const unsigned int _num_probes; - std::deque< boost::shared_ptr > _snapshots; + std::deque< std::shared_ptr > _snapshots; }; } // namespace data