msvc_sln_generator.hpp
来自「ncbi源码」· HPP 代码 · 共 174 行
HPP
174 行
/* * =========================================================================== * PRODUCTION $Log: msvc_sln_generator.hpp,v $ * PRODUCTION Revision 1000.1 2004/06/16 17:05:08 gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.12 * PRODUCTION * =========================================================================== */#ifndef PROJECT_TREE_BUILDER__MSVC_SLN_GENERATOR__HPP#define PROJECT_TREE_BUILDER__MSVC_SLN_GENERATOR__HPP/* $Id: msvc_sln_generator.hpp,v 1000.1 2004/06/16 17:05:08 gouriano Exp $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Work" under the * terms of the United States Copyright Act. It was written as part of * the author's official duties as a United States Government employee and * thus cannot be copyrighted. This software/database is freely available * to the public for use. The National Library of Medicine and the U.S. * Government have not placed any restriction on its use or reproduction. * * Although all reasonable efforts have been taken to ensure the accuracy * and reliability of the software and data, the NLM and the U.S. * Government do not and cannot warrant the performance or results that * may be obtained by using this software or data. The NLM and the U.S. * Government disclaim all warranties, express or implied, including * warranties of performance, merchantability or fitness for any particular * purpose. * * Please cite the author in any work or product based on this material. * * =========================================================================== * * Author: Viatcheslav Gorelenkov * */#include <app/project_tree_builder/msvc_project_context.hpp>#include <app/project_tree_builder/msvc_prj_utils.hpp>#include <corelib/ncbienv.hpp>BEGIN_NCBI_SCOPE/////////////////////////////////////////////////////////////////////////////////// CMsvcSolutionGenerator --////// Generator of MSVC 7.10 solution file.////// Generates solution file from projects set.class CMsvcSolutionGenerator{public: CMsvcSolutionGenerator(const list<SConfigInfo>& configs); ~CMsvcSolutionGenerator(void); void AddProject(const CProjItem& project); void AddUtilityProject (const string& full_path); void AddBuildAllProject(const string& full_path); void SaveSolution(const string& file_path); private: list<SConfigInfo> m_Configs; string m_SolutionDir; // Basename / GUID typedef pair<string, string> TUtilityProject; // Utility projects list<TUtilityProject> m_UtilityProjects; // BuildAll utility project TUtilityProject m_BuildAllProject; class CPrjContext { public: CPrjContext(void); CPrjContext(const CPrjContext& context); CPrjContext(const CProjItem& project); CPrjContext& operator= (const CPrjContext& context); ~CPrjContext(void); CProjItem m_Project; string m_GUID; string m_ProjectName; string m_ProjectPath; private: void Clear(void); void SetFrom(const CPrjContext& project_context); }; // Real projects typedef map<CProjKey, CPrjContext> TProjects; TProjects m_Projects; // Writers: void WriteProjectAndSection(CNcbiOfstream& ofs, const CPrjContext& project); void WriteUtilityProject (const TUtilityProject& project, CNcbiOfstream& ofs); void WriteBuildAllProject (const TUtilityProject& project, CNcbiOfstream& ofs); void WriteProjectConfigurations(CNcbiOfstream& ofs, const CPrjContext& project); void WriteUtilityProjectConfiguration(const TUtilityProject& project, CNcbiOfstream& ofs); // Prohibited to: CMsvcSolutionGenerator(void); CMsvcSolutionGenerator(const CMsvcSolutionGenerator&); CMsvcSolutionGenerator& operator= (const CMsvcSolutionGenerator&);};END_NCBI_SCOPE/* * =========================================================================== * $Log: msvc_sln_generator.hpp,v $ * Revision 1000.1 2004/06/16 17:05:08 gouriano * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.12 * * Revision 1.12 2004/06/10 15:12:55 gorelenk * Added newline at the file end to avoid GCC warning. * * Revision 1.11 2004/03/18 17:41:03 gorelenk * Aligned classes member-functions parameters inside declarations. * * Revision 1.10 2004/02/25 19:45:38 gorelenk * +BuildAll utility project. * * Revision 1.9 2004/02/20 22:54:46 gorelenk * Added analysis of ASN projects depends. * * Revision 1.8 2004/02/12 23:13:49 gorelenk * Declared function for MSVC utility project creation. * * Revision 1.7 2004/02/12 17:46:35 gorelenk * Re-designed addition of utility projects. * * Revision 1.6 2004/02/12 16:22:40 gorelenk * Changed generation of command line for custom build info. * * Revision 1.5 2004/01/26 19:25:42 gorelenk * += MSVC meta makefile support * += MSVC project makefile support * * Revision 1.4 2004/01/22 17:57:09 gorelenk * first version * * =========================================================================== */#endif //PROJECT_TREE_BUILDER__MSVC_SLN_GENERATOR__HPP
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?