corba_mqueue_test.hpp
Go to the documentation of this file.
00001 /***************************************************************************
00002   tag: The SourceWorks  Tue Sep 7 00:54:57 CEST 2010  corba_mqueue_test.hpp
00003 
00004                         corba_mqueue_test.hpp -  description
00005                            -------------------
00006     begin                : Tue September 07 2010
00007     copyright            : (C) 2010 The SourceWorks
00008     email                : peter@thesourceworks.com
00009 
00010  ***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   (at your option) any later version.                                   *
00016  *                                                                         *
00017  ***************************************************************************/
00018 
00019 
00020 #ifndef CORBA_TEST_H
00021 #define CORBA_TEST_H
00022 
00023 #include <transports/corba/corba.h>
00024 #include <rtt/InputPort.hpp>
00025 #include <rtt/OutputPort.hpp>
00026 #include <rtt/TaskContext.hpp>
00027 #include <transports/corba/TaskContextServer.hpp>
00028 #include <transports/corba/TaskContextProxy.hpp>
00029 #include <string>
00030 
00031 using namespace RTT;
00032 using namespace RTT::detail;
00033 
00034 class CorbaMQueueTest
00035 {
00036 public:
00037     CorbaMQueueTest() { this->setUp(); }
00038     ~CorbaMQueueTest() { this->tearDown(); }
00039 
00040     TaskContext* tc;
00041     TaskContext* t2;
00042     TaskContext* tp;
00043     corba::TaskContextServer* ts;
00044     TaskContext* tp2;
00045     corba::TaskContextServer* ts2;
00046 
00047     base::PortInterface* signalled_port;
00048     void new_data_listener(base::PortInterface* port);
00049 
00050     // Ports
00051     InputPort<double>*  mr1;
00052     OutputPort<double>* mw1;
00053     InputPort<double>*  mr2;
00054     OutputPort<double>* mw2;
00055 
00056     void setupCorba();
00057     void cleanupCorba();
00058 
00059     void setUp();
00060     void tearDown();
00061 
00062     void testPortConnections();
00063     void testPortProxying();
00064 
00065     // helper test functions
00066     void testPortDataConnection();
00067     void testPortBufferConnection();
00068     void testPortDisconnected();
00069 };
00070 
00071 #endif


rtt
Author(s): RTT Developers
autogenerated on Thu Jan 2 2014 11:35:19