diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-14 11:09:35 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:50 -0400 |
commit | 687ee1a7c34f7484b715ac6d88b84a980247f6ac (patch) | |
tree | f2e80f612c4250645ac0c4ca5fb7a7da9051401e /src/node.h | |
parent | 59fc3d1bdb01b7195a0f9745fe9914ac31b8a3a5 (diff) | |
download | fork-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |