Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

bool CNItem::removeNode ( const QString &  name  )  [inherited]

Removes a child node. You should use this function if you want to remove any nodes during the lifetime of the CNItem.

Definition at line 267 of file cnitem.cpp.

Referenced by PICComponent::initPackage(), ResistorDIP::initPins(), Multiplexer::initPins(), Demultiplexer::initPins(), DAC::initPins(), ADC::initPins(), and ECRotoSwitch::setUpSwitches().

{
      NodeInfoMap::iterator it = m_nodeMap.find(name);
      if ( it == m_nodeMap.end() ) {
            return false;
      }
      it.data().node->removeNode();
      p_icnDocument->flushDeleteList();
      m_nodeMap.erase(it);
      return true;
}


Generated by  Doxygen 1.6.0   Back to index