Numworks Epsilon  1.4.1
Graphing Calculator Operating System
script_template.h
Go to the documentation of this file.
1 #ifndef CODE_SCRIPT_TEMPLATE_H
2 #define CODE_SCRIPT_TEMPLATE_H
3 
4 namespace Code {
5 
7 public:
8  constexpr ScriptTemplate(const char * name, const char * content) : m_name(name), m_content(content) {}
9  static const ScriptTemplate * Empty();
10  static const ScriptTemplate * Factorial();
11  static const ScriptTemplate * Fibonacci();
12  static const ScriptTemplate * Mandelbrot();
13  static const ScriptTemplate * Polynomial();
14  const char * name() const { return m_name; }
15  const char * content() const { return m_content; }
16 private:
17  const char * m_name;
18  const char * m_content;
19 };
20 
21 }
22 
23 #endif
static const ScriptTemplate * Empty()
constexpr ScriptTemplate(const char *name, const char *content)
Definition: app.cpp:7
static const ScriptTemplate * Mandelbrot()
static const ScriptTemplate * Fibonacci()
const char * content() const
const char * name() const
static const ScriptTemplate * Factorial()
static const ScriptTemplate * Polynomial()