summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-05-28 19:18:59 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-05-28 19:18:59 +0000
commit4ce73b78b12180d8c707a6c5ab6538c252660788 (patch)
treea7cef0be279d4ca7ebca9b8690d0c655d7d18902 /TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp
parent2702640495f417945a1c59b1fb66a90a720d55b2 (diff)
downloadATCD-4ce73b78b12180d8c707a6c5ab6538c252660788.tar.gz
ChangeLogTag: Tue May 28 14:15:11 2002 Jeff Parsons <parsons@cs.wustl.edu>
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp33
1 files changed, 22 insertions, 11 deletions
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp
index b348b1c519d..0f91a720e28 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp
@@ -14,7 +14,9 @@
#include "ace/Dynamic_Service.h"
#include "ace/Argv_Type_Converter.h"
-ACE_RCSID (IFR_Service, IFR_Service_Loader, "$Id$")
+ACE_RCSID (IFR_Service,
+ IFR_Service_Loader,
+ "$Id$")
TAO_IFR_Service_Loader::TAO_IFR_Service_Loader (void)
{
@@ -27,7 +29,8 @@ TAO_IFR_Service_Loader::~TAO_IFR_Service_Loader (void)
}
int
-TAO_IFR_Service_Loader::init (int argc, ACE_TCHAR *argv[])
+TAO_IFR_Service_Loader::init (int argc,
+ ACE_TCHAR *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
@@ -37,12 +40,18 @@ TAO_IFR_Service_Loader::init (int argc, ACE_TCHAR *argv[])
// Initialize the ORB
CORBA::ORB_var orb =
- CORBA::ORB_init (command_line.get_argc(), command_line.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (command_line.get_argc (),
+ command_line.get_ASCII_argv (),
+ 0
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// This function call initializes the IFR_Service Service
CORBA::Object_var object =
- this->create_object (orb.in (), command_line.get_argc(), command_line.get_TCHAR_argv() ACE_ENV_ARG_PARAMETER);
+ this->create_object (orb.in (),
+ command_line.get_argc (),
+ command_line.get_TCHAR_argv ()
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -63,9 +72,9 @@ TAO_IFR_Service_Loader::fini (void)
CORBA::Object_ptr
TAO_IFR_Service_Loader::create_object (CORBA::ORB_ptr orb,
- int argc,
- ACE_TCHAR *argv[]
- ACE_ENV_ARG_DECL_NOT_USED)
+ int argc,
+ ACE_TCHAR *argv[]
+ ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
int result;
@@ -73,15 +82,17 @@ TAO_IFR_Service_Loader::create_object (CORBA::ORB_ptr orb,
// Initializes the IFR_Service Service. Returns -1
// on an error.
result = this->ifr_server_.init_with_orb (argc,
- argv,
- orb);
+ argv,
+ orb);
if (result == -1)
- return CORBA::Object::_nil ();
+ {
+ return CORBA::Object::_nil ();
+ }
return 0;
}
-ACE_FACTORY_DEFINE (TAO_IFR_Service, TAO_IFR_Service_Loader)
+ACE_FACTORY_DEFINE (TAO_IFRService, TAO_IFR_Service_Loader)
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Dynamic_Service<TAO_IFR_Service_Loader>;