summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/Transport_Current/Current_ORBInitializer.cpp
blob: 74a2cec0f3284a7275a7db26652509fe1f3578ef (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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
// $Id$

#ifndef CURRENT_ORBINITIALIZER_CPP
#define CURRENT_ORBINITIALIZER_CPP

#include "tao/ORB_Constants.h"

#include "orbsvcs/Transport_Current/Current_ORBInitializer.h"

// #if defined (__ACE_INLINE__)
// #include "orbsvcs/Transport_Current/Current_ORBInitializer.inl"
// #endif /* __ACE_INLINE__ */

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

namespace TAO
{
  namespace Transport
  {

    template <typename Impl>
    Current_ORBInitializer<Impl>::Current_ORBInitializer(const ACE_TCHAR* id)
      : Current_ORBInitializer_Base (id)
    {
    }


    template <typename Impl>
    TAO::Transport::Current_ptr
    Current_ORBInitializer<Impl>::make_current_instance (TAO_ORB_Core* core,
                                                         size_t tss_slot_id
                                                         ACE_ENV_ARG_DECL)
      ACE_THROW_SPEC ((CORBA::SystemException))
      {
        // Create the Current
        Current_ptr tmp = 0;
        ACE_NEW_THROW_EX (tmp,
                          Impl (core, tss_slot_id),
                          CORBA::NO_MEMORY
                            (CORBA::SystemException::_tao_minor_code (TAO::VMCID,
                                                                      ENOMEM),
                             CORBA::COMPLETED_NO));
        ACE_CHECK;

        return tmp;
      }

  }

}

TAO_END_VERSIONED_NAMESPACE_DECL

#include /**/ "ace/post.h"

#endif /* CURRENT_ORBINITIALIZER_CPP */
// $Id$

#ifndef CURRENT_ORBINITIALIZER_CPP
#define CURRENT_ORBINITIALIZER_CPP

#include "tao/ORB_Constants.h"

#include "orbsvcs/Transport_Current/Current_ORBInitializer.h"

// #if defined (__ACE_INLINE__)
// #include "orbsvcs/Transport_Current/Current_ORBInitializer.inl"
// #endif /* __ACE_INLINE__ */

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

namespace TAO
{
  namespace Transport
  {

    template <typename Impl>
    Current_ORBInitializer<Impl>::Current_ORBInitializer(const ACE_TCHAR* id)
      : Current_ORBInitializer_Base (id)
    {
    }


    template <typename Impl>
    TAO::Transport::Current_ptr
    Current_ORBInitializer<Impl>::make_current_instance (TAO_ORB_Core* core,
                                                         size_t tss_slot_id
                                                         ACE_ENV_ARG_DECL)
      ACE_THROW_SPEC ((CORBA::SystemException))
      {
        // Create the Current
        Current_ptr tmp = 0;
        ACE_NEW_THROW_EX (tmp,
                          Impl (core, tss_slot_id),
                          CORBA::NO_MEMORY
                            (CORBA::SystemException::_tao_minor_code (TAO::VMCID,
                                                                      ENOMEM),
                             CORBA::COMPLETED_NO));
        ACE_CHECK;

        return tmp;
      }

  }

}

TAO_END_VERSIONED_NAMESPACE_DECL

#include /**/ "ace/post.h"

#endif /* CURRENT_ORBINITIALIZER_CPP */
// $Id$

#ifndef CURRENT_ORBINITIALIZER_CPP
#define CURRENT_ORBINITIALIZER_CPP

#include "tao/ORB_Constants.h"

#include "orbsvcs/Transport_Current/Current_ORBInitializer.h"

// #if defined (__ACE_INLINE__)
// #include "orbsvcs/Transport_Current/Current_ORBInitializer.inl"
// #endif /* __ACE_INLINE__ */

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

namespace TAO
{
  namespace Transport
  {

    template <typename Impl>
    Current_ORBInitializer<Impl>::Current_ORBInitializer(const ACE_TCHAR* id)
      : Current_ORBInitializer_Base (id)
    {
    }


    template <typename Impl>
    TAO::Transport::Current_ptr
    Current_ORBInitializer<Impl>::make_current_instance (TAO_ORB_Core* core,
                                                         size_t tss_slot_id
                                                         ACE_ENV_ARG_DECL)
      ACE_THROW_SPEC ((CORBA::SystemException))
      {
        // Create the Current
        Current_ptr tmp = 0;
        ACE_NEW_THROW_EX (tmp,
                          Impl (core, tss_slot_id),
                          CORBA::NO_MEMORY
                            (CORBA::SystemException::_tao_minor_code (TAO::VMCID,
                                                                      ENOMEM),
                             CORBA::COMPLETED_NO));
        ACE_CHECK;

        return tmp;
      }

  }

}

TAO_END_VERSIONED_NAMESPACE_DECL

#include /**/ "ace/post.h"

#endif /* CURRENT_ORBINITIALIZER_CPP */