-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolution.cpp
More file actions
63 lines (50 loc) · 1.78 KB
/
solution.cpp
File metadata and controls
63 lines (50 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* solution.cpp
* SolutionBuilder
*
* Created by Kyle Weicht on 2/1/2012.
* Copyright (c) 2012 Kyle Weicht. All rights reserved.
*/
#include "solution.h"
/* C headers */
/* C++ headers */
/* External headers */
/* Internal headers */
namespace
{
/*******************************************************************\
Internal Constants And types
\*******************************************************************/
/*******************************************************************\
Internal variables
\*******************************************************************/
/*******************************************************************\
Internal functions
\*******************************************************************/
} // anonymous namespace
/*******************************************************************\
External variables
\*******************************************************************/
/*******************************************************************\
External functions
\*******************************************************************/
void Generate2010Solution(const Solution& solution)
{
std::string solutionString;
// Header
solutionString += "Microsoft Visual Studio Solution File, Format Version 11.00\n# Visual Studio 2010\n";
// Projects
for(int ii=0; ii<solution.projects.size(); ++ii)
{
const Project& project = solution.projects[ii];
solutionString += "Project(\"";
solutionString += solution.guid;
solutionString += "\") = \"" + project.name + "\", \"" + project.projectFilename + "\", \"";
solutionString += project.guid;
solutionString += "\"\n";
solutionString += "EndProject\n";
}
// End
solutionString += "Global\n";
solutionString += "EndGlobal\n";
}