cmDSWWriter.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. /**
  12. * cmDSWMakefile - class to write a microsoft DSW file.
  13. */
  14. #ifndef cmDSWMakefile_h
  15. #define cmDSWMakefile_h
  16. #ifdef _MSC_VER
  17. #pragma warning ( disable : 4786 )
  18. #endif
  19. #include "cmMakefile.h"
  20. #include <vector>
  21. class cmDSPMakefile;
  22. class cmDSWMakefile : public cmMakefile
  23. {
  24. public:
  25. virtual void OutputDSWFile();
  26. private:
  27. void FindAllCMakeListsFiles(const char* subdir,
  28. std::vector<cmDSPMakefile*>&);
  29. void WriteDSWFile(std::ostream& fout);
  30. void WriteDSWHeader(std::ostream& fout);
  31. void WriteProject(std::ostream& fout,
  32. const char* name, const char* path,
  33. cmMakefile* project);
  34. void WriteDSWFooter(std::ostream& fout);
  35. };
  36. #endif