cmMSProjectGenerator.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*=========================================================================
  2. Program: Insight Segmentation & Registration Toolkit
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2000 National Library of Medicine
  8. All rights reserved.
  9. See COPYRIGHT.txt for copyright details.
  10. =========================================================================*/
  11. #ifndef cmMSProjectGenerator_h
  12. #define cmMSProjectGenerator_h
  13. #include "cmStandardIncludes.h"
  14. #include "cmMakefileGenerator.h"
  15. class cmDSPMakefile;
  16. class cmDSWMakefile;
  17. /** \class cmMSProjectGenerator
  18. * \brief Write a Microsoft Visual C++ DSP (project) file.
  19. *
  20. * cmMSProjectGenerator produces a Microsoft Visual C++ DSP (project) file.
  21. */
  22. class cmMSProjectGenerator : public cmMakefileGenerator
  23. {
  24. public:
  25. /**
  26. * Constructor sets the generation of DSW files on.
  27. */
  28. cmMSProjectGenerator();
  29. /**
  30. * Destructor.
  31. */
  32. ~cmMSProjectGenerator();
  33. /**
  34. * Produce the makefile (in this case a Microsoft Visual C++ project).
  35. */
  36. virtual void GenerateMakefile();
  37. /**
  38. * Turn off the generation of a Microsoft Visual C++ DSW file.
  39. * This causes only the dsp file to be created. This
  40. * is used to run as a command line program from inside visual
  41. * studio.
  42. */
  43. void BuildDSWOff()
  44. {m_BuildDSW = false;}
  45. /**
  46. * Turn on the generation of a Microsoft Visual C++ DSW file.
  47. */
  48. void BuildDSWOn()
  49. {m_BuildDSW = true;}
  50. /**
  51. * Retrieve a pointer to a cmDSWMakefile instance.
  52. */
  53. cmDSWMakefile* GetDSWMakefile()
  54. {return m_DSWMakefile;}
  55. /**
  56. * Retrieve a pointer to a cmDSPMakefile instance.
  57. */
  58. cmDSPMakefile* GetDSPMakefile()
  59. {return m_DSPMakefile;}
  60. private:
  61. cmDSWMakefile* m_DSWMakefile;
  62. cmDSPMakefile* m_DSPMakefile;
  63. bool m_BuildDSW;
  64. };
  65. #endif