mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
24 lines
604 B
C++
24 lines
604 B
C++
#ifndef ESCHER_MESSAGE_TREE_H
|
|
#define ESCHER_MESSAGE_TREE_H
|
|
|
|
#include <escher/i18n.h>
|
|
|
|
class MessageTree {
|
|
public:
|
|
constexpr MessageTree(I18n::Message label = (I18n::Message)0, const int numberOfChildren = 0) :
|
|
m_label(label),
|
|
m_numberOfChildren(numberOfChildren)
|
|
{
|
|
};
|
|
virtual const MessageTree * childAtIndex(int index) const = 0;
|
|
I18n::Message label() const { return m_label; }
|
|
int numberOfChildren() const { return m_numberOfChildren; }
|
|
bool isNull() const { return (m_label == (I18n::Message)0); }
|
|
protected:
|
|
I18n::Message m_label;
|
|
const int m_numberOfChildren;
|
|
};
|
|
|
|
#endif
|
|
|