1919*/
2020#include " Solution.h"
2121
22- const wstring Solution::solutionFolder (const Project &project)
22+ const wstring Solution::solutionDirectory (const Project &project)
2323{
2424 switch (project.type ())
2525 {
@@ -52,12 +52,11 @@ void Solution::write(const Options &options,const vector<Project> &projects)
5252 if (!file)
5353 throwException (L" Failed to open file: " + solutionFileName);
5454
55- set<wstring> solutionFolders;
5655 file << L" Microsoft Visual Studio Solution File, Format Version 12.00" << endl;
5756 writeVisualStudioVersion (file,options);
5857 writeProjects (file,projects);
59- writeConfigFolder (file,options);
60- writeProjectFolders (file,projects);
58+ writeConfigDirectory (file,options);
59+ writeProjectDirectories (file,projects);
6160 file << L" Global" << endl;
6261 file << L" \t GlobalSection(SolutionConfigurationPlatforms) = preSolution" << endl;
6362 file << L" \t\t Debug|" << options.architectureName () << " = Debug|" << options.architectureName () << endl;
@@ -68,7 +67,7 @@ void Solution::write(const Options &options,const vector<Project> &projects)
6867 file << L" EndGlobal" << endl;
6968}
7069
71- void Solution::writeConfigFolder (wofstream &file,const Options& options)
70+ void Solution::writeConfigDirectory (wofstream &file,const Options& options)
7271{
7372 file << " Project(\" {2150E333-8FDC-42A3-9474-1A3956D46DE8}\" ) = \" Config\" , \" Config\" , \" {" << createGuid (L" Config" ) << " }\" " << endl;
7473 file << " \t ProjectSection(SolutionItems) = preProject" << endl;
@@ -87,15 +86,15 @@ void Solution::writeConfigFolder(wofstream &file,const Options& options)
8786 file << " EndProject" << endl;
8887}
8988
90- void Solution::writeProjectFolders (wofstream &file,const vector<Project>& projects)
89+ void Solution::writeProjectDirectories (wofstream &file,const vector<Project>& projects)
9190{
92- set<wstring> solutionFolders ;
91+ set<wstring> solutionDirectories ;
9392 for (const auto & project : projects)
94- solutionFolders .insert (solutionFolder (project));
93+ solutionDirectories .insert (solutionDirectory (project));
9594
96- for (const auto & solutionFolder : solutionFolders )
95+ for (const auto & solutionDirectory : solutionDirectories )
9796 {
98- file << " Project(\" {2150E333-8FDC-42A3-9474-1A3956D46DE8}\" ) = \" " << solutionFolder << " \" , \" " << solutionFolder << " \" , \" {" << createGuid (solutionFolder ) << " }\" " << endl;
97+ file << " Project(\" {2150E333-8FDC-42A3-9474-1A3956D46DE8}\" ) = \" " << solutionDirectory << " \" , \" " << solutionDirectory << " \" , \" {" << createGuid (solutionDirectory ) << " }\" " << endl;
9998 file << " EndProject" << endl;
10099 }
101100}
@@ -127,7 +126,7 @@ void Solution::writeProjectsNesting(wofstream& file,const vector<Project>& proje
127126 file << L" \t GlobalSection(NestedProjects) = preSolution" << endl;
128127 for (const auto & project : projects)
129128 {
130- file << L" \t\t {" << project.guid () << L" } = {" << createGuid (solutionFolder (project)) << L" }" << endl;
129+ file << L" \t\t {" << project.guid () << L" } = {" << createGuid (solutionDirectory (project)) << L" }" << endl;
131130 }
132131 file << L" \t EndGlobalSection" << endl;
133132}
0 commit comments