Lines Matching refs:string
22 #include <string>
29 std::string key;
30 std::string value;
34 std::string name;
61 bool config_has_section(const config_t& config, const std::string& section);
65 bool config_has_key(const config_t& config, const std::string& section,
66 const std::string& key);
71 int config_get_int(const config_t& config, const std::string& section,
72 const std::string& key, int def_value);
77 uint64_t config_get_uint64(const config_t& config, const std::string& section,
78 const std::string& key, uint64_t def_value);
83 bool config_get_bool(const config_t& config, const std::string& section,
84 const std::string& key, bool def_value);
86 // Returns the string value for a given |key| in |section|. If |section| or
87 // |key| do not exist, this function returns |def_value|. The returned string
90 const std::string* config_get_string(const config_t& config,
91 const std::string& section,
92 const std::string& key,
93 const std::string* def_value);
97 void config_set_int(config_t* config, const std::string& section,
98 const std::string& key, int value);
102 void config_set_uint64(config_t* config, const std::string& section,
103 const std::string& key, uint64_t value);
107 void config_set_bool(config_t* config, const std::string& section,
108 const std::string& key, bool value);
110 // Sets a string value for the |key| in |section|. If |key| or |section| do
112 void config_set_string(config_t* config, const std::string& section,
113 const std::string& key, const std::string& value);
120 bool config_remove_section(config_t* config, const std::string& section);
126 bool config_remove_key(config_t* config, const std::string& section,
127 const std::string& key);
135 bool config_save(const config_t& config, const std::string& filename);