SourceCode/Bond/Servo/CGlass.cpp
@@ -12,6 +12,11 @@
   CGlass::~CGlass()
   {
   }
   void CGlass::reset()
   {
      CPath* pPath = m_pPath;
      while (pPath != nullptr) {
         CPath* pTemp = pPath->getNext();
@@ -20,7 +25,7 @@
      }
      m_pPath = nullptr;
      if (m_pBuddy != nullptr   && m_type == MaterialsType::G1) {
      if (m_pBuddy != nullptr) {
         m_pBuddy->release();
      }
   }
@@ -77,6 +82,20 @@
   CPath* CGlass::getPath()
   {
      return m_pPath;
   }
   CPath* CGlass::getPathWithSiteId(unsigned int nSiteId)
   {
      CPath* pTemp = m_pPath;
      while (pTemp != nullptr) {
         if (pTemp->getSiteID() == nSiteId) {
            return pTemp;
         }
         pTemp = pTemp->getNext();
      }
      return nullptr;
   }
   void CGlass::addPath(unsigned int nSiteId)
@@ -177,4 +196,20 @@
   {
      return m_strBuddyId;
   }
   void CGlass::processEnd(unsigned int nSiteId)
   {
      CPath* pPath = getPathWithSiteID(nSiteId);
      if (pPath != nullptr) {
         pPath->processEnd();
      }
   }
   BOOL CGlass::isProcessed(unsigned int nSiteId)
   {
      CPath* pPath = getPathWithSiteID(nSiteId);
      if (pPath == nullptr) return FALSE;
      return pPath->isProcessEnd();
   }
}