summaryrefslogtreecommitdiffstats
path: root/source/Concept/Framework/io_module.h
blob: af5d61138e79bea4149a3c22492a81cdcca1080d (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
#ifndef _MODULE_H
#define _MODULE_H

#include "defines.h"

class Robot;

class IO_Module
{
public:
	IO_Module()
	{
		this->parent = NULL; 
	}

	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