rendered paste bodyPointer<ActiveMQDestination> StompHelper::convertDestination( const std::string& destination ) { if( destination == "" ) { return Pointer<ActiveMQDestination>(); } int type = 0; std::string dest = ""; if( destination.find( "/queue/" ) == 0 ) { dest = destination.substr( 7 ); type = cms::Destination::QUEUE; } else if( destination.find( "/topic/" ) == 0 ) { dest = destination.substr( 7 ); type = cms::Destination::TOPIC; } else if( destination.find( "/temp-topic/" ) == 0 ) { dest = destination.substr( 12 ); type = cms::Destination::TEMPORARY_TOPIC; } else if( destination.find( "/temp-queue/" ) == 0 ) { dest = destination.substr( 12 ); type = cms::Destination::TEMPORARY_QUEUE; } else if( destination.find( "/remote-temp-topic/" ) == 0 ) { type = cms::Destination::TEMPORARY_TOPIC; } else if( destination.find( "/remote-temp-queue/" ) == 0 ) { type = cms::Destination::TEMPORARY_QUEUE; }#ifdef __HORNETQ else if ( destination.find( "jms.queue.") == 0 ) { dest = destination.substr(10); type = cms::Destination::QUEUE; } else if ( destination.find( "jms.topic.") == 0 ) { dest = destination.substr(10); type = cms::Destination::TOPIC; }#endif // __HORNETQ return ActiveMQDestination::createDestination( type, dest );}