mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[code] Python toolbox.
Change-Id: I4028b05c662cae04a5ac3af5021f3438bb22dcd0
This commit is contained in:
@@ -4,17 +4,19 @@
|
||||
namespace Code {
|
||||
|
||||
class ScriptTemplate {
|
||||
public:
|
||||
constexpr ScriptTemplate(const char * name, const char * content) : m_name(name), m_content(content) {}
|
||||
static const ScriptTemplate * Empty();
|
||||
static const ScriptTemplate * Factorial();
|
||||
static const ScriptTemplate * Fibonacci();
|
||||
static const ScriptTemplate * Mandelbrot();
|
||||
const char * name() const { return m_name; }
|
||||
const char * content() const { return m_content; }
|
||||
private:
|
||||
const char * m_name;
|
||||
const char * m_content;
|
||||
};}
|
||||
public:
|
||||
constexpr ScriptTemplate(const char * name, const char * content) : m_name(name), m_content(content) {}
|
||||
static const ScriptTemplate * Empty();
|
||||
static const ScriptTemplate * Factorial();
|
||||
static const ScriptTemplate * Fibonacci();
|
||||
static const ScriptTemplate * Mandelbrot();
|
||||
const char * name() const { return m_name; }
|
||||
const char * content() const { return m_content; }
|
||||
private:
|
||||
const char * m_name;
|
||||
const char * m_content;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user