Lines Matching refs:string
21 #include <string>
42 bool GetString(const std::string& key, std::string* value) const override;
43 bool SetString(const std::string& key, const std::string& value) override;
44 bool GetInt64(const std::string& key, int64_t* value) const override;
45 bool SetInt64(const std::string& key, const int64_t value) override;
46 bool GetBoolean(const std::string& key, bool* value) const override;
47 bool SetBoolean(const std::string& key, const bool value) override;
49 bool Exists(const std::string& key) const override;
50 bool Delete(const std::string& key) override;
52 void AddObserver(const std::string& key,
54 void RemoveObserver(const std::string& key,
64 std::string as_str;
85 // Returns a string representation of the PrefType useful for logging.
86 static std::string GetTypeName(PrefType type);
89 void CheckKeyType(const std::string& key, PrefType type) const;
94 void SetValue(const std::string& key, const T& value);
100 bool GetValue(const std::string& key, T* value) const;
103 std::map<std::string, PrefTypeValue> values_;
106 std::map<std::string, std::vector<ObserverInterface*>> observers_;