Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / DevGuideExamples / PortableInterceptors / SimpleCodec / ClientInitializer.cpp
blob504fd1a67df724880b1174fea64c0bc1d6521b9b
1 #include "ClientInitializer.h"
2 #include "ClientInterceptor.h"
4 ClientInitializer::ClientInitializer ()
8 void
9 ClientInitializer::pre_init (PortableInterceptor::ORBInitInfo_ptr)
13 void
14 ClientInitializer::post_init (PortableInterceptor::ORBInitInfo_ptr info)
16 // get Codec factory
17 IOP::CodecFactory_var codec_factory = info->codec_factory();
19 // Create and register the request interceptors.
20 PortableInterceptor::ClientRequestInterceptor_var ci =
21 new ClientInterceptor (codec_factory);
22 info->add_client_request_interceptor (ci.in());