diff options
author | Jorgen Bodde <jorgb@xs4all.nl> | 2005-08-09 19:42:49 (GMT) |
---|---|---|
committer | Jorgen Bodde <jorgb@xs4all.nl> | 2005-08-09 19:42:49 (GMT) |
commit | 8a52a910e1ac45d16011e755ed7e5ca294c84372 (patch) | |
tree | 12cea2339808f7a223cb7ebfc341a1e970cb15ed /Source/WXDialog/CommandLineInfo.h | |
parent | 7df63f38c5318c55276ba0f8f3bb606f2139a0aa (diff) | |
download | CMake-8a52a910e1ac45d16011e755ed7e5ca294c84372.zip CMake-8a52a910e1ac45d16011e755ed7e5ca294c84372.tar.gz CMake-8a52a910e1ac45d16011e755ed7e5ca294c84372.tar.bz2 |
Implemented -G option
Diffstat (limited to 'Source/WXDialog/CommandLineInfo.h')
-rw-r--r-- | Source/WXDialog/CommandLineInfo.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/Source/WXDialog/CommandLineInfo.h b/Source/WXDialog/CommandLineInfo.h index f72a148..7cacffe 100644 --- a/Source/WXDialog/CommandLineInfo.h +++ b/Source/WXDialog/CommandLineInfo.h @@ -35,36 +35,33 @@ public: 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; } + bool ParseCommandLine(int argc, char* argv[]); // Retrieve the path of executable - std::string GetPathToExecutable() { return this->m_ExecutablePath; } + wxString GetPathToExecutable() { return this->m_ExecutablePath; } // Attributes public: - std::string m_WhereSource; - std::string m_WhereBuild; + wxString m_WhereSource; + wxString m_WhereBuild; bool m_AdvancedValues; wxString m_GeneratorChoiceString; - std::string m_LastUnknownParameter; - std::string m_ExecutablePath; + wxString m_LastUnknownParameter; + wxString m_ExecutablePath; bool m_ExitAfterLoad; -protected: +private: // Parse one argument - void ParseParam(const std::string& parameter, bool know_about, bool last); + bool ParseArgument(const wxString& sParam); // Return boolean value of the string - static int GetBoolValue(const std::string&); + static int GetBoolValue(const wxString&); // on windows the argument with spaces SUCKS! So we need to // incorporate it with quotes. - wxString GetStringParam(const char *pString); + wxString GetStringParam(const wxString &str); - std::string m_ValidArguments; + wxString m_ValidArguments; }; #endif // !defined(CMAKECOMMANDLINEINFO_H) |