| | |
| | | #include "stdafx.h" |
| | | #include "CBonder.h" |
| | | |
| | | |
| | | namespace SERVO { |
| | | CBonder::CBonder() |
| | | CBonder::CBonder() : CEquipment() |
| | | { |
| | | |
| | | } |
| | |
| | | CEquipment::term(); |
| | | } |
| | | |
| | | // 必须要实现的虚函数,在此初始化Pin列表 |
| | | void CBonder::initPins() |
| | | { |
| | | // 加入Pin初始化代码 |
| | | LOGI("<CBonder>initPins"); |
| | | addPin(SERVO::PinType::INPUT, _T("In")); |
| | | addPin(SERVO::PinType::OUTPUT, _T("Out")); |
| | | } |
| | | |
| | | void CBonder::onTimer(UINT nTimerid) |
| | | { |
| | | CEquipment::onTimer(nTimerid); |
| | |
| | | { |
| | | CEquipment::serialize(ar); |
| | | } |
| | | |
| | | void CBonder::getAttributeVector(CAttributeVector& attrubutes) |
| | | { |
| | | __super::getAttributeVector(attrubutes); |
| | | } |
| | | |
| | | int CBonder::recvIntent(CPin* pPin, CIntent* pIntent) |
| | | { |
| | | return __super::recvIntent(pPin, pIntent); |
| | | } |
| | | } |