]> sigrok.org Git - pulseview.git/blobdiff - pv/storesession.hpp
Whitespace fix
[pulseview.git] / pv / storesession.hpp
index ce737f34e3c9bba0ba079589e15daf27f81bf8ea..6a081801573491e8a626b9a90107ef68bff90a89 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#ifndef PULSEVIEW_PV_STORESESSION_H
-#define PULSEVIEW_PV_STORESESSION_H
+#ifndef PULSEVIEW_PV_STORESESSION_HPP
+#define PULSEVIEW_PV_STORESESSION_HPP
 
 #include <stdint.h>
 
 #include <atomic>
+#include <fstream>
+#include <map>
 #include <memory>
 #include <mutex>
 #include <string>
 #include <thread>
 
+#include <glibmm/variant.h>
+
 #include <QObject>
 
 namespace sigrok {
@@ -54,6 +58,8 @@ private:
 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();
@@ -77,9 +83,12 @@ Q_SIGNALS:
 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_;
+       std::ofstream output_stream_;
 
        std::thread thread_;
 
@@ -89,8 +98,10 @@ private:
 
        mutable std::mutex mutex_;
        QString error_;
+
+       uint64_t start_sample_, sample_count_;
 };
 
 } // pv
 
-#endif // PULSEVIEW_PV_STORESESSION_H
+#endif // PULSEVIEW_PV_STORESESSION_HPP