PICurrent_Loader.cpp

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 
00003 // =================================================================
00004 /**
00005  * @file PICurrent_Loader.cpp
00006  *
00007  * PICurrent_Loader.cpp,v 1.5 2006/03/10 07:19:12 jtc Exp
00008  *
00009  * @author Johnny Willemsen  <jwillemsen@remedy.nl>
00010  *
00011  */
00012 // =================================================================
00013 
00014 #include "tao/PI/PICurrent_Loader.h"
00015 
00016 #if TAO_HAS_INTERCEPTORS == 1
00017 
00018 #include "tao/PI/PICurrent.h"
00019 
00020 #include "tao/ORB.h"
00021 #include "tao/ORB_Core.h"
00022 #include "tao/debug.h"
00023 
00024 ACE_RCSID (PI,
00025            PICurrent_Loader,
00026            "PICurrent_Loader.cpp,v 1.5 2006/03/10 07:19:12 jtc Exp")
00027 
00028 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00029 
00030 CORBA::Object_ptr
00031 TAO_PICurrent_Loader::create_object (
00032   CORBA::ORB_ptr orb,
00033   int,
00034   ACE_TCHAR *[]
00035   ACE_ENV_ARG_DECL_NOT_USED)
00036     ACE_THROW_SPEC ((CORBA::SystemException))
00037 {
00038   CORBA::Object_ptr obj = CORBA::Object::_nil ();
00039   ACE_NEW_RETURN (obj,
00040                   TAO::PICurrent (*orb->orb_core ()),
00041                   CORBA::Object::_nil ());
00042   return obj;
00043 }
00044 
00045 TAO_END_VERSIONED_NAMESPACE_DECL
00046 
00047 ACE_STATIC_SVC_DEFINE (TAO_PICurrent_Loader,
00048                        ACE_TEXT ("PICurrent_Loader"),
00049                        ACE_SVC_OBJ_T,
00050                        &ACE_SVC_NAME (TAO_PICurrent_Loader),
00051                        ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
00052                        0)
00053 ACE_FACTORY_DEFINE (TAO_PI, TAO_PICurrent_Loader)
00054 
00055 #endif  /* TAO_HAS_INTERCEPTORS == 1 */

Generated on Thu Nov 9 12:51:39 2006 for TAO_PI by doxygen 1.3.6