using std::deque;
using std::max;
using std::shared_ptr;
+using std::vector;
namespace pv {
namespace data {
return snapshots_;
}
+vector< shared_ptr<Snapshot> > Analog::snapshots() const
+{
+ return vector< shared_ptr<Snapshot> >(
+ snapshots_.begin(), snapshots_.end());
+}
+
void Analog::clear()
{
snapshots_.clear();
const std::deque< std::shared_ptr<AnalogSnapshot> >&
analog_snapshots() const;
+ std::vector< std::shared_ptr<Snapshot> > snapshots() const;
+
void clear();
uint64_t get_max_sample_count() const;
using std::deque;
using std::max;
using std::shared_ptr;
+using std::vector;
namespace pv {
namespace data {
return snapshots_;
}
+vector< shared_ptr<Snapshot> > Logic::snapshots() const
+{
+ return vector< shared_ptr<Snapshot> >(
+ snapshots_.begin(), snapshots_.end());
+}
+
void Logic::clear()
{
snapshots_.clear();
#include "signaldata.hpp"
#include <deque>
-#include <memory>
namespace pv {
namespace data {
const std::deque< std::shared_ptr<LogicSnapshot> >&
logic_snapshots() const;
+ std::vector< std::shared_ptr<Snapshot> > snapshots() const;
+
void clear();
uint64_t get_max_sample_count() const;
#ifndef PULSEVIEW_PV_DATA_SIGNALDATA_H
#define PULSEVIEW_PV_DATA_SIGNALDATA_H
-#include <stdint.h>
+#include <cstdint>
+#include <memory>
+#include <vector>
namespace pv {
namespace data {
+class Snapshot;
+
class SignalData
{
public:
double get_start_time() const;
+ virtual std::vector< std::shared_ptr<Snapshot> > snapshots() const = 0;
+
virtual void clear() = 0;
virtual uint64_t get_max_sample_count() const = 0;