diff options
author | Jorgen Bodde <jorgb@xs4all.nl> | 2005-06-30 19:54:14 (GMT) |
---|---|---|
committer | Jorgen Bodde <jorgb@xs4all.nl> | 2005-06-30 19:54:14 (GMT) |
commit | 8c28e4e9f0b82ec96b4b68c370a8fc50333b093c (patch) | |
tree | ad8c3ff74a3ef384d0c1df3f2b2f7781b9de42bd /Source/WXDialog/CommandLineInfo.h | |
parent | 099587c4ee40f05e99666eeab92a0357cd932a38 (diff) | |
download | CMake-8c28e4e9f0b82ec96b4b68c370a8fc50333b093c.zip CMake-8c28e4e9f0b82ec96b4b68c370a8fc50333b093c.tar.gz CMake-8c28e4e9f0b82ec96b4b68c370a8fc50333b093c.tar.bz2 |
Initial checkin new wx dialog
Diffstat (limited to 'Source/WXDialog/CommandLineInfo.h')
-rw-r--r-- | Source/WXDialog/CommandLineInfo.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/Source/WXDialog/CommandLineInfo.h b/Source/WXDialog/CommandLineInfo.h new file mode 100644 index 0000000..a904bbc --- /dev/null +++ b/Source/WXDialog/CommandLineInfo.h @@ -0,0 +1,66 @@ +/*========================================================================= + + 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 + void ParseCommandLine(int argc, char* argv[]); + + // Set the valid arguments + void SetValidArguments(const std::string& va) { this->m_ValidArguments = va; } + + // Retrieve the path of executable + std::string GetPathToExecutable() { return this->m_ExecutablePath; } + + // Attributes +public: + std::string m_WhereSource; + std::string m_WhereBuild; + bool m_AdvancedValues; + std::string m_GeneratorChoiceString; + std::string m_LastUnknownParameter; + std::string m_ExecutablePath; + bool m_ExitAfterLoad; + +protected: + // Parse one argument + void ParseParam(const std::string& parameter, bool know_about, bool last); + + // Return boolean value of the string + static int GetBoolValue(const std::string&); + + std::string m_ValidArguments; +}; + +#endif // !defined(CMAKECOMMANDLINEINFO_H) |