Numworks Epsilon  1.4.1
Graphing Calculator Operating System
message_tree.h
Go to the documentation of this file.
1 #ifndef ESCHER_MESSAGE_TREE_H
2 #define ESCHER_MESSAGE_TREE_H
3 
4 #include <escher/i18n.h>
5 
6 class MessageTree {
7 public:
8  constexpr MessageTree(I18n::Message label = (I18n::Message)0, int numberOfChildren = 0) :
9  m_label(label),
11  {
12  };
13  virtual const MessageTree * children(int index) const = 0;
14  I18n::Message label() const;
15  int numberOfChildren() const;
16  bool isNull() const;
17 protected:
18  I18n::Message m_label;
20 };
21 
22 #endif
23 
int numberOfChildren() const
Definition: message_tree.cpp:3
I18n::Message label() const
Definition: message_tree.cpp:7
bool isNull() const
int m_numberOfChildren
Definition: message_tree.h:19
I18n::Message m_label
Definition: message_tree.h:18
constexpr MessageTree(I18n::Message label=(I18n::Message) 0, int numberOfChildren=0)
Definition: message_tree.h:8
virtual const MessageTree * children(int index) const =0