1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: CMakeCommandLineInfo.h,v $
6 Date: $Date: 2003/07/23 21:31:25 $
7 Version: $Revision: 1.6 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 // CMakeCommandLineInfo.h : main header file for the command line arguments
20 #if !defined(CMAKECOMMANDLINEINFO_H)
21 #define CMAKECOMMANDLINEINFO_H
25 #endif // _MSC_VER > 1000
28 #error include 'stdafx.h' before including this file for PCH
31 #include "../cmStandardIncludes.h"
33 ///////////////////////////////////////////////////////////////
34 // CMakeCommandLineInfo:
35 // See CMakeCommandLineInfo.cpp for the implementation of this class
38 class CMakeCommandLineInfo
: public CCommandLineInfo
42 CMakeCommandLineInfo();
46 CString m_WhereSource
;
48 BOOL m_AdvancedValues
;
49 CString m_GeneratorChoiceString
;
50 CString m_LastUnknownParameter
;
52 int GetArgC() { return static_cast<int>(m_Argv
.size()); }
53 const char*const* GetArgV() { return &*m_Argv
.begin(); }
56 std::vector
<cmStdString
> m_Arguments
;
57 std::vector
<const char*> m_Argv
;
61 void ParseParam(const TCHAR
* pszParam
, BOOL bFlag
, BOOL bLast
);
65 virtual ~CMakeCommandLineInfo();
67 static int GetBoolValue(const CString
&);
70 #endif // !defined(CMAKECOMMANDLINEINFO_H)