161 if (_info.empty()) _info = infoToAdd;
else (_info +=
'\n') += infoToAdd;
167 boost::tokenizer<boost::char_separator<char>> eachLine()
const;
169 std::vector<std::string> eachOfType(
const std::string& type)
const;
184 PropertyInfo&
set(
const std::string& new_info) { this->_info = new_info;
return *
this; }
190 const std::string&
get()
const {
return _info; }
196 std::string getSource()
const;
202 std::string getNote()
const;
209 ArgumentRange getArgumentRange(
ARGUMENT_NAME argument)
const;
217 std::vector<Link> getLinks()
const;
225 return add(
"source: " + sourceToAdd);
234 return add(
"note: " + sourceToAdd);
329 std::map<std::string, MaterialInfo> materialInfo;
337 static DB& getDefault();
343 materialInfo.clear();
351 for (
const auto& item: src.materialInfo) {
352 materialInfo[item.first] = item.second;
362 MaterialInfo& add(
const std::string& materialName,
const std::string& parentMaterial);
388 typedef std::map<std::string, MaterialInfo>::iterator
iterator;