summaryrefslogtreecommitdiff
path: root/TAO/tao/TransportCurrent/Current_ORBInitializer_Base.h
blob: 38b6cc903dc30ab06ab0a1f5d295709fc9a042e7 (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
/* -*- C++ -*- */

//=============================================================================
/**
 *  @file    Current_ORBInitializer_Base.h
 *
 *  $Id$
 *
 *  @author Iliyan Jeliazkov <iliyan@ociweb.com>
 */
//=============================================================================


#ifndef CURRENT_ORBINITIALIZER_BASE_H
#define CURRENT_ORBINITIALIZER_BASE_H

#include /**/ "ace/pre.h"
#include /**/ "tao/TransportCurrent/Transport_Current_Export.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "ace/SString.h"
#include "tao/PI/PI.h"

#include "tao/TransportCurrent/TCC.h"

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

namespace TAO
{
  namespace Transport
  {

    class TAO_Transport_Current_Export Current_ORBInitializer_Base :
      public  PortableInterceptor::ORBInitializer
      {
      public:
        Current_ORBInitializer_Base (const ACE_TCHAR* id);
        virtual ~Current_ORBInitializer_Base (void);

        virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr
                               ACE_ENV_ARG_DECL_NOT_USED )
          ACE_THROW_SPEC( (CORBA::SystemException) );

        virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info
                                ACE_ENV_ARG_DECL_NOT_USED )
          ACE_THROW_SPEC( (CORBA::SystemException) );

      protected:
        virtual TAO::Transport::Current_ptr
        make_current_instance (TAO_ORB_Core* core,
                               size_t tss_slot_id
                               ACE_ENV_ARG_DECL)
          ACE_THROW_SPEC ((CORBA::SystemException)) = 0;

      protected:
        const ACE_TString id_;
      };

  }

}

TAO_END_VERSIONED_NAMESPACE_DECL

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

#endif /* CURRENT_ORBINITIALIZER_BASE_H */