MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / clearPluginTopics

Method clearPluginTopics

lib/RestApiTopicHandler/src/RestApiTopicHandler.cpp:544–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544void RestApiTopicHandler::clearPluginTopics()
545{
546 ListOfTopicMetaData::iterator topicMetaDataIt = m_listOfTopicMetaData.begin();
547
548 while (m_listOfTopicMetaData.end() != topicMetaDataIt)
549 {
550 TopicMetaData* topicMetaData = *topicMetaDataIt;
551
552 if (nullptr != topicMetaData)
553 {
554 (void)MyWebServer::getInstance().removeHandler(topicMetaData->webHandler);
555
556 topicMetaDataIt = m_listOfTopicMetaData.erase(topicMetaDataIt);
557
558 delete topicMetaData;
559 topicMetaData = nullptr;
560 }
561 else
562 {
563 ++topicMetaDataIt;
564 }
565 }
566}
567
568/******************************************************************************
569 * External Functions

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected