2000-08-29 23:26:29 +04:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
Program: Insight Segmentation & Registration Toolkit
|
|
|
|
Module: $RCSfile$
|
|
|
|
Language: C++
|
|
|
|
Date: $Date$
|
|
|
|
Version: $Revision$
|
|
|
|
|
2002-01-21 23:30:43 +03:00
|
|
|
Copyright (c) 2002 Insight Consortium. All rights reserved.
|
|
|
|
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
|
2000-08-29 23:26:29 +04:00
|
|
|
|
2002-01-21 23:30:43 +03:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
PURPOSE. See the above copyright notices for more information.
|
2000-08-29 23:26:29 +04:00
|
|
|
|
|
|
|
=========================================================================*/
|
2001-06-06 21:48:13 +04:00
|
|
|
#ifndef cmDSWWriter_h
|
|
|
|
#define cmDSWWriter_h
|
2001-01-11 22:47:38 +03:00
|
|
|
|
2001-01-05 19:41:20 +03:00
|
|
|
#include "cmStandardIncludes.h"
|
2000-08-29 23:26:29 +04:00
|
|
|
#include "cmMakefile.h"
|
|
|
|
|
2001-06-06 21:48:13 +04:00
|
|
|
class cmDSPWriter;
|
2001-01-05 19:41:20 +03:00
|
|
|
class cmMSProjectGenerator;
|
2000-08-29 23:26:29 +04:00
|
|
|
|
2001-06-06 21:48:13 +04:00
|
|
|
/** \class cmDSWWriter
|
2001-01-11 22:47:38 +03:00
|
|
|
* \brief Write a Microsoft Visual C++ DSW (workspace) file.
|
|
|
|
*
|
2001-06-06 21:48:13 +04:00
|
|
|
* cmDSWWriter produces a Microsoft Visual C++ DSW (workspace) file.
|
2001-01-11 22:47:38 +03:00
|
|
|
*/
|
2001-06-06 21:48:13 +04:00
|
|
|
class cmDSWWriter
|
2000-08-29 23:26:29 +04:00
|
|
|
{
|
|
|
|
public:
|
2001-01-11 22:47:38 +03:00
|
|
|
/**
|
|
|
|
* Constructor.
|
|
|
|
*/
|
2001-06-06 21:48:13 +04:00
|
|
|
cmDSWWriter(cmMakefile*);
|
2001-01-11 22:47:38 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Generate the DSW workspace file.
|
|
|
|
*/
|
2000-08-29 23:26:29 +04:00
|
|
|
virtual void OutputDSWFile();
|
2001-01-11 22:47:38 +03:00
|
|
|
|
2000-08-29 23:26:29 +04:00
|
|
|
private:
|
|
|
|
void WriteDSWFile(std::ostream& fout);
|
|
|
|
void WriteDSWHeader(std::ostream& fout);
|
|
|
|
void WriteProject(std::ostream& fout,
|
2001-01-05 19:41:20 +03:00
|
|
|
const char* name, const char* path,
|
2001-06-06 21:48:13 +04:00
|
|
|
cmDSPWriter* project, const cmTarget &t);
|
2001-10-31 15:03:32 +03:00
|
|
|
void WriteExternalProject(std::ostream& fout,
|
|
|
|
const char* name, const char* path,
|
|
|
|
const std::vector<std::string>& dependencies);
|
2000-08-29 23:26:29 +04:00
|
|
|
void WriteDSWFooter(std::ostream& fout);
|
2001-01-05 19:41:20 +03:00
|
|
|
cmMakefile* m_Makefile;
|
2000-08-29 23:26:29 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|