summaryrefslogtreecommitdiff
path: root/src/xml.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-07 10:25:15 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:39 -0400
commita07e20c14e5ba3597a855276ad9a195343aee42f (patch)
tree2148a9a8e3038993cca6865a025a582e95f9caac /src/xml.h
parent8aada79971b772fda92131053fa03021cfbc625a (diff)
downloadledger-a07e20c14e5ba3597a855276ad9a195343aee42f.tar.gz
ledger-a07e20c14e5ba3597a855276ad9a195343aee42f.tar.bz2
ledger-a07e20c14e5ba3597a855276ad9a195343aee42f.zip
Changed write methods to print.
Diffstat (limited to 'src/xml.h')
-rw-r--r--src/xml.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xml.h b/src/xml.h
index 87f2c802..7b9c23aa 100644
--- a/src/xml.h
+++ b/src/xml.h
@@ -89,7 +89,7 @@ public:
throw_(conversion_error, "Cannot convert node to a value");
}
- virtual void write(std::ostream& out, int depth = 0) const = 0;
+ virtual void print(std::ostream& out, int depth = 0) const = 0;
private:
node_t(const node_t&);
@@ -124,7 +124,7 @@ public:
}
virtual void add_child(node_t * node);
- void write(std::ostream& out, int depth = 0) const;
+ void print(std::ostream& out, int depth = 0) const;
private:
parent_node_t(const parent_node_t&);
@@ -159,7 +159,7 @@ public:
return text();
}
- void write(std::ostream& out, int depth = 0) const;
+ void print(std::ostream& out, int depth = 0) const;
private:
terminal_node_t(const node_t&);
@@ -218,7 +218,7 @@ private:
static int lookup_builtin_id(const string& name);
const char * lookup_name(int id) const;
- void write(std::ostream& out) const;
+ void print(std::ostream& out) const;
#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE)
class parser_t