mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 06:10:31 +01:00
[apps/code] Add a model program
Change-Id: I79b74f1f245d98d1ce02a590ee25de2c4fbb3c59
This commit is contained in:
22
apps/code/program.h
Normal file
22
apps/code/program.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef CODE_PROGRAM_H
|
||||
#define CODE_PROGRAM_H
|
||||
|
||||
#include <escher.h>
|
||||
|
||||
namespace Code {
|
||||
|
||||
class Program {
|
||||
public:
|
||||
Program();
|
||||
const char * readOnlyContent() const;
|
||||
char * editableContent();
|
||||
void setContent(const char * program);
|
||||
private:
|
||||
constexpr static int k_bufferSize = 1024;
|
||||
char m_buffer[k_bufferSize];
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user