added a default Node::process() routine which simply recurses
git-svn-id: svn://anubis/jtlc/trunk@16 f5bc74b8-7b62-4e90-9214-7121d538519f
This commit is contained in:
parent
9c26b9593c
commit
3efad6cc0f
@ -17,6 +17,16 @@ void Node::addChildren(refptr<Node> other)
|
||||
}
|
||||
}
|
||||
|
||||
void Node::process(FILE * out)
|
||||
{
|
||||
for (vector< refptr<Node> >::const_iterator it = m_children.begin();
|
||||
it != m_children.end();
|
||||
it++)
|
||||
{
|
||||
(*it)->process(out);
|
||||
}
|
||||
}
|
||||
|
||||
Node::~Node()
|
||||
{
|
||||
}
|
||||
|
@ -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<Node> > m_children;
|
||||
|
Loading…
x
Reference in New Issue
Block a user