Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CodecFactory_ORBInitializer.cpp

Go to the documentation of this file.
00001 #include "tao_pch.h"
00002 // -*- C++ -*-
00003 //
00004 // $Id: CodecFactory_ORBInitializer.cpp,v 1.1.1.2.2.1 2003/03/14 16:05:12 chad Exp $
00005 
00006 #include "CodecFactory_ORBInitializer.h"
00007 #include "CodecFactory.h"
00008 #include "ORBInitInfo.h"
00009 
00010 ACE_RCSID (TAO_CodecFactory,
00011            CodecFactory_ORBInitializer,
00012            "$Id: CodecFactory_ORBInitializer.cpp,v 1.1.1.2.2.1 2003/03/14 16:05:12 chad Exp $")
00013 
00014 void
00015 TAO_CodecFactory_ORBInitializer::pre_init (
00016     PortableInterceptor::ORBInitInfo_ptr info
00017     ACE_ENV_ARG_DECL)
00018   ACE_THROW_SPEC ((CORBA::SystemException))
00019 {
00020   TAO_ORBInitInfo_var tao_info =
00021     TAO_ORBInitInfo::_narrow (info
00022                               ACE_ENV_ARG_PARAMETER);
00023   ACE_CHECK;
00024 
00025   TAO_ORB_Core * orb_core = tao_info->orb_core ();
00026 
00027   IOP::CodecFactory_ptr codec_factory;
00028   ACE_NEW_THROW_EX (codec_factory,
00029                     TAO_CodecFactory (orb_core),
00030                     CORBA::NO_MEMORY (
00031                       CORBA::SystemException::_tao_minor_code (
00032                         TAO_DEFAULT_MINOR_CODE,
00033                         ENOMEM),
00034                       CORBA::COMPLETED_NO));
00035   ACE_CHECK;
00036 
00037   IOP::CodecFactory_var cf = codec_factory;
00038 
00039   info->register_initial_reference ("CodecFactory",
00040                                     codec_factory
00041                                     ACE_ENV_ARG_PARAMETER);
00042   ACE_CHECK;
00043 }
00044 
00045 void
00046 TAO_CodecFactory_ORBInitializer::post_init (
00047     PortableInterceptor::ORBInitInfo_ptr
00048     ACE_ENV_ARG_DECL_NOT_USED)
00049   ACE_THROW_SPEC ((CORBA::SystemException))
00050 {
00051 }

Generated on Mon Jun 16 13:48:04 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002