BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Main Page
Related Pages
Data Structures
Files
File List
src
util
CSVSensorDataFormatter.h
1
#pragma once
2
3
#include <string>
4
5
#include "util/SensorDataFormatter.h"
6
7
namespace
BeeeOn {
8
9
class
SensorData;
10
11
class
CSVSensorDataFormatter
:
public
SensorDataFormatter
{
12
public
:
13
CSVSensorDataFormatter
();
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
}
BeeeOn::SensorData
Definition:
SensorData.h:20
BeeeOn::CSVSensorDataFormatter::setSeparator
void setSeparator(const std::string &separator)
Definition:
CSVSensorDataFormatter.h:27
BeeeOn::CSVSensorDataFormatter
Definition:
CSVSensorDataFormatter.h:11
BeeeOn::CSVSensorDataFormatter::separator
const std::string separator() const
separator
Definition:
CSVSensorDataFormatter.h:36
BeeeOn::CSVSensorDataFormatter::format
std::string format(const SensorData &data) override
Definition:
CSVSensorDataFormatter.cpp:27
BeeeOn::SensorDataFormatter
Definition:
SensorDataFormatter.h:11
Generated by
1.8.5