Blame view

build6/epsilon-master/apps/code/script.h 547 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  #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;
    ErrorStatus writeContent(const char * data, size_t size);
  
    constexpr static size_t k_importationStatusSize = 1;
  };
  
  }
  
  #endif