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

Method AddProperty

Source/Utility/IniFile.cpp:189–196  ·  view source on GitHub ↗

Once added, this class takes responsibility for deleting the property

Source from the content-addressed store, hash-verified

187// Once added, this class takes responsibility for deleting the property
188//*****************************************************************************
189void IIniFileSection::AddProperty( const IIniFileProperty * p_property )
190{
191 PropertyVec::iterator it( std::lower_bound( mProperties.begin(), mProperties.end(), p_property->GetName(), SCompareProperties() ) );
192 #ifdef DAEDALUS_ENABLE_ASSERTS
193 DAEDALUS_ASSERT( it == mProperties.end() || strcmp( (*it)->mName.c_str(), p_property->GetName() ) != 0, "This property already exists" );
194 #endif
195 mProperties.insert( it, p_property );
196}
197
198//*****************************************************************************
199//

Callers 1

OpenMethod · 0.80

Calls 3

SComparePropertiesClass · 0.85
GetNameMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected