blob: 8b1e958e2b9ac646f05c94615dfb428cc0354304 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
//=============================================================================
/**
* @file test_dsi.h
*
* $Id$
*
* @author Carlos O'Ryan
*/
//=============================================================================
#ifndef TAO_DSI_GATEWAY_TEST_DSI_H
#define TAO_DSI_GATEWAY_TEST_DSI_H
#include "tao/DynamicInterface/Server_Request.h"
#include "tao/DynamicInterface/Dynamic_Implementation.h"
#include "tao/PortableServer/PortableServer.h"
#include "tao/ORB.h"
/**
* @class DSI_Simple_Server
*
* @brief DSI Simpler Server implementation
*
* Implements the DSI/DII gateway.
*/
class DSI_Simple_Server : public TAO_DynamicImplementation
{
public:
/// ctor
DSI_Simple_Server (CORBA::ORB_ptr orb,
CORBA::Object_ptr target,
PortableServer::POA_ptr poa);
// = The DynamicImplementation methods.
virtual void invoke (CORBA::ServerRequest_ptr request);
virtual CORBA::RepositoryId _primary_interface (
const PortableServer::ObjectId &oid,
PortableServer::POA_ptr poa
);
virtual PortableServer::POA_ptr _default_POA (
);
private:
/// The ORB
CORBA::ORB_var orb_;
/// Target object, forward requests to it...
CORBA::Object_var target_;
/// The POA
PortableServer::POA_var poa_;
};
#if defined(__ACE_INLINE__)
#include "test_dsi.inl"
#endif /* __ACE_INLINE__ */
#endif /* TAO_DSI_GATEWAY_TEST_I_H */
|