orca-robotics


INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

REPOSITORY
Interfaces
Components
Libraries
Utilities
Software Map

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard
Wiki
login/pass: orca/orca

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

orcaqgui2dfactory/connectutils.h

00001 #ifndef CONNECTUTIL_H
00002 #define CONNECTUTIL_H
00003 
00004 #include <orcaice/context.h>
00005 #include <string>
00006 #include <orcaqgui2dfactory/connectutils.h>
00007 
00008 namespace orcaqgui2d {
00009     
00010     template< class ProxyType,
00011               class PainterType >
00012     void
00013     paintInitialData( orcaice::Context      &context,
00014                       const std::string     &proxyString,
00015                       PainterType           &painter )
00016     {
00017         try {
00018             // Connect directly to the interface
00019             ProxyType prx;
00020             orcaice::connectToInterfaceWithString( context, prx, proxyString );
00021             painter.setData( prx->getData() );
00022         }
00023         catch ( Ice::Exception &e )
00024         {
00025             std::cout<<"TRACE(connectutils::paintInitialData): exception: " << e << std::endl;
00026             throw;
00027         }
00028         catch ( std::exception &e )
00029         {
00030             std::cout<<"TRACE(connectutils::paintInitialData): exception: " << e.what() << std::endl;
00031             throw;
00032         }
00033         catch ( ... )
00034         {
00035             std::cout<<"TRACE(connectutils::paintInitialData): unknown exception" << std::endl;
00036             throw;
00037         }
00038     }
00039 
00040 }
00041 
00042 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5