Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / examples / ORT / Gateway_i.h
blob081dee4ed1482b6345d4884bf1fa8bd6764a00f8
1 // -*- C++ -*-
2 //=============================================================================
3 /**
4 * @file Gateway_i.h
6 * Implementation header used for forwarding the requests from the
7 * gateway to the server and reply to the client
9 * @author Carlos O'Ryan <coryan@uci.edu>
10 * @author Priyanka Gontla <gontla_p@ociweb.com>
12 //=============================================================================
14 #ifndef GATEWAY_I_H
15 #define GATEWAY_I_H
17 #include "tao/IFR_Client/IFR_Client_Adapter_Impl.h"
18 #include "tao/AnyTypeCode/AnyTypeCode_methods.h"
19 #include "tao/DynamicInterface/DII_CORBA_methods.h"
20 #include "tao/DynamicInterface/Dynamic_Implementation.h"
21 #include "tao/PortableServer/PortableServer.h"
23 class Gateway_i
24 : public virtual PortableServer::DynamicImplementation
26 public:
27 Gateway_i (CORBA::ORB_ptr orb,
28 PortableServer::Current_ptr poa_current);
30 virtual void invoke (CORBA::ServerRequest_ptr request);
32 virtual CORBA::RepositoryId _primary_interface (
33 const PortableServer::ObjectId &oid,
34 PortableServer::POA_ptr poa);
36 private:
38 CORBA::ORB_ptr orb_;
40 PortableServer::Current_ptr poa_current_;
43 #endif /* GATEWAY_I_H */