blob: 02c4972c4d73539aec56cec3aca5f56a1a68bbbe (
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
63
64
65
66
67
68
69
70
|
// -*- C++ -*-
//=============================================================================
/**
* @file Simple_Server_i.h
*
* $Id$
*
* @author Nanbor Wang <nanbor@cs.wustl.edu>
*/
//=============================================================================
#ifndef CIAO_SIMPLE_SERVER_I_H
#define CIAO_SIMPLE_SERVER_I_H
#include /**/ "ace/pre.h"
#include "Simple_ServerS.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
namespace CIAO
{
class Simple_Server_i
: public virtual POA_CIAO::Simple_Server,
public virtual PortableServer::RefCountServantBase
{
public:
/// Constructor
Simple_Server_i (CORBA::ORB_ptr o,
PortableServer::POA_ptr p,
Components::CCMHome_ptr h);
/// Destructor
virtual ~Simple_Server_i (void);
/// Get the containing POA. This operation does *not*
/// increase the reference count of the POA.
virtual PortableServer::POA_ptr _default_POA (void);
virtual Components::CCMHome_ptr
get_home (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual Components::CCMObject_ptr
get_component (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
protected:
/// Keep a pointer to the managing ORB serving this servant.
CORBA::ORB_var orb_;
/// Keep a pointer to the managing POA.
PortableServer::POA_var poa_;
/// Cached CCMHome reference.
Components::CCMHome_var home_;
/// Cached CCMObject reference.
Components::CCMObject_var component_;
};
}
#include /**/ "ace/post.h"
#endif /* CIAO_SIMPLE_SERVER_H */
|