summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.h
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-03-06 00:21:57 (GMT)
committerBrad King <brad.king@kitware.com>2018-03-07 13:51:30 (GMT)
commit59d8cfb85ec964c98ca2c1d6b262d5b26f484c88 (patch)
treefde6fed4dd9911efd5d34cf5be12e9529115b386 /Source/cmVisualStudio10TargetGenerator.h
parente02f4f066011d5b5c493e99f5e21ea0d64cf9aa2 (diff)
downloadCMake-59d8cfb85ec964c98ca2c1d6b262d5b26f484c88.zip
CMake-59d8cfb85ec964c98ca2c1d6b262d5b26f484c88.tar.gz
CMake-59d8cfb85ec964c98ca2c1d6b262d5b26f484c88.tar.bz2
cmVisualStudio10TargetGenerator: Use helpers for XML tags
Make the XML generating code smaller, more structured, and less error-prone. This is a step towards future XML refactoring.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.h')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.h b/Source/cmVisualStudio10TargetGenerator.h
index 124db4e..64121ed 100644
--- a/Source/cmVisualStudio10TargetGenerator.h
+++ b/Source/cmVisualStudio10TargetGenerator.h
@@ -55,6 +55,10 @@ private:
std::string ConvertPath(std::string const& path, bool forceRelative);
void WriteString(const char* line, int indentLevel);
+ void WriteElem(const char* tag, const char* val, int indentLevel);
+ void WriteElem(const char* tag, std::string const& val, int indentLevel);
+ void WriteElemEscapeXML(const char* tag, std::string const& val,
+ int indentLevel);
void WriteProjectConfigurations();
void WriteProjectConfigurationValues();
void WriteMSToolConfigurationValues(std::string const& config);