pretty print for templates

This commit is contained in:
Marc Wäckerlin
2009-04-09 13:32:15 +00:00
parent bbd3b9781d
commit 46065d3193
2 changed files with 61 additions and 0 deletions

View File

@@ -458,6 +458,10 @@ namespace xml {
public:
Factory(const Node& t) throw();
const Node& operator*() const throw();
friend std::ostream& operator<<(std::ostream& os,
const Factory& factory) throw();
static std::ostream& print(std::ostream& os, const Node& node,
unsigned int level=0) throw();
std::auto_ptr<Node> read(std::istream& is)
throw(wrong_end_tag, wrong_start_tag, tag_expected, type_mismatch,
second_slash_in_tag, character_after_slash,