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

#include "defines.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