blob: 4f6a75e3e9e254f473619429e5e6b4e754a64699 (
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
71
72
73
74
75
76
77
|
// -*- C++ -*-
//=============================================================================
/**
* @file ObjectReferenceFactory.h
*
* $Id$
*
* This is the implementation of the
* PortableInterceptor::ObjectReferenceFactory interface.
*
* @author Priyanka Gontla <gontla_p@ociweb.com>
*/
//=============================================================================
#ifndef TAO_OBJECT_REFERENCE_FACTORY_H
#define TAO_OBJECT_REFERENCE_FACTORY_H
#include "ace/pre.h"
#include "tao/corbafwd.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/ObjectReferenceTemplateC.h"
#include "tao/PortableServer/PortableServerC.h"
#include "tao/PortableServer/portableserver_export.h"
#if defined(_MSC_VER)
#if (_MSC_VER >= 1200)
#pragma warning(push)
#endif /* _MSC_VER >= 1200 */
#pragma warning(disable:4250)
#endif /* _MSC_VER */
class TAO_POA;
/**
* @class TAO_ObjectReferenceFactory
*
* @brief Implementation of the PortableInterceptor::ObjectReferenceFactory
* interface.
*/
class TAO_PortableServer_Export TAO_ObjectReferenceFactory
: public CORBA::DefaultValueRefCountBase,
public virtual PortableInterceptor::ObjectReferenceFactory
{
public:
/// Constructor
TAO_ObjectReferenceFactory (TAO_POA *poa);
virtual CORBA::Object_ptr make_object (
const char * repository_id,
const PortableInterceptor::ObjectId & id
ACE_ENV_ARG_DECL_WITH_DEFAULTS);
void set_servant (PortableServer::Servant servant);
void make_object_invoker (CORBA::ULong identifier);
private:
TAO_POA *poa_;
PortableServer::Servant servant_;
CORBA::ULong make_object_invoker_;
};
#include "ace/post.h"
#endif /* TAO_OBJECT_REFERENCE_FACTORY_H */
|