Lines Matching defs:string
21 #include <string>
39 std::map<std::string, ConfigItem>* property_ = nullptr;
42 std::map<std::string, ConfigItem>* mapValue_ = nullptr;
44 std::string stringValue_;
47 std::vector<std::string>* stringsValue_;
97 mapValue_ = new std::map<std::string, ConfigItem>(*value.mapValue_);
103 new(&stringValue_)std::string(value.stringValue_);
112 stringsValue_ = new std::vector<std::string>(*value.stringsValue_);
119 property_ = new std::map<std::string, ConfigItem>(*value.property_);
139 new(&stringValue_)std::string(std::move(value.stringValue_));
162 void SetProperty(const std::map<std::string, ConfigItem>& prop)
167 property_ = new std::map<std::string, ConfigItem>(prop);
170 void SetValue(const std::map<std::string, ConfigItem>& value)
174 mapValue_ = new std::map<std::string, ConfigItem>(value);
183 // set string value
184 void SetValue(const std::string& value)
188 new(&stringValue_)std::string(value);
205 void SetValue(const std::vector<std::string>& value)
209 stringsValue_ = new std::vector<std::string>(value);
235 const ConfigItem& operator[](const std::string& key) const
245 const ConfigItem& GetProp(const std::string& key) const