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