25 #ifndef SRC_GUI_INCLUDE_CORBO_GUI_PARAMETER_CACHE_H_ 26 #define SRC_GUI_INCLUDE_CORBO_GUI_PARAMETER_CACHE_H_ 28 #include <google/protobuf/message.h> 33 #include <unordered_map> 41 using CacheMap = std::unordered_map<std::string, std::unique_ptr<google::protobuf::Message>>;
43 void toCache(
const std::string& key,
const google::protobuf::Message& message);
45 std::unique_ptr<google::protobuf::Message>
fromCache(
const std::string& key)
const;
47 bool hasCache(
const std::string& key)
const;
60 #endif // SRC_GUI_INCLUDE_CORBO_GUI_PARAMETER_CACHE_H_ void toCache(const std::string &key, const google::protobuf::Message &message)
std::unordered_map< std::string, std::unique_ptr< google::protobuf::Message > > CacheMap
void erase(const std::string &key)
static std::string nestedNameListToKey(const std::list< std::string > &nested_name)
bool hasCache(const std::string &key) const
std::unique_ptr< google::protobuf::Message > fromCache(const std::string &key) const