MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / Load

Method Load

Sources/OvTools/src/OvTools/Filesystem/IniFile.cpp:90–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void 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
112void OvTools::Filesystem::IniFile::Rewrite() const
113{

Callers

nothing calls this directly

Calls 6

IsValidLineFunction · 0.85
TrimFunction · 0.85
ExtractKeyAndValueFunction · 0.85
openMethod · 0.45
is_openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected