#include "stdafx.h"
|
#include "CBonder.h"
|
|
|
namespace SERVO {
|
CBonder::CBonder() : CEquipment()
|
{
|
|
}
|
|
CBonder::~CBonder()
|
{
|
|
}
|
|
const char* CBonder::getClassName()
|
{
|
static char* pszName = "CBonder";
|
return pszName;
|
}
|
|
void CBonder::init()
|
{
|
CEquipment::init();
|
}
|
|
void CBonder::term()
|
{
|
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);
|
}
|
|
void CBonder::serialize(CArchive& ar)
|
{
|
CEquipment::serialize(ar);
|
}
|
|
void CBonder::getAttributeVector(CAttributeVector& attrubutes)
|
{
|
__super::getAttributeVector(attrubutes);
|
}
|
|
int CBonder::recvIntent(CPin* pPin, CIntent* pIntent)
|
{
|
return __super::recvIntent(pPin, pIntent);
|
}
|
|
BOOL CBonder::glassWillArrive(CGlass* pGlass)
|
{
|
BOOL bRet = __super::glassWillArrive(pGlass);
|
if (!bRet) {
|
return FALSE;
|
}
|
|
return m_glassList.empty();
|
}
|
}
|