! Extracts a named string out of the container. */
| 176 | |
| 177 | /*! Extracts a named string out of the container. */ |
| 178 | std::string getString(const char* name, std::string def = "") const { |
| 179 | std::map<std::string,Variant>::const_iterator i = m.find(name); |
| 180 | if (i == m.end() || (*i).second.type != Variant::STRING) return def; |
| 181 | return (*i).second.getString(); |
| 182 | } |
| 183 | |
| 184 | /*! Extracts a named texture out of the container. */ |
| 185 | std::shared_ptr<Texture> getTexture(const char* name) const { |
no test coverage detected