X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FEvents%2FEvents_Loop.cpp;h=9447c376b97c6a4f017be8206e8c13f41325fed6;hb=a28a6cccd566a266f6fe3a372d6059f660851074;hp=eadae7283f44541edb18b0a29c53404ef304d891;hpb=93152527420704cf35e22b11d1de198e1710bd90;p=modules%2Fshaper.git diff --git a/src/Events/Events_Loop.cpp b/src/Events/Events_Loop.cpp index eadae7283..9447c376b 100644 --- a/src/Events/Events_Loop.cpp +++ b/src/Events/Events_Loop.cpp @@ -37,24 +37,24 @@ Events_ID Events_Loop::eventByName(const char* theName) return Events_ID(aResult); } -void Events_Loop::send(const boost::shared_ptr& theMessage, bool isGroup) +void Events_Loop::send(const std::shared_ptr& theMessage, bool isGroup) { if (myImmediateListeners.find(theMessage->eventID().eventText()) != myImmediateListeners.end()) { myImmediateListeners[theMessage->eventID().eventText()]->processEvent(theMessage); } // if it is grouped message, just accumulate it if (isGroup && myFlushed.find(theMessage->eventID().myID) == myFlushed.end()) { - boost::shared_ptr aGroup = - boost::dynamic_pointer_cast(theMessage); + std::shared_ptr aGroup = + std::dynamic_pointer_cast(theMessage); if (aGroup) { - std::map >::iterator aMyGroup = myGroups.find( + std::map >::iterator aMyGroup = myGroups.find( aGroup->eventID().eventText()); if (aMyGroup == myGroups.end()) { // create a new group of messages for accumulation myGroups[aGroup->eventID().eventText()] = aGroup->newEmpty(); aMyGroup = myGroups.find(aGroup->eventID().eventText()); } - boost::shared_ptr aStored = - boost::dynamic_pointer_cast(aMyGroup->second); + std::shared_ptr aStored = + std::dynamic_pointer_cast(aMyGroup->second); aStored->Join(aGroup); return; } @@ -115,11 +115,11 @@ void Events_Loop::flush(const Events_ID& theID) { if (!myFlushActive) return; - std::map>::iterator aMyGroup = + std::map>::iterator aMyGroup = myGroups.find(theID.eventText()); if (aMyGroup != myGroups.end()) { // really sends myFlushed.insert(theID.myID); - boost::shared_ptr aGroup = aMyGroup->second; + std::shared_ptr aGroup = aMyGroup->second; myGroups.erase(aMyGroup); send(aGroup, false); myFlushed.erase(myFlushed.find(theID.myID)); @@ -133,7 +133,7 @@ void Events_Loop::activateFlushes(const bool theActivate) void Events_Loop::clear(const Events_ID& theID) { - std::map>::iterator aMyGroup = + std::map>::iterator aMyGroup = myGroups.find(theID.eventText()); if (aMyGroup != myGroups.end()) { // really sends myGroups.erase(aMyGroup);