summaryrefslogtreecommitdiffstats
path: root/Source/WXDialog/cmWXCommandLineInfo.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-19 13:47:18 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-19 13:47:18 (GMT)
commitf1d40eef93220d502fca94667a64188f7f9fe094 (patch)
tree6c480cc04fce7b1706ba87c848eb129ae5288e14 /Source/WXDialog/cmWXCommandLineInfo.h
parent0dafd886fc719b5fbb0d56f30262ba09c76a160b (diff)
downloadCMake-f1d40eef93220d502fca94667a64188f7f9fe094.zip
CMake-f1d40eef93220d502fca94667a64188f7f9fe094.tar.gz
CMake-f1d40eef93220d502fca94667a64188f7f9fe094.tar.bz2
Initial import of wxWindows dialog
Diffstat (limited to 'Source/WXDialog/cmWXCommandLineInfo.h')
-rw-r--r--Source/WXDialog/cmWXCommandLineInfo.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/Source/WXDialog/cmWXCommandLineInfo.h b/Source/WXDialog/cmWXCommandLineInfo.h
new file mode 100644
index 0000000..7831d19
--- /dev/null
+++ b/Source/WXDialog/cmWXCommandLineInfo.h
@@ -0,0 +1,65 @@
+/*=========================================================================
+
+ Program: Insight Segmentation & Registration Toolkit
+ Module: $RCSfile$
+ Language: C++
+ Date: $Date$
+ Version: $Revision$
+
+ Copyright (c) 2002 Insight Consortium. All rights reserved.
+ See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm 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.
+
+=========================================================================*/
+// cmCommandLineInfo.h : main header file for the command line arguments
+//
+
+#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;
+
+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)