summaryrefslogtreecommitdiffstats
path: root/Source/cmXMLWriter.h
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-05-09 16:34:36 (GMT)
committerBrad King <brad.king@kitware.com>2018-05-11 15:33:13 (GMT)
commitff13b0cdc2ac2db7f140aefb46feb6a31e4d6c96 (patch)
tree377b4b9078455c51a61534fae89bc5a1da2e1f68 /Source/cmXMLWriter.h
parentd44441a365e4d4e4188ed2fa6b1f9ccda0568846 (diff)
downloadCMake-ff13b0cdc2ac2db7f140aefb46feb6a31e4d6c96.zip
CMake-ff13b0cdc2ac2db7f140aefb46feb6a31e4d6c96.tar.gz
CMake-ff13b0cdc2ac2db7f140aefb46feb6a31e4d6c96.tar.bz2
cmCTestLaunch: use cmXMLElement for XML generation
class `cmXMLElement` enhanced with more members; its use demonstrated
Diffstat (limited to 'Source/cmXMLWriter.h')
-rw-r--r--Source/cmXMLWriter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmXMLWriter.h b/Source/cmXMLWriter.h
index ff0df18..d124907 100644
--- a/Source/cmXMLWriter.h
+++ b/Source/cmXMLWriter.h
@@ -181,6 +181,12 @@ public:
{
xmlwr.Content(content);
}
+ template <typename T>
+ void Element(std::string const& name, T const& value)
+ {
+ xmlwr.Element(name, value);
+ }
+ void Comment(const char* comment) { xmlwr.Comment(comment); }
private:
cmXMLWriter& xmlwr;