diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-09-04T21·06+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-09-04T21·06+0000 |
commit | 75068e7d753cf6cbe45a4bf294000dca9bd41d8b (patch) | |
tree | c6274cc10caab08349b5585206034f41ca4a575f /src/libutil/xml-writer.hh | |
parent | aab88127321344d5818d823bff515d127108d058 (diff) |
* Use a proper namespace.
* Optimise header file usage a bit. * Compile the parser as C++.
Diffstat (limited to 'src/libutil/xml-writer.hh')
-rw-r--r-- | src/libutil/xml-writer.hh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/libutil/xml-writer.hh b/src/libutil/xml-writer.hh index 8c203a3486f0..e5cc5f8c5417 100644 --- a/src/libutil/xml-writer.hh +++ b/src/libutil/xml-writer.hh @@ -6,7 +6,12 @@ #include <list> #include <map> -using namespace std; + +namespace nix { + +using std::string; +using std::map; +using std::list; typedef map<string, string> XMLAttrs; @@ -16,7 +21,7 @@ class XMLWriter { private: - ostream & output; + std::ostream & output; bool indent; bool closed; @@ -25,7 +30,7 @@ private: public: - XMLWriter(bool indent, ostream & output); + XMLWriter(bool indent, std::ostream & output); ~XMLWriter(); void close(); @@ -63,5 +68,8 @@ public: } }; + +} + #endif /* !__XML_WRITER_H */ |