CMakeCommandLineInfo.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*=========================================================================
  2. Program: Insight Segmentation & Registration Toolkit
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Insight Consortium. All rights reserved.
  8. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. // CMakeCommandLineInfo.h : main header file for the command line arguments
  14. //
  15. #if !defined(CMAKECOMMANDLINEINFO_H)
  16. #define CMAKECOMMANDLINEINFO_H
  17. #if _MSC_VER > 1000
  18. #pragma once
  19. #endif // _MSC_VER > 1000
  20. #ifndef __AFXWIN_H__
  21. #error include 'stdafx.h' before including this file for PCH
  22. #endif
  23. ///////////////////////////////////////////////////////////////
  24. // CMakeCommandLineInfo:
  25. // See CMakeCommandLineInfo.cpp for the implementation of this class
  26. //
  27. class CMakeCommandLineInfo : public CCommandLineInfo
  28. {
  29. // Construction
  30. public:
  31. CMakeCommandLineInfo();
  32. // Attributes
  33. public:
  34. CString m_WhereSource;
  35. CString m_WhereBuild;
  36. BOOL m_AdvancedValues;
  37. CString m_GeneratorChoiceString;
  38. CString m_LastUnknownParameter;
  39. // Operations
  40. public:
  41. void ParseParam(const TCHAR* pszParam, BOOL bFlag, BOOL bLast);
  42. // Implementation
  43. public:
  44. virtual ~CMakeCommandLineInfo();
  45. protected:
  46. static int GetBoolValue(const CString&);
  47. };
  48. #endif // !defined(CMAKECOMMANDLINEINFO_H)