summaryrefslogtreecommitdiff
path: root/src/node.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-14 11:09:35 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:50 -0400
commit687ee1a7c34f7484b715ac6d88b84a980247f6ac (patch)
treef2e80f612c4250645ac0c4ca5fb7a7da9051401e /src/node.h
parent59fc3d1bdb01b7195a0f9745fe9914ac31b8a3a5 (diff)
downloadfork-ledger-687ee1a7c34f7484b715ac6d88b84a980247f6ac.tar.gz
fork-ledger-687ee1a7c34f7484b715ac6d88b84a980247f6ac.tar.bz2
fork-ledger-687ee1a7c34f7484b715ac6d88b84a980247f6ac.zip
document_builder_t is now working.
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node.h b/src/node.h
index 86b468e8..20e741c7 100644
--- a/src/node.h
+++ b/src/node.h
@@ -102,8 +102,9 @@ public:
return *polymorphic_downcast<const parent_node_t *>(this);
}
- virtual value_t to_value() const = 0;
+ virtual value_t to_value() const = 0;
virtual void print(std::ostream& out) const = 0;
+ virtual void print_attributes(std::ostream& out) const;
const char * name() const;
nameid_t name_id() const {
@@ -168,6 +169,7 @@ public:
T * create_child(nameid_t _name_id) {
T * child = new T(_name_id, document(), *this);
children.push_back(child);
+ return child;
}
void delete_child(node_t * child) {