Changeset 10057 for OpenSceneGraph/trunk/include/osgDB/ReaderWriter
- Timestamp:
- 04/21/09 13:48:08 (4 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osgDB/ReaderWriter (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgDB/ReaderWriter
r9890 r10057 158 158 _objectCacheHint(options._objectCacheHint), 159 159 _buildKdTreesHint(options._buildKdTreesHint), 160 _pluginData(options._pluginData){} 160 _pluginData(options._pluginData), 161 _pluginStringData(options._pluginStringData){} 161 162 162 163 META_Object(osgDB,Options); … … 214 215 /** Remove a value from the PluginData */ 215 216 void removePluginData(const std::string& s) const { _pluginData.erase(s); } 217 218 219 /** Sets a plugindata value PluginData with a string */ 220 void setPluginStringData(const std::string& s, const std::string& v) const { _pluginStringData[s] = v; } 221 222 /** Get a string from the PluginStrData */ 223 std::string getPluginStringData(const std::string& s) { return _pluginStringData[s]; } 224 225 /** Get a value from the PluginData */ 226 const std::string getPluginStringData(const std::string& s) const 227 { 228 PluginStringDataMap::const_iterator itr = _pluginStringData.find(s); 229 return (itr == _pluginStringData.end()) ? std::string("") : itr->second; 230 } 231 232 /** Remove a value from the PluginData */ 233 void removePluginStringData(const std::string& s) const { _pluginStringData.erase(s); } 234 235 236 216 237 217 238 protected: … … 227 248 typedef std::map<std::string,void*> PluginDataMap; 228 249 mutable PluginDataMap _pluginData; 250 typedef std::map<std::string,std::string> PluginStringDataMap; 251 mutable PluginStringDataMap _pluginStringData; 252 229 253 }; 230 254
