diff options
Diffstat (limited to 'trunk/TAO/orbsvcs/examples/ORT/Gateway_i.h')
-rw-r--r-- | trunk/TAO/orbsvcs/examples/ORT/Gateway_i.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/trunk/TAO/orbsvcs/examples/ORT/Gateway_i.h b/trunk/TAO/orbsvcs/examples/ORT/Gateway_i.h new file mode 100644 index 00000000000..a49d7a1e73a --- /dev/null +++ b/trunk/TAO/orbsvcs/examples/ORT/Gateway_i.h @@ -0,0 +1,50 @@ +// -*- C++ -*- +// +// $Id$ + +//============================================================================= +/** + * @file Gateway_i.h + * + * $Id$ + * + * Implementation header used for forwarding the requests from the + * gateway to the server and reply to the client + * + * @author Carlos O'Ryan <coryan@uci.edu> + * @author Priyanka Gontla <gontla_p@ociweb.com> + */ +//============================================================================= + +#ifndef GATEWAY_I_H +#define GATEWAY_I_H + +#include "tao/IFR_Client/IFR_Client_Adapter_Impl.h" +#include "tao/AnyTypeCode/AnyTypeCode_methods.h" +#include "tao/DynamicInterface/DII_CORBA_methods.h" +#include "tao/DynamicInterface/Dynamic_Implementation.h" +#include "tao/PortableServer/PortableServer.h" + +class Gateway_i + : public virtual PortableServer::DynamicImplementation +{ +public: + Gateway_i (CORBA::ORB_ptr orb, + PortableServer::Current_ptr poa_current); + + virtual void invoke (CORBA::ServerRequest_ptr request + ACE_ENV_ARG_DECL); + + virtual CORBA::RepositoryId _primary_interface ( + const PortableServer::ObjectId &oid, + PortableServer::POA_ptr poa + ACE_ENV_ARG_DECL); + + private: + + CORBA::ORB_ptr orb_; + + PortableServer::Current_ptr poa_current_; +}; + +#endif /* GATEWAY_I_H */ |