Orocos Real-Time Toolkit  2.9.0
Scripting.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  tag: The SourceWorks Tue Sep 7 00:55:18 CEST 2010 Scripting.hpp
3 
4  Scripting.hpp - description
5  -------------------
6  begin : Tue September 07 2010
7  copyright : (C) 2010 The SourceWorks
8  email : peter@thesourceworks.com
9 
10  ***************************************************************************
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU General Public *
13  * License as published by the Free Software Foundation; *
14  * version 2 of the License. *
15  * *
16  * As a special exception, you may use this file as part of a free *
17  * software library without restriction. Specifically, if other files *
18  * instantiate templates or use macros or inline functions from this *
19  * file, or you compile this file and link it with other files to *
20  * produce an executable, this file does not by itself cause the *
21  * resulting executable to be covered by the GNU General Public *
22  * License. This exception does not however invalidate any other *
23  * reasons why the executable file might be covered by the GNU General *
24  * Public License. *
25  * *
26  * This library is distributed in the hope that it will be useful, *
27  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
28  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
29  * Lesser General Public License for more details. *
30  * *
31  * You should have received a copy of the GNU General Public *
32  * License along with this library; if not, write to the Free Software *
33  * Foundation, Inc., 59 Temple Place, *
34  * Suite 330, Boston, MA 02111-1307 USA *
35  * *
36  ***************************************************************************/
37 
38 
39 #ifndef ORO_SCRIPTING_HPP_
40 #define ORO_SCRIPTING_HPP_
41 
42 #include "../ServiceRequester.hpp"
43 #include "ProgramInterface.hpp"
44 #include "StateMachine.hpp"
45 #include "../OperationCaller.hpp"
46 #include <string>
47 
48 namespace RTT
49 {
50 
55  : public ServiceRequester
56  {
57  public:
58  Scripting(TaskContext* owner);
59  ~Scripting();
62 
64 
66 
68 
70 
72 
74 
76 
78 
80 
82 
84 
86 
88 
90 
92 
94 
96 
98 
100 
102 
104 
106 
108 
110 
112 
114 
116 
118 
120 
122 
124 
126 
128 
130 
132 
134 
136 
138 
140 
142 
144  };
145 
146 }
147 
148 #endif /* ORO_SCRIPTING_HPP_ */
OperationCaller< bool(const std::string &)> eval
Definition: Scripting.hpp:83
OperationCaller< bool(const std::string &)> isStateMachinePaused
Definition: Scripting.hpp:139
OperationCaller< bool(const std::string &)> resetStateMachine
Definition: Scripting.hpp:127
OperationCaller< ProgramStatus::ProgramStatus(const std::string &)> getProgramStatus
Definition: Scripting.hpp:65
The method interface of the scripting plugin.
Definition: Scripting.hpp:54
OperationCaller< bool(const std::string &)> loadProgramText
Definition: Scripting.hpp:87
OperationCaller< StateMachineStatus::StateMachineStatus(const std::string &)> getStateMachineStatus
Definition: Scripting.hpp:73
scripting::ProgramInterface::Status ProgramStatus
Definition: Scripting.hpp:60
OperationCaller< int(const std::string &)> execute
Definition: Scripting.hpp:79
OperationCaller< std::string(const std::string &)> getProgramStatusStr
Definition: Scripting.hpp:67
OperationCaller< bool(const std::string &)> activateStateMachine
Definition: Scripting.hpp:117
OperationCaller< bool(const std::string &)> pauseProgram
Definition: Scripting.hpp:105
OperationCaller< std::string(const std::string &)> getStateMachineText
Definition: Scripting.hpp:97
#define RTT_SCRIPTING_API
OperationCaller< bool(const std::string &)> unloadProgram
Definition: Scripting.hpp:63
OperationCaller< bool(const std::string &)> stopStateMachine
Definition: Scripting.hpp:125
OperationCaller< bool(const std::string &)> pauseStateMachine
Definition: Scripting.hpp:123
OperationCaller< bool(const std::string &)> hasStateMachine
Definition: Scripting.hpp:131
Placeholder of the ProgramStatus.
OperationCaller< bool(const std::string &)> isProgramRunning
Definition: Scripting.hpp:111
OperationCaller< bool(const std::string &)> inProgramError
Definition: Scripting.hpp:115
OperationCaller< bool(const std::string &, const std::string &)> requestStateMachineState
Definition: Scripting.hpp:129
OperationCaller< bool(const std::string &)> stopProgram
Definition: Scripting.hpp:103
OperationCaller< bool(const std::string &)> isStateMachineActive
Definition: Scripting.hpp:133
OperationCaller< bool(const std::string &)> loadStateMachines
Definition: Scripting.hpp:93
OperationCaller< bool(const std::string &)> inStateMachineError
Definition: Scripting.hpp:137
scripting::StateMachine::Status StateMachineStatus
Definition: Scripting.hpp:61
OperationCaller< bool(const std::string &)> stepProgram
Definition: Scripting.hpp:107
OperationCaller< bool(const std::string &)> isProgramPaused
Definition: Scripting.hpp:113
OperationCaller< bool(const std::string &)> startStateMachine
Definition: Scripting.hpp:121
Enumerates all possible state machine statuses.
OperationCaller< bool(const std::string &)> unloadStateMachine
Definition: Scripting.hpp:71
OperationCaller< int(const std::string &)> getStateMachineLine
Definition: Scripting.hpp:99
OperationCaller< std::string(const std::string &)> getStateMachineState
Definition: Scripting.hpp:141
OperationCaller< std::string(const std::string &)> getProgramText
Definition: Scripting.hpp:91
OperationCaller< bool(const std::string &)> deactivateStateMachine
Definition: Scripting.hpp:119
The TaskContext is the C++ representation of an Orocos component.
Definition: TaskContext.hpp:93
An object that expresses you wish to use a service.
OperationCaller< std::string(const std::string &)> getStateMachineStatusStr
Definition: Scripting.hpp:75
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition: Activity.cpp:52
OperationCaller< bool(const std::string &)> loadPrograms
Definition: Scripting.hpp:85
OperationCaller< int(const std::string &)> getProgramLine
Definition: Scripting.hpp:89
OperationCaller< bool(const std::string &code)> loadStateMachineText
Definition: Scripting.hpp:95
OperationCaller< bool(const std::string &)> hasProgram
Definition: Scripting.hpp:109
OperationCaller< bool(const std::string &, const std::string &)> inStateMachineState
Definition: Scripting.hpp:143
OperationCaller< bool(const std::string &)> isStateMachineRunning
Definition: Scripting.hpp:135
OperationCaller< bool(const std::string &)> runScript
Definition: Scripting.hpp:81
OperationCaller< bool(const std::string &)> startProgram
Definition: Scripting.hpp:101