diff --git a/nodes/Node.cc b/nodes/Node.cc index 9ea6bd3..6999caf 100644 --- a/nodes/Node.cc +++ b/nodes/Node.cc @@ -17,6 +17,16 @@ void Node::addChildren(refptr other) } } +void Node::process(FILE * out) +{ + for (vector< refptr >::const_iterator it = m_children.begin(); + it != m_children.end(); + it++) + { + (*it)->process(out); + } +} + Node::~Node() { } diff --git a/nodes/Node.h b/nodes/Node.h index c51f0a4..87c5a14 100644 --- a/nodes/Node.h +++ b/nodes/Node.h @@ -19,7 +19,7 @@ class Node virtual double getDouble() { return m_double; } virtual uint64_t getInteger() { return m_integer; } virtual std::string getString() { return m_string; } - virtual void process(FILE * out) { } + virtual void process(FILE * out); protected: std::vector< refptr > m_children;