]> sigrok.org Git - pulseview.git/blobdiff - pv/devices/inputfile.hpp
InputFile: Use new reset() function to allow re-reading file
[pulseview.git] / pv / devices / inputfile.hpp
index 588ccdf243e39c87ca52583678249b17cb42167e..e6b57033a02720b31aac2e52dadda5d8262a563e 100644 (file)
@@ -41,7 +41,9 @@ public:
                std::shared_ptr<sigrok::InputFormat> format,
                const std::map<std::string, Glib::VariantBase> &options);
 
-       void create();
+       void open();
+
+       void close();
 
        void start();
 
@@ -51,8 +53,11 @@ public:
 
 private:
        const std::shared_ptr<sigrok::Context> context_;
-       const std::shared_ptr<sigrok::Input> input_;
+       const std::shared_ptr<sigrok::InputFormat> format_;
+       const std::map<std::string, Glib::VariantBase> options_;
+       std::shared_ptr<sigrok::Input> input_;
 
+       std::ifstream *f;
        std::atomic<bool> interrupt_;
 };