2017-12-18 21:24:21 +01:00
|
|
|
#ifndef SOURCE_PART_H
|
|
|
|
#define SOURCE_PART_H
|
|
|
|
|
2017-11-17 22:10:36 +01:00
|
|
|
#include <stdint.h>
|
2017-12-18 21:24:21 +01:00
|
|
|
#include "../functions/AbstractionLayers/Layer1/AbstractionLayer_1_Properties.h"
|
2017-11-17 22:10:36 +01:00
|
|
|
|
|
|
|
class Part
|
|
|
|
{
|
|
|
|
public:
|
2017-12-18 21:24:21 +01:00
|
|
|
Part() : m_partID(0) {}
|
2017-11-17 22:10:36 +01:00
|
|
|
~Part() {}
|
|
|
|
|
2017-12-18 21:24:21 +01:00
|
|
|
int32_t GetPartID () const
|
|
|
|
{
|
|
|
|
return m_partID;
|
|
|
|
}
|
2017-11-17 22:10:36 +01:00
|
|
|
|
2017-12-18 21:24:21 +01:00
|
|
|
void SetPartID(const int32_t partID)
|
|
|
|
{
|
|
|
|
m_partID = partID;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint8_t GetNumOfRotations () const
|
|
|
|
{
|
|
|
|
return m_numOfRotations;
|
|
|
|
}
|
2017-12-06 16:25:13 +01:00
|
|
|
|
2017-12-18 21:24:21 +01:00
|
|
|
void SetNumOfRotations(const uint8_t numOfRotations)
|
|
|
|
{
|
|
|
|
m_numOfRotations = numOfRotations;
|
|
|
|
}
|
|
|
|
|
|
|
|
AbstractionLayer_1_Properties m_test1;
|
|
|
|
|
|
|
|
private:
|
|
|
|
int32_t m_partID;
|
|
|
|
uint8_t m_numOfRotations;
|
|
|
|
};
|
2017-12-06 16:25:13 +01:00
|
|
|
|
2017-12-18 21:24:21 +01:00
|
|
|
#endif //SOURCE_PART_H
|