ENH: change the search path order (if several Tcl/Tk are installed, the "current...
[cmake.git] / Source / cmDSWWriter.h
blob7703343cdf1290a6e382b39a0a08a2fb1160f027
1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmDSWWriter.h,v $
5 Language: C++
6 Date: $Date: 2002-01-21 20:30:22 $
7 Version: $Revision: 1.11 $
9 Copyright (c) 2002 Insight Consortium. All rights reserved.
10 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm 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 #ifndef cmDSWWriter_h
18 #define cmDSWWriter_h
20 #include "cmStandardIncludes.h"
21 #include "cmMakefile.h"
23 class cmDSPWriter;
24 class cmMSProjectGenerator;
26 /** \class cmDSWWriter
27 * \brief Write a Microsoft Visual C++ DSW (workspace) file.
29 * cmDSWWriter produces a Microsoft Visual C++ DSW (workspace) file.
31 class cmDSWWriter
33 public:
34 /**
35 * Constructor.
37 cmDSWWriter(cmMakefile*);
39 /**
40 * Generate the DSW workspace file.
42 virtual void OutputDSWFile();
44 private:
45 void WriteDSWFile(std::ostream& fout);
46 void WriteDSWHeader(std::ostream& fout);
47 void WriteProject(std::ostream& fout,
48 const char* name, const char* path,
49 cmDSPWriter* project, const cmTarget &t);
50 void WriteExternalProject(std::ostream& fout,
51 const char* name, const char* path,
52 const std::vector<std::string>& dependencies);
53 void WriteDSWFooter(std::ostream& fout);
54 cmMakefile* m_Makefile;
57 #endif