mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
24 lines
456 B
C++
24 lines
456 B
C++
#ifndef APPS_NODE_H
|
|
#define APPS_NODE_H
|
|
|
|
#include "i18n.h"
|
|
|
|
class Node {
|
|
public:
|
|
constexpr Node(I18n::Message label = I18n::Message::Default, int numberOfChildren = 0) :
|
|
m_label(label),
|
|
m_numberOfChildren(numberOfChildren)
|
|
{
|
|
};
|
|
virtual const Node * children(int index) const = 0;
|
|
I18n::Message label() const;
|
|
int numberOfChildren() const;
|
|
bool isNull() const;
|
|
protected:
|
|
I18n::Message m_label;
|
|
int m_numberOfChildren;
|
|
};
|
|
|
|
#endif
|
|
|