13#ifndef __xmlvisitors__
14#define __xmlvisitors__
18#include "tree_browser.h"
36 xmlendl() : fIndent(0) {}
44 void print(std::ostream& os)
const;
46std::ostream& operator<< (std::ostream& os,
const xmlendl& eol);
51 public visitor<S_processing_instruction>,
58 xmlvisitor(std::ostream& stream) : fOut(stream) {}
59 virtual ~xmlvisitor() {}
61 virtual void visitStart ( Sxmlelement& elt);
62 virtual void visitEnd ( Sxmlelement& elt);
63 virtual void visitStart ( S_comment& elt);
64 virtual void visitStart ( S_processing_instruction& elt);
Definition xmlvisitor.h:32
xmlendl & operator++(int)
increase the indentation
Definition xmlvisitor.h:40
xmlendl & operator--(int)
decrease the indentation
Definition xmlvisitor.h:42
void print(std::ostream &os) const
reset the indentation to none