Files
Upsilon/apps/code/script.h
Léa Saviot 5de4b5cd67 [code] Each script has a name, stored in the accordeon buffer.
A script can now be imported in the console.
Moved all the MicroPython functions to python/port files.

Change-Id: I0a23e8cb20005719b800e81470e1c574c702c3b7
2017-11-17 11:59:50 +01:00

22 lines
337 B
C++

#ifndef CODE_SCRIPT_H
#define CODE_SCRIPT_H
#include <escher.h>
namespace Code {
class Script {
public:
Script(char * textBuffer = nullptr, size_t sizeOfBuffer = 0);
const char * readOnlyContent() const;
char * editableContent();
size_t bufferSize() const;
private:
size_t m_bufferSize;
char * m_textBuffer;
};
}
#endif