blob: e715a747a18c83a090bd72280cebc03fb1169813 (
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
|
// $Id$
//=============================================================================
//
//
// = FILENAME
// MyFooServant.h
//
// = DESCRIPTION
// Defines MyFooServant class for the Foo interface
//
// = AUTHOR
// Irfan Pyarali
//
//=============================================================================
#ifndef MYFOOSERVANT_H
#define MYFOOSERVANT_H
#include "FooS.h"
class GENERIC_SERVANT_Export MyFooServant : public POA_Foo
{
public:
MyFooServant (CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa,
CORBA::Long value);
// Constructor - takes a POA and a value parameter
virtual ~MyFooServant (void);
// Destructor
virtual PortableServer::POA_ptr _default_POA (ACE_ENV_SINGLE_ARG_DECL);
// Returns the Default POA of this Servant object
virtual CORBA::Long doit (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
// Simple doit method
virtual void simply_doit (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
// Even simpler doit method
virtual void timed_operation (CORBA::ULong timeout
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
// Timed operation.
virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
// Shutdown the ORB
protected:
CORBA::ORB_var orb_;
// Keep a pointer to the ORB so we can shut it down.
PortableServer::POA_var poa_;
// Implement a different _default_POA()
CORBA::Long value_;
// The current value.
};
#endif /* MYFOOSERVANT_H */
|