blob: 383eefb511f099d38ccd1b5f8f91cd2149c22158 (
plain)
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
37
38
39
40
41
42
43
44
45
|
#ifndef _MODULE_H
#define _MODULE_H
#include "../defines.h"
#include "../tools.h"
class Robot;
class IO_Module
{
public:
IO_Module()
{
this->parent = NULL;
this->moduleId = 0;
}
IO_Module(uint32 moduleId)
{
this->parent = NULL;
this->moduleId = moduleId;
}
protected:
Robot* parent;
uint32 moduleId;
public:
Robot* GetParent()
{
return parent;
}
void SetParent(Robot* newParent)
{
parent = newParent;
}
uint32 GetId()
{
return moduleId;
}
};
#endif
|