2009-03-21 01:39:04 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS Automatic Testing Utility
|
2017-09-29 18:13:54 +00:00
|
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
2009-03-21 01:39:04 +00:00
|
|
|
* PURPOSE: Class for managing all the configuration parameters
|
2017-09-29 18:13:54 +00:00
|
|
|
* COPYRIGHT: Copyright 2009 Colin Finck (colin@reactos.org)
|
2009-03-21 01:39:04 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class CConfiguration
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
bool m_CrashRecovery;
|
2015-02-28 21:29:44 +00:00
|
|
|
bool m_IsInteractive;
|
2009-03-21 01:39:04 +00:00
|
|
|
bool m_IsReactOS;
|
2015-02-16 14:55:39 +00:00
|
|
|
bool m_PrintToConsole;
|
2009-03-21 01:39:04 +00:00
|
|
|
bool m_Shutdown;
|
|
|
|
bool m_Submit;
|
|
|
|
string m_Comment;
|
|
|
|
wstring m_Module;
|
|
|
|
string m_Test;
|
|
|
|
|
|
|
|
string m_AuthenticationRequestString;
|
|
|
|
string m_SystemInfoRequestString;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CConfiguration();
|
|
|
|
void ParseParameters(int argc, wchar_t* argv[]);
|
|
|
|
void GetSystemInformation();
|
|
|
|
void GetConfigurationFromFile();
|
|
|
|
|
|
|
|
bool DoCrashRecovery() const { return m_CrashRecovery; }
|
2015-02-16 14:55:39 +00:00
|
|
|
bool DoPrint() const { return m_PrintToConsole; }
|
2009-03-21 01:39:04 +00:00
|
|
|
bool DoShutdown() const { return m_Shutdown; }
|
|
|
|
bool DoSubmit() const { return m_Submit; }
|
2015-02-28 21:29:44 +00:00
|
|
|
bool IsInteractive() const { return m_IsInteractive; }
|
2009-03-21 01:39:04 +00:00
|
|
|
bool IsReactOS() const { return m_IsReactOS; }
|
|
|
|
const string& GetComment() const { return m_Comment; }
|
|
|
|
const wstring& GetModule() const { return m_Module; }
|
|
|
|
const string& GetTest() const { return m_Test; }
|
|
|
|
|
|
|
|
const string& GetAuthenticationRequestString() const { return m_AuthenticationRequestString; }
|
|
|
|
const string& GetSystemInfoRequestString() const { return m_SystemInfoRequestString; }
|
|
|
|
};
|