/////////////////////////////////////////////////////////////////////
| 272 | |
| 273 | ////////////////////////////////////////////////////////////////////////// |
| 274 | bool CfgFile::SetConfig( const char *section, IConfig *config ) |
| 275 | { |
| 276 | Section *sec = FindSection( section ); assert(sec); |
| 277 | |
| 278 | for (std::list<Entry>::iterator it = sec->entries.begin(); it != sec->entries.end(); ++it) |
| 279 | { |
| 280 | if(!(*it).IsComment()) |
| 281 | config->Set( (*it).key.GetString(),(*it).value.GetString() ); |
| 282 | } |
| 283 | return true; |
| 284 | } |