! Extracts a named float out of the container. */
| 148 | |
| 149 | /*! Extracts a named float out of the container. */ |
| 150 | float getFloat(const char* name, float def = zero) const { |
| 151 | std::map<std::string,Variant>::const_iterator i = m.find(name); |
| 152 | if (i == m.end() || (*i).second.type != Variant::FLOAT1) return def; |
| 153 | return (*i).second.getFloat(); |
| 154 | } |
| 155 | |
| 156 | /*! Extracts a named Vec2f out of the container. */ |
| 157 | Vec2f getVec2f(const char* name, const Vec2f& def = zero) const { |
no test coverage detected