Exemple #1
0
bool CLog::IsWrite()
{
	CInifile ini;
	ini.ReadInifile( "argument", "Log", "false" );
	std::string contents = ini.GetContents();
	transform( contents.begin(), contents.end(), contents.begin(), ::tolower );

	return !contents.compare( "true" );
}
///////////////////////////////
// Iniファイルから値を取得する
bool CArgBase::ReadInifile( const _TCHAR *sContents, const _TCHAR *sKey )
{
	m_sReadedIniData = "";

	CInifile ini;
	ini.ReadInifile( sContents, sKey, "" );
	if( strlen( ini.GetContents() )	<= 0 )	return false;

	m_sReadedIniData = ini.GetContents();
	return true;
}