123
This commit is contained in:
45
CrySystem/SystemCFG.h
Normal file
45
CrySystem/SystemCFG.h
Normal file
@@ -0,0 +1,45 @@
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Crytek CryENGINE Source code (c) 2002-2004
|
||||
//
|
||||
// File: SystemCfg.h
|
||||
//
|
||||
// History:
|
||||
// -Jan 22,2004:Created
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <math.h>
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
typedef string SysConfigKey;
|
||||
typedef string SysConfigValue;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
class CSystemConfiguration
|
||||
{
|
||||
public:
|
||||
CSystemConfiguration( const string& strSysConfigFilePath,CSystem *pSystem);
|
||||
~CSystemConfiguration();
|
||||
|
||||
string RemoveWhiteSpaces( string& s )
|
||||
{
|
||||
string s1;
|
||||
for (int i = 0; i < (int)(s.size()); i++)
|
||||
if (s[i] != ' ') s1.push_back(s[i]);
|
||||
s = s1;
|
||||
return s;
|
||||
//return( string( s.begin(), std::remove( s.begin(), s.end(), ' ' ) ) );
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
void ParseSystemConfig();
|
||||
|
||||
CSystem *m_pSystem;
|
||||
string m_strSysConfigFilePath;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user