Files
Upsilon/apps/code/script.h
Émilie Feral 79740e72b0 [code] Avoid dynamic allocation and useless string copy by keeping the
importation status flag in the areaBuffer
2018-09-11 17:03:04 +02:00

26 lines
487 B
C++

#ifndef CODE_SCRIPT_H
#define CODE_SCRIPT_H
#include <ion.h>
namespace Code {
/* Record : | Total Size | Name | Body |
* Script: | AutoImportationStatus | Content |*/
class Script : public Ion::Storage::Record {
public:
Script(Ion::Storage::Record r);
bool importationStatus() const;
void toggleImportationStatus();
const char * readContent() const;
constexpr static size_t k_importationStatusSize = 1;
};
}
#endif