summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog/CMakeCommandLineInfo.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-07-23 21:31:25 (GMT)
committerBrad King <brad.king@kitware.com>2003-07-23 21:31:25 (GMT)
commitae84581f86b2c347431eff4256c856764006a508 (patch)
tree2bc771c9b607b6984005ae1df7a191e357ae84bd /Source/MFCDialog/CMakeCommandLineInfo.h
parent6849cbdfcbedf61c7e76ea49b6c5800107bdf420 (diff)
downloadCMake-ae84581f86b2c347431eff4256c856764006a508.zip
CMake-ae84581f86b2c347431eff4256c856764006a508.tar.gz
CMake-ae84581f86b2c347431eff4256c856764006a508.tar.bz2
ENH: Added construction of original command line in argc/argv style.
Diffstat (limited to 'Source/MFCDialog/CMakeCommandLineInfo.h')
-rw-r--r--Source/MFCDialog/CMakeCommandLineInfo.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/MFCDialog/CMakeCommandLineInfo.h b/Source/MFCDialog/CMakeCommandLineInfo.h
index 25b3832..4dee8eb 100644
--- a/Source/MFCDialog/CMakeCommandLineInfo.h
+++ b/Source/MFCDialog/CMakeCommandLineInfo.h
@@ -28,6 +28,8 @@
#error include 'stdafx.h' before including this file for PCH
#endif
+#include "../cmStandardIncludes.h"
+
///////////////////////////////////////////////////////////////
// CMakeCommandLineInfo:
// See CMakeCommandLineInfo.cpp for the implementation of this class
@@ -46,7 +48,14 @@ public:
BOOL m_AdvancedValues;
CString m_GeneratorChoiceString;
CString m_LastUnknownParameter;
-
+
+ int GetArgC() { return static_cast<int>(m_Argv.size()); }
+ const char*const* GetArgV() { return &*m_Argv.begin(); }
+
+ std::string m_Argv0;
+ std::vector<cmStdString> m_Arguments;
+ std::vector<const char*> m_Argv;
+
// Operations
public:
void ParseParam(const TCHAR* pszParam, BOOL bFlag, BOOL bLast);