BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
CSVSensorDataFormatter.h
1 #pragma once
2 
3 #include <string>
4 
5 #include "util/SensorDataFormatter.h"
6 
7 namespace BeeeOn {
8 
9 class SensorData;
10 
12 public:
14 
22  std::string format(const SensorData &data) override;
23 
27  void setSeparator(const std::string &separator)
28  {
29  m_separator = separator;
30  }
31 
36  const std::string separator() const
37  {
38  return m_separator;
39  }
40 
41 private:
42  std::string m_separator;
43 };
44 
45 }
Definition: SensorData.h:20
void setSeparator(const std::string &separator)
Definition: CSVSensorDataFormatter.h:27
Definition: CSVSensorDataFormatter.h:11
const std::string separator() const
separator
Definition: CSVSensorDataFormatter.h:36
std::string format(const SensorData &data) override
Definition: CSVSensorDataFormatter.cpp:27
Definition: SensorDataFormatter.h:11