| 88 | } |
| 89 | |
| 90 | void OvTools::Filesystem::IniFile::Load() |
| 91 | { |
| 92 | std::fstream iniFile; |
| 93 | iniFile.open(m_filePath); |
| 94 | |
| 95 | if (iniFile.is_open()) |
| 96 | { |
| 97 | std::string currentLine; |
| 98 | |
| 99 | while (std::getline(iniFile, currentLine)) |
| 100 | { |
| 101 | if (IsValidLine(currentLine)) |
| 102 | { |
| 103 | OvTools::Utils::String::Trim(currentLine); |
| 104 | RegisterPair(ExtractKeyAndValue(currentLine)); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | iniFile.close(); |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | void OvTools::Filesystem::IniFile::Rewrite() const |
| 113 | { |
nothing calls this directly
no test coverage detected