diff options
Diffstat (limited to 'Source/CPack/WiX/cmWIXSourceWriter.h')
-rw-r--r-- | Source/CPack/WiX/cmWIXSourceWriter.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Source/CPack/WiX/cmWIXSourceWriter.h b/Source/CPack/WiX/cmWIXSourceWriter.h index 1dafc1f..894ad78 100644 --- a/Source/CPack/WiX/cmWIXSourceWriter.h +++ b/Source/CPack/WiX/cmWIXSourceWriter.h @@ -15,7 +15,7 @@ #include <vector> #include <string> -#include <fstream> +#include <cmsys/FStream.hxx> #include <CPack/cmCPackLog.h> @@ -32,7 +32,7 @@ public: void BeginElement(const std::string& name); - void EndElement(); + void EndElement(const std::string& name); void AddProcessingInstruction( const std::string& target, const std::string& content); @@ -40,6 +40,9 @@ public: void AddAttribute( const std::string& key, const std::string& value); + void AddAttributeUnlessEmpty( + const std::string& key, const std::string& value); + static std::string WindowsCodepageToUtf8(const std::string& value); private: @@ -57,11 +60,13 @@ private: cmCPackLog* Logger; - std::ofstream file; + cmsys::ofstream File; + + State State; - State state; + std::vector<std::string> Elements; - std::vector<std::string> elements; + std::string SourceFilename; }; #endif |