Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / MFCDialog / CMakeCommandLineInfo.h
blob717d9fd1a7b229550ac2eefe39d0a4d09ca1a1b1
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: CMakeCommandLineInfo.h,v $
5 Language: C++
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
23 #if _MSC_VER > 1000
24 #pragma once
25 #endif // _MSC_VER > 1000
27 #ifndef __AFXWIN_H__
28 #error include 'stdafx.h' before including this file for PCH
29 #endif
31 #include "../cmStandardIncludes.h"
33 ///////////////////////////////////////////////////////////////
34 // CMakeCommandLineInfo:
35 // See CMakeCommandLineInfo.cpp for the implementation of this class
38 class CMakeCommandLineInfo : public CCommandLineInfo
40 // Construction
41 public:
42 CMakeCommandLineInfo();
44 // Attributes
45 public:
46 CString m_WhereSource;
47 CString m_WhereBuild;
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(); }
55 std::string m_Argv0;
56 std::vector<cmStdString> m_Arguments;
57 std::vector<const char*> m_Argv;
59 // Operations
60 public:
61 void ParseParam(const TCHAR* pszParam, BOOL bFlag, BOOL bLast);
63 // Implementation
64 public:
65 virtual ~CMakeCommandLineInfo();
66 protected:
67 static int GetBoolValue(const CString&);
70 #endif // !defined(CMAKECOMMANDLINEINFO_H)