Scripting.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  tag: The SourceWorks Tue Sep 7 00:55:18 CEST 2010 Scripting.cpp
3 
4  Scripting.cpp - 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 #include "Scripting.hpp"
40 
41 namespace RTT
42 {
43  /*
44  unloadProgram
45  getProgramStatus
46  getProgramStatusStr
47  getProgramList
48  unloadStateMachine
49  getStateMachineStatus
50  getStateMachineStatusStr
51  getStateMachineList
52  getStateMachine
53  getStateMachine
54  execute
55  runScript
56  eval
57  loadPrograms
58  loadProgramText
59  unloadProgram
60  getProgramLine
61  getProgramText
62  loadStateMachines
63  loadStateMachineText
64  unloadStateMachine
65  getStateMachineText
66  getStateMachineLine
67  getCurrentState
68  startProgram
69  stopProgram
70  pauseProgram
71  stepProgram
72  hasProgram
73  isProgramRunning
74  isProgramPaused
75  inProgramError
76  activateStateMachine
77  deactivateStateMachine
78  startStateMachine
79  pauseStateMachine
80  stopStateMachine
81  resetStateMachine
82  requestStateMachineState
83  hasStateMachine
84  isStateMachineActive
85  isStateMachineRunning
86  inStateMachineError
87  isStateMachinePaused
88  getStateMachineState
89  inStateMachineState
90  */
92  : ServiceRequester("scripting", owner),
93  unloadProgram("unloadProgram"),
94  getProgramStatus("getProgramStatus"),
95  getProgramStatusStr("getProgramStatusStr"),
96  getProgramList("getProgramList"),
97  unloadStateMachine("unloadStateMachine"),
98  getStateMachineStatus("getStateMachineStatus"),
99  getStateMachineStatusStr("getStateMachineStatusStr"),
100  getStateMachineList("getStateMachineList"),
101  execute("execute"),
102  runScript("runScript"),
103  eval("eval"),
104  loadPrograms("loadPrograms"),
105  loadProgramText("loadProgramText"),
106  getProgramLine("getProgramLine"),
107  getProgramText("getProgramText"),
108  loadStateMachines("loadStateMachines"),
109  loadStateMachineText("loadStateMachineText"),
110  getStateMachineText("getStateMachineText"),
111  getStateMachineLine("getStateMachineLine"),
112  startProgram("startProgram"),
113  stopProgram("stopProgram"),
114  pauseProgram("pauseProgram"),
115  stepProgram("stepProgram"),
116  hasProgram("hasProgram"),
117  isProgramRunning("isProgramRunning"),
118  isProgramPaused("isProgramPaused"),
119  inProgramError("inProgramError"),
120  activateStateMachine("activateStateMachine"),
121  deactivateStateMachine("deactivateStateMachine"),
122  startStateMachine("startStateMachine"),
123  pauseStateMachine("pauseStateMachine"),
124  stopStateMachine("stopStateMachine"),
125  resetStateMachine("resetStateMachine"),
126  requestStateMachineState("requestStateMachineState"),
127  hasStateMachine("hasStateMachine"),
128  isStateMachineActive("isStateMachineActive"),
129  isStateMachineRunning("isStateMachineRunning"),
130  inStateMachineError("inStateMachineError"),
131  isStateMachinePaused("isStateMachinePaused"),
132  getStateMachineState("getStateMachineState"),
133  inStateMachineState("inStateMachineState")
134  {
176  }
177 
179  {
180  }
181 
182 }
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
OperationCaller< bool(const std::string &)> loadProgramText
Definition: Scripting.hpp:87
OperationCaller< StateMachineStatus::StateMachineStatus(const std::string &)> getStateMachineStatus
Definition: Scripting.hpp:73
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
OperationCaller< std::vector< std::string >void)> getProgramList
Definition: Scripting.hpp:69
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
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
OperationCaller< std::vector< std::string >)> getStateMachineList
Definition: Scripting.hpp:77
OperationCaller< bool(const std::string &)> stepProgram
Definition: Scripting.hpp:107
Scripting(TaskContext *owner)
Definition: Scripting.cpp:91
OperationCaller< bool(const std::string &)> isProgramPaused
Definition: Scripting.hpp:113
OperationCaller< bool(const std::string &)> startStateMachine
Definition: Scripting.hpp:121
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
OperationCaller< std::string(const std::string &)> getStateMachineStatusStr
Definition: Scripting.hpp:75
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition: Activity.cpp:53
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
bool addOperationCaller(base::OperationCallerBaseInvoker &mbi)


rtt
Author(s): RTT Developers
autogenerated on Fri Oct 25 2019 03:59:35