[apps/code] Add a model program

Change-Id: I79b74f1f245d98d1ce02a590ee25de2c4fbb3c59
This commit is contained in:
Émilie Feral
2017-08-10 11:05:00 +02:00
parent 587406bccd
commit eec8c7f1ce
5 changed files with 77 additions and 3 deletions

22
apps/code/program.h Normal file
View 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