43 lines
485 B
C++
43 lines
485 B
C++
#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
|