~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/tests/Portable_Interceptors/Dynamic/Echo_Client_ORBInitializer.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// -*- C++ -*-
2
 
//
3
 
// Echo_Client_ORBInitializer.cpp,v 1.5 2002/01/29 20:21:09 okellogg Exp
4
 
 
5
 
#include "Echo_Client_ORBInitializer.h"
6
 
 
7
 
ACE_RCSID (Dynamic, Echo_Client_ORBInitializer, "Echo_Client_ORBInitializer.cpp,v 1.5 2002/01/29 20:21:09 okellogg Exp")
8
 
 
9
 
#if TAO_HAS_INTERCEPTORS == 1
10
 
 
11
 
#include "interceptors.h"
12
 
 
13
 
void
14
 
Echo_Client_ORBInitializer::pre_init (
15
 
    PortableInterceptor::ORBInitInfo_ptr
16
 
    ACE_ENV_ARG_DECL_NOT_USED)
17
 
  ACE_THROW_SPEC ((CORBA::SystemException))
18
 
{
19
 
}
20
 
 
21
 
void
22
 
Echo_Client_ORBInitializer::post_init (
23
 
    PortableInterceptor::ORBInitInfo_ptr info
24
 
    ACE_ENV_ARG_DECL)
25
 
  ACE_THROW_SPEC ((CORBA::SystemException))
26
 
{
27
 
 
28
 
  PortableInterceptor::ClientRequestInterceptor_ptr interceptor =
29
 
    PortableInterceptor::ClientRequestInterceptor::_nil ();
30
 
 
31
 
  // Install the Echo client request interceptor
32
 
  ACE_NEW_THROW_EX (interceptor,
33
 
                    Echo_Client_Request_Interceptor,
34
 
                    CORBA::NO_MEMORY ());
35
 
  ACE_CHECK;
36
 
 
37
 
  PortableInterceptor::ClientRequestInterceptor_var
38
 
    client_interceptor = interceptor;
39
 
 
40
 
  info->add_client_request_interceptor (client_interceptor.in ()
41
 
                                        ACE_ENV_ARG_PARAMETER);
42
 
  ACE_CHECK;
43
 
 
44
 
}
45
 
 
46
 
#endif  /* TAO_HAS_INTERCEPTORS == 1 */