Orocos Real-Time Toolkit  2.9.0
TaskContextI.h
Go to the documentation of this file.
1 /***************************************************************************
2  tag: The SourceWorks Tue Sep 7 00:55:18 CEST 2010 TaskContextI.h
3 
4  TaskContextI.h - 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 // -*- C++ -*-
40 //
41 // $Id$
42 
43 // **** Code generated by the The ACE ORB (TAO) IDL Compiler ****
44 // TAO and the TAO IDL Compiler have been developed by:
45 // Center for Distributed Object Computing
46 // Washington University
47 // St. Louis, MO
48 // USA
49 // http://www.cs.wustl.edu/~schmidt/doc-center.html
50 // and
51 // Distributed Object Computing Laboratory
52 // University of California at Irvine
53 // Irvine, CA
54 // USA
55 // http://doc.ece.uci.edu/
56 // and
57 // Institute for Software Integrated Systems
58 // Vanderbilt University
59 // Nashville, TN
60 // USA
61 // http://www.isis.vanderbilt.edu/
62 //
63 // Information about TAO is available at:
64 // http://www.cs.wustl.edu/~schmidt/TAO.html
65 
66 // TAO_IDL - Generated from
67 // ../../../ACE_wrappers/TAO/TAO_IDL/be/be_codegen.cpp:1133
68 
69 #ifndef ORO_CORBA_TASKCONTEXTI_H_
70 #define ORO_CORBA_TASKCONTEXTI_H_
71 
72 #include "corba.h"
73 #ifdef CORBA_IS_TAO
74 #include "TaskContextS.h"
75 #else
76 #include "TaskContextC.h"
77 #endif
78 
79 #include "ServiceC.h"
80 #include "ServiceRequesterC.h"
81 #include "DataFlowC.h"
82 #include "../../TaskContext.hpp"
83 
84 #if !defined (ACE_LACKS_PRAGMA_ONCE)
85 #pragma once
86 #endif /* ACE_LACKS_PRAGMA_ONCE */
87 
89  : public virtual POA_RTT::corba::CTaskContext, public virtual PortableServer::RefCountServantBase
90 {
91 protected:
92  PortableServer::POA_var mpoa;
94 
95  RTT::corba::CService_var mService;
96  RTT::corba::CServiceRequester_var mRequest;
97 
98  PortableServer::ServantBase_var mRequest_i;
99  PortableServer::ServantBase_var mService_i;
100 
101 public:
102  // Constructor
103  RTT_corba_CTaskContext_i (RTT::TaskContext* orig, PortableServer::POA_ptr the_poa);
104 
105  // Destructor
106  virtual ~RTT_corba_CTaskContext_i (void);
107 
108  virtual RTT::corba::CTaskContext_ptr activate_this() {
109  PortableServer::ObjectId_var oid = mpoa->activate_object(this); // ref count=2
110  //_remove_ref(); // ref count=1
111  return _this();
112  }
113 
114  void shutdownCORBA();
115 
116  virtual
117  char * getName (
118  void);
119 
120  virtual
121  char * getDescription (
122  void);
123 
124  virtual
125  ::RTT::corba::CTaskContextDescription * getCTaskContextDescription (
126  void);
127 
128  virtual
130  void);
131 
132  virtual
133  ::CORBA::Boolean configure (
134  void);
135 
136  virtual
137  ::CORBA::Boolean start (
138  void);
139 
140  virtual
141  ::CORBA::Boolean activate (
142  void);
143 
144  virtual
145  ::CORBA::Boolean stop (
146  void);
147 
148  virtual
149  ::CORBA::Boolean cleanup (
150  void);
151 
152  virtual
153  ::CORBA::Boolean recover(
154  void);
155 
156  virtual
157  ::CORBA::Boolean resetException(
158  void);
159 
160  virtual
161  ::CORBA::Boolean isActive (
162  void);
163 
164  virtual
165  ::CORBA::Boolean isRunning (
166  void);
167 
168  virtual
169  ::CORBA::Boolean isConfigured (
170  void);
171 
172  virtual
173  ::CORBA::Boolean inFatalError (
174  void);
175 
176  virtual
177  ::CORBA::Boolean inRunTimeError (
178  void);
179 
180  virtual
181  ::CORBA::Boolean inException(
182  void);
183 
184  virtual
185  ::RTT::corba::CDataFlowInterface_ptr ports (
186  void);
187 
188  virtual
189  ::RTT::corba::CService_ptr getProvider (
190  const char * service_name);
191 
192  virtual
193  ::RTT::corba::CServiceRequester_ptr getRequester (
194  const char * service_name);
195 
196  virtual
197  ::RTT::corba::CTaskContext::CPeerNames * getPeerList (
198  void);
199 
200  virtual
201  ::RTT::corba::CTaskContext_ptr getPeer (
202  const char * name);
203 
204  virtual
205  ::CORBA::Boolean hasPeer (
206  const char * name);
207 
208  virtual
209  ::CORBA::Boolean addPeer (
210  ::RTT::corba::CTaskContext_ptr p,
211  const char * alias);
212 
213  virtual
214  ::CORBA::Boolean removePeer (
215  const char * name);
216 
217  virtual
218  ::CORBA::Boolean connectPeers (
219  ::RTT::corba::CTaskContext_ptr p);
220 
221  virtual
222  ::CORBA::Boolean disconnectPeers (
223  const char * name);
224 
225  virtual
226  ::CORBA::Boolean connectPorts (
227  ::RTT::corba::CTaskContext_ptr p);
228 
229  virtual
230  ::CORBA::Boolean connectServices (
231  ::RTT::corba::CTaskContext_ptr p);
232 };
233 
234 
235 #endif /* TASKCONTEXTI_H_ */
236 
virtual ::CORBA::Boolean cleanup(void)
virtual ::CORBA::Boolean removePeer(const char *name)
virtual ::CORBA::Boolean start(void)
virtual ~RTT_corba_CTaskContext_i(void)
virtual ::CORBA::Boolean inFatalError(void)
virtual ::CORBA::Boolean inRunTimeError(void)
PortableServer::ServantBase_var mRequest_i
Definition: TaskContextI.h:98
virtual RTT::corba::CTaskContext_ptr activate_this()
Definition: TaskContextI.h:108
virtual char * getDescription(void)
virtual ::RTT::corba::CServiceRequester_ptr getRequester(const char *service_name)
virtual ::CORBA::Boolean isConfigured(void)
virtual char * getName(void)
virtual ::CORBA::Boolean inException(void)
PortableServer::POA_var mpoa
Definition: TaskContextI.h:92
RTT::corba::CServiceRequester_var mRequest
Definition: TaskContextI.h:96
virtual ::CORBA::Boolean stop(void)
virtual ::RTT::corba::CTaskContextDescription * getCTaskContextDescription(void)
virtual ::CORBA::Boolean recover(void)
virtual ::RTT::corba::CTaskState getTaskState(void)
virtual ::CORBA::Boolean disconnectPeers(const char *name)
virtual ::CORBA::Boolean addPeer(::RTT::corba::CTaskContext_ptr p, const char *alias)
PortableServer::ServantBase_var mService_i
Definition: TaskContextI.h:99
virtual ::CORBA::Boolean connectServices(::RTT::corba::CTaskContext_ptr p)
virtual ::RTT::corba::CDataFlowInterface_ptr ports(void)
virtual ::CORBA::Boolean activate(void)
RTT_corba_CTaskContext_i(RTT::TaskContext *orig, PortableServer::POA_ptr the_poa)
virtual ::RTT::corba::CTaskContext::CPeerNames * getPeerList(void)
virtual ::RTT::corba::CTaskContext_ptr getPeer(const char *name)
virtual ::CORBA::Boolean connectPeers(::RTT::corba::CTaskContext_ptr p)
The TaskContext is the C++ representation of an Orocos component.
Definition: TaskContext.hpp:93
virtual ::CORBA::Boolean connectPorts(::RTT::corba::CTaskContext_ptr p)
RTT::TaskContext * mtask
Definition: TaskContextI.h:93
virtual ::RTT::corba::CService_ptr getProvider(const char *service_name)
virtual ::CORBA::Boolean resetException(void)
virtual ::CORBA::Boolean isRunning(void)
virtual ::CORBA::Boolean configure(void)
CTaskState
Maps 1-to-1 to RTT::base::TaskCore::TaskState.
Definition: TaskContext.idl:26
virtual ::CORBA::Boolean isActive(void)
RTT::corba::CService_var mService
Definition: TaskContextI.h:95
virtual ::CORBA::Boolean hasPeer(const char *name)