1 // Copyright 2001-2018 Crytek GmbH / Crytek Group. All rights reserved.
7 // -Jan 22,2004:Created
9 //////////////////////////////////////////////////////////////////////
16 typedef string SysConfigKey
;
17 typedef string SysConfigValue
;
19 //////////////////////////////////////////////////////////////////////////
20 class CSystemConfiguration
23 CSystemConfiguration(const string
& strSysConfigFilePath
, CSystem
* pSystem
, ILoadConfigurationEntrySink
* pSink
, ELoadConfigurationType configType
, ELoadConfigurationFlags flags
);
24 ~CSystemConfiguration();
26 string
RemoveWhiteSpaces(string
& s
)
32 bool IsError() const { return m_bError
; }
34 static bool OpenFile(const string
& filename
, CCryFile
& file
, int flags
);
36 private: // ----------------------------------------
40 bool ParseSystemConfig();
43 string m_strSysConfigFilePath
;
45 ILoadConfigurationEntrySink
* m_pSink
; // never 0
46 ELoadConfigurationType m_configType
;
47 ELoadConfigurationFlags m_flags
= ELoadConfigurationFlags::None
;