Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Code::ScriptStore Class Reference

#include <script_store.h>

Inheritance diagram for Code::ScriptStore:
MicroPython::ScriptProvider

Public Types

typedef void(* ScanCallback) (void *context, const char *p, int n)
 

Public Member Functions

 ScriptStore ()
 
Script scriptAtIndex (int index)
 
Script scriptNamed (const char *name)
 
int numberOfScripts ()
 
Ion::Storage::Record::ErrorStatus addNewScript ()
 
void deleteAllScripts ()
 
bool isFull ()
 
void scanScriptsForFunctionsAndVariables (void *context, ScanCallback storeFunction, ScanCallback storeVariable)
 
const char * contentOfScript (const char *name) override
 
Ion::Storage::Record::ErrorStatus addScriptFromTemplate (const ScriptTemplate *scriptTemplate)
 

Static Public Attributes

static constexpr char k_scriptExtension [] = ".py"
 
static constexpr char k_defaultScriptName [] = "script.py"
 
static constexpr int k_maxNumberOfScripts = 8
 

Detailed Description

Definition at line 14 of file script_store.h.

Member Typedef Documentation

◆ ScanCallback

typedef void(* Code::ScriptStore::ScanCallback) (void *context, const char *p, int n)

Definition at line 37 of file script_store.h.

Constructor & Destructor Documentation

◆ ScriptStore()

Code::ScriptStore::ScriptStore ( )

Definition at line 15 of file script_store.cpp.

Member Function Documentation

◆ addNewScript()

Ion::Storage::Record::ErrorStatus Code::ScriptStore::addNewScript ( )
inline

Definition at line 30 of file script_store.h.

◆ addScriptFromTemplate()

Script::ErrorStatus Code::ScriptStore::addScriptFromTemplate ( const ScriptTemplate scriptTemplate)

Definition at line 122 of file script_store.cpp.

◆ contentOfScript()

const char * Code::ScriptStore::contentOfScript ( const char *  name)
overridevirtual

Implements MicroPython::ScriptProvider.

Definition at line 114 of file script_store.cpp.

◆ deleteAllScripts()

void Code::ScriptStore::deleteAllScripts ( )

Definition at line 22 of file script_store.cpp.

◆ isFull()

bool Code::ScriptStore::isFull ( )

Definition at line 28 of file script_store.cpp.

◆ numberOfScripts()

int Code::ScriptStore::numberOfScripts ( )
inline

Definition at line 27 of file script_store.h.

◆ scanScriptsForFunctionsAndVariables()

void Code::ScriptStore::scanScriptsForFunctionsAndVariables ( void *  context,
ScanCallback  storeFunction,
ScanCallback  storeVariable 
)

Definition at line 32 of file script_store.cpp.

◆ scriptAtIndex()

Script Code::ScriptStore::scriptAtIndex ( int  index)
inline

Definition at line 21 of file script_store.h.

◆ scriptNamed()

Script Code::ScriptStore::scriptNamed ( const char *  name)
inline

Definition at line 24 of file script_store.h.

Member Data Documentation

◆ k_defaultScriptName

constexpr char Code::ScriptStore::k_defaultScriptName = "script.py"
static

Definition at line 17 of file script_store.h.

◆ k_maxNumberOfScripts

constexpr int Code::ScriptStore::k_maxNumberOfScripts = 8
static

Definition at line 18 of file script_store.h.

◆ k_scriptExtension

constexpr char Code::ScriptStore::k_scriptExtension = ".py"
static

Definition at line 16 of file script_store.h.


The documentation for this class was generated from the following files: