1 /*=========================================================================
3 Program: WXDialog - wxWidgets X-platform GUI Front-End for CMake
4 Module: $RCSfile: CommandLineInfo.h,v $
6 Date: $Date: 2005/08/10 20:18:54 $
7 Version: $Revision: 1.4 $
11 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
12 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
14 This software is distributed WITHOUT ANY WARRANTY; without even
15 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 PURPOSE. See the above copyright notices for more information.
18 =========================================================================*/
20 #if !defined(CMAKECOMMANDLINEINFO_H)
21 #define CMAKECOMMANDLINEINFO_H
23 #include "cmStandardIncludes.h"
25 ///////////////////////////////////////////////////////////////
27 // See cmCommandLineInfo.cxx for the implementation of this class
30 class cmCommandLineInfo
35 virtual ~cmCommandLineInfo();
37 // Parse the command line
38 bool ParseCommandLine(int argc
, char* argv
[]);
40 // Retrieve the path of executable
41 wxString
GetPathToExecutable() { return this->m_ExecutablePath
; }
45 wxString m_WhereSource
;
46 wxString m_WhereBuild
;
47 bool m_AdvancedValues
;
48 wxString m_GeneratorChoiceString
;
49 wxString m_LastUnknownParameter
;
50 wxString m_ExecutablePath
;
55 size_t ParseSwitch(char **argv
, int arg_index
, int argc
);
57 // Return boolean value of the string
58 static int GetBoolValue(const wxString
&);
60 // on windows the argument with spaces SUCKS! So we need to
61 // incorporate it with quotes.
62 wxString
GetStringParam(const wxString
&str
);
64 wxString m_ValidArguments
;
67 #endif // !defined(CMAKECOMMANDLINEINFO_H)