reactos/rostests/rosautotest/CConfiguration.h

43 lines
1.4 KiB
C
Raw Normal View History

/*
* PROJECT: ReactOS Automatic Testing Utility
* LICENSE: GNU GPLv2 or any later version as published by the Free Software Foundation
* PURPOSE: Class for managing all the configuration parameters
* COPYRIGHT: Copyright 2009 Colin Finck <colin@reactos.org>
*/
class CConfiguration
{
private:
bool m_CrashRecovery;
bool m_IsInteractive;
bool m_IsReactOS;
bool m_PrintToConsole;
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; }
bool DoPrint() const { return m_PrintToConsole; }
bool DoShutdown() const { return m_Shutdown; }
bool DoSubmit() const { return m_Submit; }
bool IsInteractive() const { return m_IsInteractive; }
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; }
};