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>
28 
29 using namespace RTT;
30 using namespace RTT::detail;
31 
33 {
34 public:
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
TaskContext mtc
bool false_gen() const
bool true_gen() const
bool true_genCom()
TaskContext gtc
This class is the public interface to the Orocos Program Parser Framework. It parsers Orocos program ...
Definition: Parser.hpp:65
bool false_genCom()
bool bool_gen(bool b) const
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition: Activity.cpp:53
TaskContext ltc


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:24