export_yaml_file.h 534 B

123456789101112131415161718192021
  1. #ifndef FOUNDATION_IOTACQ_EXPORTYAMLFILE_H
  2. #define FOUNDATION_IOTACQ_EXPORTYAMLFILE_H
  3. #include <vendor_global.h>
  4. #include <settings/config_parser.h>
  5. #include <json/json.h>
  6. #include <yaml-cpp/yaml.h>
  7. namespace iot_acq {
  8. class ExportYamlFile {
  9. public:
  10. ExportYamlFile();
  11. ~ExportYamlFile();
  12. bool ExportYaml(const std::string &filePath);
  13. bool ExportRoot(YAML::Node &root);
  14. YAML::Node ExportChannels();
  15. YAML::Node ExportDevices();
  16. YAML::Node ExportFdHandler();
  17. };
  18. } // namespace iot_acq
  19. #endif // FOUNDATION_IOTACQ_EXPORTYAMLFILE_H