-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcorba_mqueue_test.hpp
71 lines (56 loc) · 2.12 KB
/
corba_mqueue_test.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/***************************************************************************
tag: The SourceWorks Tue Sep 7 00:54:57 CEST 2010 corba_mqueue_test.hpp
corba_mqueue_test.hpp - description
-------------------
begin : Tue September 07 2010
copyright : (C) 2010 The SourceWorks
email : [email protected]
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef CORBA_TEST_H
#define CORBA_TEST_H
#include <transports/corba/corba.h>
#include <rtt/InputPort.hpp>
#include <rtt/OutputPort.hpp>
#include <rtt/TaskContext.hpp>
#include <transports/corba/TaskContextServer.hpp>
#include <transports/corba/TaskContextProxy.hpp>
#include <string>
using namespace RTT;
using namespace RTT::detail;
class CorbaMQueueTest
{
public:
CorbaMQueueTest() { this->setUp(); }
~CorbaMQueueTest() { this->tearDown(); }
TaskContext* tc;
TaskContext* t2;
TaskContext* tp;
corba::TaskContextServer* ts;
TaskContext* tp2;
corba::TaskContextServer* ts2;
base::PortInterface* signalled_port;
void new_data_listener(base::PortInterface* port);
// Ports
InputPort<double>* mr1;
OutputPort<double>* mw1;
InputPort<double>* mr2;
OutputPort<double>* mw2;
void setupCorba();
void cleanupCorba();
void setUp();
void tearDown();
void testPortConnections();
void testPortProxying();
// helper test functions
void testPortDataConnection();
void testPortBufferConnection();
void testPortDisconnected();
};
#endif