Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
DataFlowImporter.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_IOFILE_DATAFLOWIMPORTER_HPP
2#define IV_SRC_IOFILE_DATAFLOWIMPORTER_HPP
3
7
8#include <memory>
9#include <optional>
10#include <string>
11
12namespace iv::iofile
13{
14
16{
17public:
18 DataFlowImporter() = delete;
19 DataFlowImporter(iv::panels::PanelDataFlowEditor *panelDataFlowEditor, CSheet *sheetRef,
20 const std::shared_ptr<iv::model::comms::NetworkData> &network);
21 ~DataFlowImporter() = default;
22
23 [[nodiscard]] bool import(const std::string &selectedPath,
24 const std::optional<std::shared_ptr<AbstractLog>> &logger) const;
25
26private:
27 [[nodiscard]] bool importModbusDataFlow(const std::string &selectedPath,
28 const std::optional<std::shared_ptr<AbstractLog>> &logger) const;
29
30 [[nodiscard]] bool importNMEA0183DataFlow(const std::string &selectedPath,
31 const std::optional<std::shared_ptr<AbstractLog>> &logger) const;
32
33 [[nodiscard]] bool importVdrDataFlow(const std::string &selectedPath,
34 const std::optional<std::shared_ptr<AbstractLog>> &logger) const;
35
36 [[nodiscard]] bool importJ1939DataFlow(const std::string &selectedPath,
37 const std::optional<std::shared_ptr<AbstractLog>> &logger) const;
38
39 [[nodiscard]] bool importNMEA2KDataFlow(const std::string &selectedPath,
40 const std::optional<std::shared_ptr<AbstractLog>> &logger) const;
41
42 std::shared_ptr<iv::model::comms::NetworkData> m_network;
45};
46
47}// namespace iv::iofile
48
49#endif//IV_SRC_IOFILE_DATAFLOWIMPORTER_HPP
Definition CSheet.hpp:20
Definition DataFlowImporter.hpp:16
bool importNMEA0183DataFlow(const std::string &selectedPath, const std::optional< std::shared_ptr< AbstractLog > > &logger) const
Definition DataFlowImporter.cpp:257
CSheet * m_sheetRef
Definition DataFlowImporter.hpp:44
std::shared_ptr< iv::model::comms::NetworkData > m_network
Definition DataFlowImporter.hpp:42
bool importJ1939DataFlow(const std::string &selectedPath, const std::optional< std::shared_ptr< AbstractLog > > &logger) const
Definition DataFlowImporter.cpp:437
iv::panels::PanelDataFlowEditor * m_panelDataFlowEditor
Definition DataFlowImporter.hpp:43
bool importNMEA2KDataFlow(const std::string &selectedPath, const std::optional< std::shared_ptr< AbstractLog > > &logger) const
Definition DataFlowImporter.cpp:619
bool importVdrDataFlow(const std::string &selectedPath, const std::optional< std::shared_ptr< AbstractLog > > &logger) const
Definition DataFlowImporter.cpp:358
bool importModbusDataFlow(const std::string &selectedPath, const std::optional< std::shared_ptr< AbstractLog > > &logger) const
Definition DataFlowImporter.cpp:59
PanelDataFlowEditor class that will build the Data Flow's window panel. This panel will contain a she...
Definition PanelDataFlowEditor.hpp:18
Definition ChannelsImporterExporter.cpp:15