ServiceI.h
Go to the documentation of this file.
1 /***************************************************************************
2  tag: The SourceWorks Tue Sep 7 00:55:18 CEST 2010 ServiceI.h
3 
4  ServiceI.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_SERVICEI_H_
70 #define ORO_CORBA_SERVICEI_H_
71 
72 #include "corba.h"
73 #ifdef CORBA_IS_TAO
74 #include "ServiceS.h"
75 #else
76 #include "ServiceC.h"
77 #endif
78 
79 #include "../../Service.hpp"
81 #include "OperationInterfaceI.h"
82 #include "DataFlowI.h"
83 
84 #if !defined (ACE_LACKS_PRAGMA_ONCE)
85 #pragma once
86 #endif /* ACE_LACKS_PRAGMA_ONCE */
87 
89  : public virtual POA_RTT::corba::CService, public virtual PortableServer::RefCountServantBase,
91  public virtual RTT_corba_COperationInterface_i
92  ,public virtual RTT::corba::CDataFlowInterface_i
93 {
94 protected:
95  PortableServer::POA_var mpoa;
96  boost::weak_ptr<RTT::Service> mservice;
97  // child services
98  typedef std::map<std::string, std::pair<RTT::corba::CService_var,PortableServer::ServantBase_var> > Servants;
99  Servants mservs;
100 public:
101  // Constructor
102  RTT_corba_CService_i ( RTT::ServicePtr service, PortableServer::POA_ptr poa);
103 
104  // Destructor
105  virtual ~RTT_corba_CService_i (void);
106 
107  virtual RTT::corba::CService_ptr activate_this() {
108  PortableServer::ObjectId_var oid = mpoa->activate_object(this); // ref count=2
109  //_remove_ref(); // ref count=1
110  return POA_RTT::corba::CService::_this();
111  }
112 
113  PortableServer::POA_ptr _default_POA();
114 
115  virtual
116  char * getName (
117  void);
118 
119  virtual
120  char * getServiceDescription (
121  void);
122 
123  virtual
124  ::RTT::corba::CServiceDescription * getCServiceDescription (
125  void);
126 
127  static
128  ::RTT::corba::CServiceDescription * getCServiceDescription (
129  const RTT::Service::shared_ptr &);
130 
131  virtual
132  ::RTT::corba::CService::CProviderNames * getProviderNames (
133  void);
134 
135  virtual
136  ::RTT::corba::CService_ptr getService (
137  const char * name);
138 
139  virtual
140  ::CORBA::Boolean hasService (
141  const char * name);
142 
143 };
144 
145 
146 #endif /* SERVICEI_H_ */
147 
148 
virtual ::CORBA::Boolean hasService(const char *name)
Definition: ServiceI.cpp:147
virtual ::RTT::corba::CService_ptr getService(const char *name)
Definition: ServiceI.cpp:121
std::map< std::string, std::pair< RTT::corba::CService_var, PortableServer::ServantBase_var > > Servants
Definition: ServiceI.h:98
virtual char * getName(void)
Definition: ServiceI.cpp:94
PortableServer::POA_var mpoa
Definition: ServiceI.h:95
virtual ~RTT_corba_CService_i(void)
Definition: ServiceI.cpp:85
boost::shared_ptr< Service > shared_ptr
Definition: Service.hpp:101
PortableServer::POA_ptr _default_POA()
Definition: ServiceI.cpp:89
boost::shared_ptr< Service > ServicePtr
Definition: rtt-fwd.hpp:86
RTT_corba_CService_i(RTT::ServicePtr service, PortableServer::POA_ptr poa)
Definition: ServiceI.cpp:76
virtual RTT::corba::CService_ptr activate_this()
Definition: ServiceI.h:107
virtual ::RTT::corba::CService::CProviderNames * getProviderNames(void)
Definition: ServiceI.cpp:108
virtual char * getServiceDescription(void)
Definition: ServiceI.cpp:101
virtual ::RTT::corba::CServiceDescription * getCServiceDescription(void)
Definition: ServiceI.cpp:154
boost::weak_ptr< RTT::Service > mservice
Definition: ServiceI.h:96


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