#include "Comment.h" namespace xml { Comment::Comment() : Node(nodeComment) { } Comment::~Comment() { } std::istream& Comment::load(std::istream& in) { for ( char ch = in.get(); in; ch = in.get() ) { if ( ch == '-' && in.peek() == '-' ) { in.ignore(2); // ignore -> return in; } text += ch; } return in; } std::ostream& Comment::print(std::ostream& out, int depth) const { return Util::tabs(out, depth) << "\n"; } } // namespace xml