blob: 6b2201c1c7de9e8d9e396a319329eb9740ec265f (
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
|
// -*- C++ -*-
//=============================================================================
/**
* @file FT_ProxyAdmin_Base.h
*
* @author Huang-Ming Huang <hh1@cse.wustl.edu>
*/
//=============================================================================
#ifndef FT_PROXYADMIN_BASE_H
#define FT_PROXYADMIN_BASE_H
#include /**/ "ace/pre.h"
#include "orbsvcs/FtRtecEventCommC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/PortableServer/Servant_Base.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class FT_ProxyAdmin_Base
{
public:
FT_ProxyAdmin_Base(PortableServer::ServantBase* servant,
PortableServer::POA_var poa);
virtual ~FT_ProxyAdmin_Base();
void activate(const FtRtecEventComm::ObjectId& oid);
const FtRtecEventComm::ObjectId& object_id() const;
/// Returns an CORBA object reference when the servant is activated
CORBA::Object_var reference() const;
protected:
PortableServer::ServantBase* servant_;
/// Store the default POA.
PortableServer::POA_var poa_;
/// store the object id
FtRtecEventComm::ObjectId object_id_;
};
TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif
|