[apps] create an abstract class for node

Change-Id: I3a946df720c37ec2b087cf6131ea886da3e26c95
This commit is contained in:
Émilie Feral
2016-11-09 15:19:17 +01:00
parent e1dbfbe51c
commit ac0fdeeca8
6 changed files with 52 additions and 31 deletions

9
apps/tool_box_node.cpp Normal file
View File

@@ -0,0 +1,9 @@
#include "tool_box_node.h"
const char * ToolBoxNode::text() const {
return m_text;
}
const Node * ToolBoxNode::children(int index) const {
return &m_children[index];
}