cmDSWWriter.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. #ifndef cmDSWWriter_h
  14. #define cmDSWWriter_h
  15. #include "cmStandardIncludes.h"
  16. #include "cmMakefile.h"
  17. class cmDSPWriter;
  18. class cmMSProjectGenerator;
  19. /** \class cmDSWWriter
  20. * \brief Write a Microsoft Visual C++ DSW (workspace) file.
  21. *
  22. * cmDSWWriter produces a Microsoft Visual C++ DSW (workspace) file.
  23. */
  24. class cmDSWWriter
  25. {
  26. public:
  27. /**
  28. * Constructor.
  29. */
  30. cmDSWWriter(cmMakefile*);
  31. /**
  32. * Generate the DSW workspace file.
  33. */
  34. virtual void OutputDSWFile();
  35. private:
  36. void WriteDSWFile(std::ostream& fout);
  37. void WriteDSWHeader(std::ostream& fout);
  38. void WriteProject(std::ostream& fout,
  39. const char* name, const char* path,
  40. cmDSPWriter* project, const cmTarget &t);
  41. void WriteExternalProject(std::ostream& fout,
  42. const char* name, const char* path,
  43. const std::vector<std::string>& dependencies);
  44. void WriteDSWFooter(std::ostream& fout);
  45. cmMakefile* m_Makefile;
  46. };
  47. #endif