diff options
Diffstat (limited to 'TAO/orbsvcs/tests/FT_App/FTAPP_FactoryRegistry_Main.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/FT_App/FTAPP_FactoryRegistry_Main.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/FT_App/FTAPP_FactoryRegistry_Main.cpp b/TAO/orbsvcs/tests/FT_App/FTAPP_FactoryRegistry_Main.cpp new file mode 100644 index 00000000000..af2524a1fe1 --- /dev/null +++ b/TAO/orbsvcs/tests/FT_App/FTAPP_FactoryRegistry_Main.cpp @@ -0,0 +1,33 @@ +/* -*- C++ -*- */ +//============================================================================= +/** + * @file FTAPP_FactoryRegistry_Main.cpp + * + * $Id$ + * + * This file is part of Fault Tolerant CORBA. + * This file provides the main routine for a stub FactoryRegistry + * + * @author Dale Wilson <wilson_d@ociweb.com> + */ +//============================================================================= + +#include <tao/Utils/Server_Main.h> +#include <orbsvcs/PortableGroup/PG_FactoryRegistry.h> + +int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) +{ + TAO::Utils::Server_Main<TAO::PG_FactoryRegistry> server_main("FactoryRegistry"); + return server_main.run(argc, argv); +} + +/////////////////////////////////// +// Template instantiation for +// inept compilers. + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + template class TAO::Utils::Server_Main<TAO::PG_FactoryRegistry>; +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) +# pragma instantiate TAO::Utils::Server_Main<TAO::PG_FactoryRegistry> +#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + |