MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / FindProperty

Method FindProperty

Source/Utility/IniFile.cpp:171–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169//
170//*****************************************************************************
171bool IIniFileSection::FindProperty( const char * p_name, const CIniFileProperty ** p_property ) const
172{
173 PropertyVec::const_iterator it( std::lower_bound( mProperties.begin(), mProperties.end(), p_name, SCompareProperties() ) );
174 if( it != mProperties.end() && strcmp( (*it)->mName.c_str(), p_name ) == 0 )
175 {
176 *p_property = *it;
177 return true;
178 }
179 else
180 {
181 *p_property = NULL;
182 return false;
183 }
184}
185
186//*****************************************************************************
187// Once added, this class takes responsibility for deleting the property

Callers 3

BuildControllerConfigMethod · 0.80
OpenPreferencesFileMethod · 0.80
OpenSettingsFileMethod · 0.80

Calls 2

SComparePropertiesClass · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected