CMake/Source/WXDialog/CommandLineInfo.h

68 lines
1.8 KiB
C
Raw Normal View History

2005-06-30 23:54:14 +04:00
/*=========================================================================
Program: WXDialog - wxWidgets X-platform GUI Front-End for CMake
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Author: Jorgen Bodde
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#if !defined(CMAKECOMMANDLINEINFO_H)
#define CMAKECOMMANDLINEINFO_H
#include "cmStandardIncludes.h"
///////////////////////////////////////////////////////////////
// cmCommandLineInfo:
// See cmCommandLineInfo.cxx for the implementation of this class
//
class cmCommandLineInfo
{
// Construction
public:
cmCommandLineInfo();
virtual ~cmCommandLineInfo();
// Parse the command line
2005-08-09 23:42:49 +04:00
bool ParseCommandLine(int argc, char* argv[]);
2005-06-30 23:54:14 +04:00
// Retrieve the path of executable
2005-08-09 23:42:49 +04:00
wxString GetPathToExecutable() { return this->m_ExecutablePath; }
2005-06-30 23:54:14 +04:00
// Attributes
public:
2005-08-09 23:42:49 +04:00
wxString m_WhereSource;
wxString m_WhereBuild;
2005-06-30 23:54:14 +04:00
bool m_AdvancedValues;
wxString m_GeneratorChoiceString;
2005-08-09 23:42:49 +04:00
wxString m_LastUnknownParameter;
wxString m_ExecutablePath;
2005-06-30 23:54:14 +04:00
bool m_ExitAfterLoad;
2005-08-09 23:42:49 +04:00
private:
2005-06-30 23:54:14 +04:00
// Parse one argument
size_t ParseSwitch(char **argv, int arg_index, int argc);
2005-06-30 23:54:14 +04:00
// Return boolean value of the string
2005-08-09 23:42:49 +04:00
static int GetBoolValue(const wxString&);
2005-06-30 23:54:14 +04:00
// on windows the argument with spaces SUCKS! So we need to
// incorporate it with quotes.
2005-08-09 23:42:49 +04:00
wxString GetStringParam(const wxString &str);
2005-08-09 23:42:49 +04:00
wxString m_ValidArguments;
2005-06-30 23:54:14 +04:00
};
#endif // !defined(CMAKECOMMANDLINEINFO_H)