blob: 189a9f3aba2fcd6079c84435a429f6533abbae2d (
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
111
112
113
114
115
116
|
// -*- C++ -*-
//=============================================================================
/**
* @file Context_Impl_Base.h
*
* $Id$
*
* This file contains the non-template declaration of a base class for
* the template mixin for the generated context class.
*
* @author Jeff Parsons <j.parsons@vanderbilt.edu>
*/
//=============================================================================
#ifndef CIAO_CONTEXT_IMPL_BASE_H
#define CIAO_CONTEXT_IMPL_BASE_H
#include /**/ "ace/pre.h"
#include "CIAO_Server_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ciao/CCM_ContainerC.h"
#include "tao/Objref_VarOut_T.h"
namespace Components
{
class CCMHome;
typedef CCMHome *CCMHome_ptr;
typedef
TAO_Objref_Var_T<
CCMHome
>
CCMHome_var;
}
namespace CIAO
{
class Session_Container;
/**
* @class Context_Impl_Base
*
* @brief Non-template base class for Context_Impl.
*
* Holds the non-template parts of its child class
* Context_Impl.
*/
class CIAO_SERVER_Export Context_Impl_Base
: public virtual Components::CCMContext
{
public:
/// @todo This constructor should be declarated private but it seems
/// the compilers want it, have to sort this out in detail.
Context_Impl_Base (void);
Context_Impl_Base (Components::CCMHome_ptr home,
Session_Container * c);
virtual ~Context_Impl_Base (void);
// Operations from ::Components::CCMContext.
virtual Components::Principal_ptr
get_caller_principal ()
ACE_THROW_SPEC ((CORBA::SystemException));
virtual Components::CCMHome_ptr
get_CCM_home ()
ACE_THROW_SPEC ((CORBA::SystemException));
virtual CORBA::Boolean
get_rollback_only ()
ACE_THROW_SPEC ((CORBA::SystemException,
Components::IllegalState));
virtual Components::Transaction::UserTransaction_ptr
get_user_transaction ()
ACE_THROW_SPEC ((CORBA::SystemException,
Components::IllegalState));
virtual CORBA::Boolean
is_caller_in_role (const char *role)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void
set_rollback_only ()
ACE_THROW_SPEC ((CORBA::SystemException,
Components::IllegalState));
// CIAO-specific.
CIAO::Session_Container *_ciao_the_Container (void) const;
// Accessors for the private member.
const char *_ciao_instance_id (void) const;
void _ciao_instance_id (const char *instance_id);
protected:
Components::CCMHome_var home_;
Session_Container *container_;
private:
CORBA::String_var ciao_instance_id_;
};
}
#include /**/ "ace/post.h"
#endif /* CIAO_CONTEXT_IMPL_BASE_H */
|