mrDarker
2025-04-01 1bc4fecb9cc1641ed3ad0a2fda30766fc06fb13e
SourceCode/Bond/Servo/CBonder.cpp
@@ -1,8 +1,9 @@
#include "stdafx.h"
#include "CBonder.h"
namespace SERVO {
   CBonder::CBonder()
   CBonder::CBonder() : CEquipment()
   {
   }
@@ -28,6 +29,15 @@
      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);
@@ -37,4 +47,24 @@
   {
      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();
   }
}