blob: b0114c961b968e1a0f7467a597ad618cb5513e44 (
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
// -*- C++ -*-
//=============================================================================
/**
* @file Context_Impl_T.h
*
* $Id$
*
* This file contains the declaration of a mixin base class for
* the generated context class.
*
* @author Jeff Parsons <j.parsons@vanderbilt.edu>
*/
//=============================================================================
#ifndef CIAO_CONTEXT_IMPL_T_H
#define CIAO_CONTEXT_IMPL_T_H
#include /**/ "ace/pre.h"
#include "Context_Impl_Base.h"
#include "tao/LocalObject.h"
#include "tao/PortableServer/PS_ForwardC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
class SystemException;
}
namespace SecurityLevel2
{
class Credentials;
}
TAO_END_VERSIONED_NAMESPACE_DECL
namespace Components
{
typedef SecurityLevel2::Credentials Principal;
typedef Principal *Principal_ptr;
class IllegalState;
namespace Transaction
{
class UserTransaction;
typedef UserTransaction *UserTransaction_ptr;
}
}
namespace CIAO
{
class Container;
typedef Container *Container_ptr;
/**
* @class Context_Impl
*
* @brief Mixin base class for generated context.
*
* This class implements operations and contains parameterized
* members common to all generated servants.
*/
template <typename BASE_CTX,
typename COMP>
class Context_Impl : public virtual BASE_CTX,
public virtual Context_Impl_Base,
public virtual ::CORBA::LocalObject
{
public:
/// Type definition of the context type.
typedef BASE_CTX context_type;
/// Type definition of the var type for the context.
typedef typename context_type::_var_type _var_type;
/// Type definition of the component type.
typedef COMP component_type;
Context_Impl (Components::CCMHome_ptr the_home,
Container_ptr c,
PortableServer::Servant sv,
const char* id);
virtual ~Context_Impl (void);
// Operations from ::Components::SessionContext.
virtual CORBA::Object_ptr get_CCM_object ();
private:
PortableServer::Servant servant_;
typename COMP::_var_type component_;
};
}
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "Context_Impl_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
#pragma implementation ("Context_Impl_T.cpp")
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
#include /**/ "ace/post.h"
#endif /* CIAO_CONTEXT_IMPL_T_H */
|