blob: 0a3d63efa23d5406b0fe02fe10b28ab2a5eb8999 (
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
|
// -*- C++ -*-
//
// $Id$
#ifndef SIMPLE_H
#define SIMPLE_H
#include "TestS.h"
#include "orbsvcs/CosLoadBalancingC.h"
#include "orbsvcs/PortableGroupC.h"
#if defined (_MSC_VER)
# pragma warning(push)
# pragma warning (disable:4250)
#endif /* _MSC_VER */
class LB_Basic_Test;
/// Implement the Test::Simple interface
class Simple
: public virtual POA_Test::Simple
{
public:
/// Constructor
Simple (CORBA::Object_ptr object_group,
CosLoadBalancing::LoadManager_ptr lm,
CORBA::ORB_ptr orb,
CORBA::Short num,
const char *loc);
virtual char * get_string (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));
virtual void remove_member (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual CORBA::Short number (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
private:
/// Use an ORB reference to convert strings to objects and shutdown
/// the application.
CORBA::ORB_var orb_;
/// Load Manager Reference used to delete the servant reference from the
/// object group.
CosLoadBalancing::LoadManager_var lm_;
/// location of the servant
const char *location_ ;
/// Object Group reference.
CORBA::Object_var object_group_;
/// ID of the servant
CORBA::Short number_;
};
#if defined(_MSC_VER)
# pragma warning(pop)
#endif /* _MSC_VER */
#endif /* SIMPLE_H */
|