Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
tests
dispatch_test.hpp
Go to the documentation of this file.
1
/***************************************************************************
2
tag: Peter Soetens Mon Jan 10 15:59:18 CET 2005 dispatch_test.hpp
3
4
dispatch_test.hpp - description
5
-------------------
6
begin : Mon January 10 2005
7
copyright : (C) 2005 Peter Soetens
8
email : peter.soetens@mech.kuleuven.ac.be
9
10
***************************************************************************
11
* *
12
* This program is free software; you can redistribute it and/or modify *
13
* it under the terms of the GNU General Public License as published by *
14
* the Free Software Foundation; either version 2 of the License, or *
15
* (at your option) any later version. *
16
* *
17
***************************************************************************/
18
19
20
#ifndef DISPATCHTEST_H
21
#define DISPATCHTEST_H
22
23
#include <
scripting/Parser.hpp
>
24
#include <internal/CommandProcessor.hpp>
25
#include <
TaskContext.hpp
>
26
#include <string>
27
#include <
extras/SimulationActivity.hpp
>
28
29
using namespace
RTT
;
30
using namespace
RTT::detail
;
31
32
class
DispatchTest
33
{
34
public
:
35
Parser
parser
;
36
TaskContext
gtc
;
37
TaskContext
mtc
;
38
TaskContext
ltc
;
39
40
Service
* createObject(std::string a, CommandProcessor* cp);
41
42
bool
true_genCom
() {
return
true
; }
43
bool
false_genCom
() {
return
false
; }
44
bool
true_gen
()
const
{
return
true
; }
45
bool
false_gen
()
const
{
return
false
; }
46
47
bool
bool_gen
(
bool
b )
const
{
return
b; }
48
49
bool
assertBool(
bool
);
50
bool
assertMsg(
bool
,
const
std::string& msg);
51
void
doDispatch(
const
std::string& prog,
TaskContext
* );
52
void
finishDispatch(
TaskContext
* , std::string );
53
public
:
54
DispatchTest
();
55
~DispatchTest
(){ tearDown();};
56
57
void
setUp();
58
void
tearDown();
59
60
void
testParseDispatch();
61
void
testDispatchCondition();
62
void
testDispatchMany();
63
void
testDispatchFailure();
64
void
testDispatchAnd();
65
void
testDispatchTry();
66
void
testDispatchUntil();
67
void
testDispatchUntilFail();
68
69
};
70
71
#endif
DispatchTest::mtc
TaskContext mtc
Definition:
dispatch_test.hpp:37
SimulationActivity.hpp
DispatchTest::false_gen
bool false_gen() const
Definition:
dispatch_test.hpp:45
DispatchTest::true_gen
bool true_gen() const
Definition:
dispatch_test.hpp:44
DispatchTest::true_genCom
bool true_genCom()
Definition:
dispatch_test.hpp:42
DispatchTest
Definition:
dispatch_test.hpp:32
DispatchTest::gtc
TaskContext gtc
Definition:
dispatch_test.hpp:36
DispatchTest::~DispatchTest
~DispatchTest()
Definition:
dispatch_test.hpp:55
RTT::Service
Definition:
Service.hpp:93
RTT::detail
Definition:
rtt-base-fwd.hpp:97
TaskContext.hpp
RTT::scripting::Parser
This class is the public interface to the Orocos Program Parser Framework. It parsers Orocos program ...
Definition:
Parser.hpp:65
Parser.hpp
DispatchTest::false_genCom
bool false_genCom()
Definition:
dispatch_test.hpp:43
DispatchTest::parser
Parser parser
Definition:
dispatch_test.hpp:35
DispatchTest::bool_gen
bool bool_gen(bool b) const
Definition:
dispatch_test.hpp:47
RTT::TaskContext
Definition:
TaskContext.hpp:93
RTT
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition:
Activity.cpp:53
DispatchTest::ltc
TaskContext ltc
Definition:
dispatch_test.hpp:38
rtt
Author(s): RTT Developers
autogenerated on Fri Oct 25 2019 03:59:33