blob: 8f3a21d1bfdbc35963eabaa84fe02c684175bb7a (
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
|
// $Id$
//=============================================================================
//
//
// = FILENAME
// MyFooServant.h
//
// = DESCRIPTION
// Defines MyFooServant class for the Foo interface
//
// = AUTHOR
// Irfan Pyarali and Michael Kircher
//
//=============================================================================
#ifndef MYFOOSERVANT_H
#define MYFOOSERVANT_H
#include "FooS.h"
#if defined(_MSC_VER)
#if (_MSC_VER >= 1200)
#pragma warning(push)
#endif /* _MSC_VER >= 1200 */
#pragma warning(disable:4250)
#endif /* _MSC_VER */
class MyFooServantActivator;
class MyFooServant : public virtual PortableServer::RefCountServantBase,
public virtual POA_Foo
{
public:
MyFooServant (CORBA::ORB_ptr orb_ptr,
PortableServer::POA_ptr poa,
MyFooServantActivator &activator,
CORBA::Long value);
virtual CORBA::Long doit (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
// Setup forwarding
virtual void forward (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
Foo::Cannot_Forward));
virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual PortableServer::POA_ptr _default_POA (ACE_ENV_SINGLE_ARG_DECL);
// Returns the default POA for this servant.
protected:
CORBA::ORB_var orb_;
PortableServer::POA_var poa_;
MyFooServantActivator &activator_;
CORBA::Long value_;
};
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* MYFOOSERVANT_H */
|