projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AnalogSignal: Implement vertical grid
[pulseview.git]
/
pv
/
storesession.hpp
diff --git
a/pv/storesession.hpp
b/pv/storesession.hpp
index 946fac4172aab29a270aa37dd276c2b4f88a6507..6976b3134da11956cb87d09449ab10f5d6fad128 100644
(file)
--- a/
pv/storesession.hpp
+++ b/
pv/storesession.hpp
@@
-25,14
+25,18
@@
#include <atomic>
#include <fstream>
#include <atomic>
#include <fstream>
+#include <map>
#include <memory>
#include <mutex>
#include <string>
#include <thread>
#include <memory>
#include <mutex>
#include <string>
#include <thread>
+#include <glibmm/variant.h>
+
#include <QObject>
namespace sigrok {
#include <QObject>
namespace sigrok {
+class Channel;
class Output;
class OutputFormat;
}
class Output;
class OutputFormat;
}
@@
-42,6
+46,7
@@
namespace pv {
class Session;
namespace data {
class Session;
namespace data {
+class AnalogSegment;
class LogicSegment;
}
class LogicSegment;
}
@@
-55,6
+60,8
@@
private:
public:
StoreSession(const std::string &file_name,
const std::shared_ptr<sigrok::OutputFormat> &output_format,
public:
StoreSession(const std::string &file_name,
const std::shared_ptr<sigrok::OutputFormat> &output_format,
+ const std::map<std::string, Glib::VariantBase> &options,
+ const std::pair<uint64_t, uint64_t> sample_range,
const Session &session);
~StoreSession();
const Session &session);
~StoreSession();
@@
-70,7
+77,9
@@
public:
void cancel();
private:
void cancel();
private:
- void store_proc(std::shared_ptr<pv::data::LogicSegment> segment);
+ void store_proc(std::vector< std::shared_ptr<sigrok::Channel> > achannel_list,
+ std::vector< std::shared_ptr<pv::data::AnalogSegment> > asegment_list,
+ std::shared_ptr<pv::data::LogicSegment> lsegment);
Q_SIGNALS:
void progress_updated();
Q_SIGNALS:
void progress_updated();
@@
-78,6
+87,8
@@
Q_SIGNALS:
private:
const std::string file_name_;
const std::shared_ptr<sigrok::OutputFormat> output_format_;
private:
const std::string file_name_;
const std::shared_ptr<sigrok::OutputFormat> output_format_;
+ const std::map<std::string, Glib::VariantBase> options_;
+ const std::pair<uint64_t, uint64_t> sample_range_;
const Session &session_;
std::shared_ptr<sigrok::Output> output_;
const Session &session_;
std::shared_ptr<sigrok::Output> output_;
@@
-91,6
+102,8
@@
private:
mutable std::mutex mutex_;
QString error_;
mutable std::mutex mutex_;
QString error_;
+
+ uint64_t start_sample_, sample_count_;
};
} // pv
};
} // pv