Big testing system commit
[reactos.git] / rostests / rosautotest / CConfiguration.h
1 /*
2 * PROJECT: ReactOS Automatic Testing Utility
3 * LICENSE: GNU GPLv2 or any later version as published by the Free Software Foundation
4 * PURPOSE: Class for managing all the configuration parameters
5 * COPYRIGHT: Copyright 2009 Colin Finck <colin@reactos.org>
6 */
7
8 class CConfiguration
9 {
10 private:
11 bool m_CrashRecovery;
12 bool m_IsReactOS;
13 bool m_Shutdown;
14 bool m_Submit;
15 string m_Comment;
16 wstring m_Module;
17 string m_Test;
18
19 string m_AuthenticationRequestString;
20 string m_SystemInfoRequestString;
21
22 public:
23 CConfiguration();
24 void ParseParameters(int argc, wchar_t* argv[]);
25 void GetSystemInformation();
26 void GetConfigurationFromFile();
27
28 bool DoCrashRecovery() const { return m_CrashRecovery; }
29 bool DoShutdown() const { return m_Shutdown; }
30 bool DoSubmit() const { return m_Submit; }
31 bool IsReactOS() const { return m_IsReactOS; }
32 const string& GetComment() const { return m_Comment; }
33 const wstring& GetModule() const { return m_Module; }
34 const string& GetTest() const { return m_Test; }
35
36 const string& GetAuthenticationRequestString() const { return m_AuthenticationRequestString; }
37 const string& GetSystemInfoRequestString() const { return m_SystemInfoRequestString; }
38 };