Files
Upsilon/apps/tool_box_node.h
Émilie Feral ac0fdeeca8 [apps] create an abstract class for node
Change-Id: I3a946df720c37ec2b087cf6131ea886da3e26c95
2016-11-10 17:26:07 +01:00

23 lines
516 B
C++

#ifndef APPS_TOOL_BOX_NODE_H
#define APPS_TOOL_BOX_NODE_H
#include "node.h"
class ToolBoxNode : public Node {
public:
constexpr ToolBoxNode(const char * label = nullptr, const char * text = nullptr, const ToolBoxNode * children = nullptr, int numberOfChildren = 0) :
Node(label, numberOfChildren),
m_children(children),
m_text(text)
{
};
const Node * children(int index) const override;
const char * text() const;
private:
const ToolBoxNode * m_children;
const char * m_text;
};
#endif