1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

* Use a proper namespace.

* Optimise header file usage a bit.
* Compile the parser as C++.
This commit is contained in:
Eelco Dolstra 2006-09-04 21:06:23 +00:00
parent aab8812732
commit 75068e7d75
61 changed files with 650 additions and 268 deletions

View file

@ -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 */