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

TAO_CodecFactory_ORBInitializer Class Reference

ORBInitializer for the CodecFactory support. More...

#include <CodecFactory_ORBInitializer.h>

Inheritance diagram for TAO_CodecFactory_ORBInitializer:

Inheritance graph
[legend]
Collaboration diagram for TAO_CodecFactory_ORBInitializer:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)

Detailed Description

ORBInitializer for the CodecFactory support.

This class simply registers the CodecFactory object with the ORB resolve_initial_references() mechanism.

Definition at line 46 of file CodecFactory_ORBInitializer.h.


Member Function Documentation

void TAO_CodecFactory_ORBInitializer::post_init PortableInterceptor::ORBInitInfo_ptr info    ACE_ENV_ARG_DECL_WITH_DEFAULTS throw (CORBA::SystemException) [virtual]
 

Implements PortableInterceptor::ORBInitializer.

Definition at line 46 of file CodecFactory_ORBInitializer.cpp.

References ACE_ENV_ARG_DECL_NOT_USED.

00050 {
00051 }

void TAO_CodecFactory_ORBInitializer::pre_init PortableInterceptor::ORBInitInfo_ptr info    ACE_ENV_ARG_DECL_WITH_DEFAULTS throw (CORBA::SystemException) [virtual]
 

Implements PortableInterceptor::ORBInitializer.

Definition at line 15 of file CodecFactory_ORBInitializer.cpp.

References TAO_ORBInitInfo::_narrow, ACE_CHECK, ACE_ENV_ARG_DECL, ACE_ENV_ARG_PARAMETER, ACE_NEW_THROW_EX, and TAO_DEFAULT_MINOR_CODE.

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 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:09:14 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002