CorbaService.hpp

00001 #ifndef ORO_RTT_CORBA_TRANSPORT
00002 #define ORO_RTT_CORBA_TRANSPORT
00003 
00004 #include "../TaskObject.hpp"
00005 #include "ControlTaskServer.hpp"
00006 
00007 namespace RTT {
00008     namespace Corba {
00013         class CorbaService
00014             : public TaskObject
00015         {
00016             TaskContext* mtc;
00017         public:
00018             CorbaService(TaskContext* tc)
00019                 : TaskObject("corbaservice", "This component is available as a CORBA service"),
00020                   mtc(tc)
00021             {
00022             }
00023 
00024             ~CorbaService() {
00025                 // CTS destructor will do cleanup of CORBA related objects.
00026                 ControlTaskServer::CleanupServer( mtc );
00027             }
00028         };
00029     }
00030 }
00031 
00032 #endif
Generated on Thu Dec 23 13:22:36 2010 for Orocos Real-Time Toolkit by  doxygen 1.6.3