RTC Toolkit 6.0.0-pre2
Loading...
Searching...
No Matches
influxTagMap.hpp
Go to the documentation of this file.
1
12
13#ifndef RTCTK_COMPONENTFRAMEWORK_INFLUXTAGMAP_HPP
14#define RTCTK_COMPONENTFRAMEWORK_INFLUXTAGMAP_HPP
15
16#include <map>
17#include <string>
18
20
28public:
30
31 InfluxTagMap(std::initializer_list<std::pair<const std::string, std::string>> init);
32
33 InfluxTagMap(const std::map<std::string, std::string>& map);
34
35 InfluxTagMap Extend(const std::string& key, const std::string& value) const;
36
37 InfluxTagMap Extend(const std::pair<std::string, std::string>& extra) const;
38
39 InfluxTagMap Extend(const InfluxTagMap& other) const;
40
41 const std::map<std::string, std::string>& Get() const;
42
43 std::string& operator[](const std::string& key);
44
45 const std::string& operator[](const std::string& key) const;
46
47 operator const std::map<std::string, std::string>&() const;
48
49private:
50 std::map<std::string, std::string> m_map;
51};
52
53} // namespace rtctk::componentFramework
54
55#endif // RTCTK_COMPONENTFRAMEWORK_INFLUXTAGMAP_HPP
const std::map< std::string, std::string > & Get() const
Definition influxTagMap.cpp:44
InfluxTagMap Extend(const std::string &key, const std::string &value) const
Definition influxTagMap.cpp:26
std::string & operator[](const std::string &key)
Definition influxTagMap.cpp:48
Definition commandReplier.cpp:22