From: <mk...@us...> - 2003-07-23 02:24:47
|
Update of /cvsroot/csp/APPLICATIONS/CSPSim/Source In directory sc8-pr-cvs1:/tmp/cvs-serv32503/Source Modified Files: SimpleConfig.cpp Log Message: Index: SimpleConfig.cpp =================================================================== RCS file: /cvsroot/csp/APPLICATIONS/CSPSim/Source/SimpleConfig.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** SimpleConfig.cpp 23 Jul 2003 01:28:58 -0000 1.8 --- SimpleConfig.cpp 23 Jul 2003 02:24:44 -0000 1.9 *************** *** 444,448 **** } ! bool SimpleConfig::hasKey(const char* section, const char* key) const { std::string index = _hash_index(section, key); ConfigDictionary::const_iterator i = m_dict.find(index); --- 444,448 ---- } ! bool SimpleConfig::hasKey(std::string const §ion, std::string const &key) const { std::string index = _hash_index(section, key); ConfigDictionary::const_iterator i = m_dict.find(index); *************** *** 450,454 **** } ! void SimpleConfig::delKey(const char* section, const char* key) { std::string index = _hash_index(section, key); ConfigDictionary::iterator i = m_dict.find(index); --- 450,454 ---- } ! void SimpleConfig::delKey(std::string const §ion, std::string const &key) { std::string index = _hash_index(section, key); ConfigDictionary::iterator i = m_dict.find(index); *************** *** 463,467 **** } ! bool SimpleConfig::hasSection(const char* section) const { ConfigDictionary::const_iterator i = m_last.find(section); return (i != m_last.end()); --- 463,467 ---- } ! bool SimpleConfig::hasSection(std::string const §ion) const { ConfigDictionary::const_iterator i = m_last.find(section); return (i != m_last.end()); *************** *** 475,479 **** // isn't very likely to be used in the application this class // was written for. Sorry to all the purists out there. :-( ! void SimpleConfig::delSection(const char* section_name) { ConfigDictionary::iterator i = m_last.find(section_name); if (i != m_last.end()) { --- 475,479 ---- // isn't very likely to be used in the application this class // was written for. Sorry to all the purists out there. :-( ! void SimpleConfig::delSection(std::string const §ion_name) { ConfigDictionary::iterator i = m_last.find(section_name); if (i != m_last.end()) { |