-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtest_db_module.h
36 lines (27 loc) · 903 Bytes
/
test_db_module.h
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
27
28
29
30
31
32
33
34
35
36
#ifndef TEST_DB_MODULE_H
#define TEST_DB_MODULE_H
class TestDBModule : public DBModule {
colorPrintfModuleVA_t *colorPrintf_p;
ModuleInfo *mi;
public:
TestDBModule();
// init
const struct ModuleInfo& getModuleInfo();
void prepare(colorPrintfModule_t *colorPrintf_p, colorPrintfModuleVA_t *colorPrintfVA_p);
// compiler only
void *writePC(unsigned int *buffer_length);
// intepreter - devices
int init();
void final();
// intepreter - program & lib
void readPC(void *buffer, unsigned int buffer_length);
// intepreter - program
int startProgram(int uniq_index);
RobotData **makeChoise(RobotData** robots_data, unsigned int count_robots);
int endProgram(int uniq_index);
// destructor
void destroy();
~TestDBModule() {}
void colorPrintf(ConsoleColor colors, const char *mask, ...);
};
#endif /* TEST_DB_MODULE_H */