diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
commit | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (patch) | |
tree | da50d054f9c761c3f6a5923f6979e93306c56d68 /TAO/orbsvcs/Trading_Service | |
parent | 0e555b9150d38e3b3473ba325b56db2642e6352b (diff) | |
download | ATCD-6b846cf03c0bcbd8c276cb0af61a181e5f98eaae.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/orbsvcs/Trading_Service')
-rw-r--r-- | TAO/orbsvcs/Trading_Service/.cvsignore | 1 | ||||
-rw-r--r-- | TAO/orbsvcs/Trading_Service/Makefile.am | 55 | ||||
-rw-r--r-- | TAO/orbsvcs/Trading_Service/README | 10 | ||||
-rw-r--r-- | TAO/orbsvcs/Trading_Service/Trading_Server.cpp | 37 | ||||
-rw-r--r-- | TAO/orbsvcs/Trading_Service/Trading_Service.cpp | 87 | ||||
-rw-r--r-- | TAO/orbsvcs/Trading_Service/Trading_Service.h | 84 | ||||
-rw-r--r-- | TAO/orbsvcs/Trading_Service/Trading_Service.mpc | 7 |
7 files changed, 0 insertions, 281 deletions
diff --git a/TAO/orbsvcs/Trading_Service/.cvsignore b/TAO/orbsvcs/Trading_Service/.cvsignore deleted file mode 100644 index 6306e1e35ed..00000000000 --- a/TAO/orbsvcs/Trading_Service/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Trading_Service diff --git a/TAO/orbsvcs/Trading_Service/Makefile.am b/TAO/orbsvcs/Trading_Service/Makefile.am deleted file mode 100644 index 611a96415c7..00000000000 --- a/TAO/orbsvcs/Trading_Service/Makefile.am +++ /dev/null @@ -1,55 +0,0 @@ -## Process this file with automake to create Makefile.in -## -## $Id$ -## -## This file was generated by MPC. Any changes made directly to -## this file will be lost the next time it is generated. -## -## MPC Command: -## ../bin/mwc.pl -type automake -noreldefs TAO.mwc - -ACE_BUILDDIR = $(top_builddir)/.. -ACE_ROOT = $(top_srcdir)/.. -TAO_BUILDDIR = $(top_builddir) -TAO_ROOT = $(top_srcdir) - -## Makefile.Trading_Service.am - -bin_PROGRAMS = Trading_Service - -Trading_Service_CPPFLAGS = \ - -I$(ACE_ROOT) \ - -I$(ACE_BUILDDIR) \ - -I$(TAO_ROOT) \ - -I$(TAO_BUILDDIR) \ - -I$(TAO_ROOT)/orbsvcs \ - -I$(TAO_BUILDDIR)/orbsvcs - -Trading_Service_SOURCES = \ - Trading_Server.cpp \ - Trading_Service.cpp \ - Trading_Service.h - -Trading_Service_LDADD = \ - $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosTrading_Serv.la \ - $(TAO_BUILDDIR)/tao/libTAO_IORTable.la \ - $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_Svc_Utils.la \ - $(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \ - $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosTrading_Skel.la \ - $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosTrading.la \ - $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \ - $(TAO_BUILDDIR)/tao/libTAO_Utils.la \ - $(TAO_BUILDDIR)/tao/libTAO_PI.la \ - $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \ - $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \ - $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \ - $(TAO_BUILDDIR)/tao/libTAO.la \ - $(ACE_BUILDDIR)/ace/libACE.la - -## Clean up template repositories, etc. -clean-local: - -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.* - -rm -f gcctemp.c gcctemp so_locations *.ics - -rm -rf cxx_repository ptrepository ti_files - -rm -rf templateregistry ir.out - -rm -rf ptrepository SunWS_cache Templates.DB diff --git a/TAO/orbsvcs/Trading_Service/README b/TAO/orbsvcs/Trading_Service/README deleted file mode 100644 index 4aec9cb0b2f..00000000000 --- a/TAO/orbsvcs/Trading_Service/README +++ /dev/null @@ -1,10 +0,0 @@ -$Id$ - -The TAO Trading Service - -Thank you for your interest in the TAO trading service. Documentation -on using the Trading Service and its tests can be found in: - - $TAO_ROOT/docs/releasenotes/trader.html - -Enjoy!
\ No newline at end of file diff --git a/TAO/orbsvcs/Trading_Service/Trading_Server.cpp b/TAO/orbsvcs/Trading_Service/Trading_Server.cpp deleted file mode 100644 index 21bbeee0fa2..00000000000 --- a/TAO/orbsvcs/Trading_Service/Trading_Server.cpp +++ /dev/null @@ -1,37 +0,0 @@ -// $Id$ - -#include "Trading_Service.h" -#include "ace/OS_main.h" - -// Driver function for the TAO Trading Service. - -int -ACE_TMAIN (int argc, ACE_TCHAR* argv[]) -{ - Trading_Service trader; - - ACE_TRY_NEW_ENV - { - int check = - trader.init (argc, argv ACE_ENV_ARG_PARAMETER); - ACE_TRY_CHECK; - - if (check != -1) - { - trader.run (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_TRY_CHECK; - } - else - ACE_ERROR_RETURN ((LM_ERROR, - "Failed to initialize the trader.\n"), - 1); - } - ACE_CATCHANY - { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Trading Service"); - return 1; - } - ACE_ENDTRY; - - return 0; -} diff --git a/TAO/orbsvcs/Trading_Service/Trading_Service.cpp b/TAO/orbsvcs/Trading_Service/Trading_Service.cpp deleted file mode 100644 index d77402f07e2..00000000000 --- a/TAO/orbsvcs/Trading_Service/Trading_Service.cpp +++ /dev/null @@ -1,87 +0,0 @@ -// $Id$ - -#include "ace/OS.h" -#include "ace/Arg_Shifter.h" -#include "Trading_Service.h" - -ACE_RCSID(Trading_Service, Trading_Service, "$Id$") - -Trading_Shutdown::Trading_Shutdown (Trading_Service& trader) - : trader_ (trader) -{ - if (this->shutdown_.register_handler (SIGINT, - this) == -1) - ACE_ERROR ((LM_ERROR, - ACE_TEXT("%p\n"), - ACE_TEXT("register_handler"))); - -#ifndef ACE_HAS_WINCE - if (this->shutdown_.register_handler (SIGTERM, - this) == -1) - ACE_ERROR ((LM_ERROR, - ACE_TEXT("%p\n"), - ACE_TEXT("register_handler"))); -#endif // ACE_HAS_WINCE -} - -int -Trading_Shutdown::handle_signal (int signum, - siginfo_t *sinfo, - ucontext_t *ucon) -{ - ACE_UNUSED_ARG (signum); - ACE_UNUSED_ARG (sinfo); - ACE_UNUSED_ARG (ucon); - this->trader_.~Trading_Service (); - ACE_OS::exit (0); - return 0; -} - -Trading_Service::Trading_Service (void) -{ - // constructor -} - -Trading_Service::~Trading_Service (void) -{ - this->shutdown (); -} - -int -Trading_Service::init (int argc, - ACE_TCHAR *argv[] - ACE_ENV_ARG_DECL_NOT_USED) -{ - int result_trader = - this->trading_loader_.init (argc, argv); - - if (result_trader == -1) - return -1; - - return 0; -} - -int -Trading_Service::run (ACE_ENV_SINGLE_ARG_DECL) -{ - Trading_Shutdown trading_shutdown (*this); - - int return_value = - this->trading_loader_.run (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_CHECK_RETURN (-1); - - return return_value; -} - -int -Trading_Service::shutdown (void) -{ - // Invoke TAO_Trading_Loader::fini () - int shutdown_result = - this->trading_loader_.fini (); - - if (shutdown_result == -1) - return -1; - - return 0; -} diff --git a/TAO/orbsvcs/Trading_Service/Trading_Service.h b/TAO/orbsvcs/Trading_Service/Trading_Service.h deleted file mode 100644 index 951b67e6ecf..00000000000 --- a/TAO/orbsvcs/Trading_Service/Trading_Service.h +++ /dev/null @@ -1,84 +0,0 @@ -// -*- C++ -*- -// -// $Id$ - -// ======================================================================== -// -// = BINARY -// trader -// -// = FILENAME -// Trading_Service.h -// -// = AUTHOR -// Seth Widoff <sbw1@cs.wustl.edu> -// -// ======================================================================= - -#ifndef _TRADING_SERVICE_H -#define _TRADING_SERVICE_H - -#include "ace/Auto_Ptr.h" -#include "ace/Sig_Handler.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "orbsvcs/IOR_Multicast.h" -#include "orbsvcs/Trader/Trader.h" -#include "orbsvcs/Trader/Service_Type_Repository.h" -#include "orbsvcs/Trader/Trading_Loader.h" - -class Trading_Service; - -class Trading_Shutdown : public ACE_Event_Handler -{ - // = TITLE - // A class that shutsdown a Trading Service instance. -public: - Trading_Shutdown (Trading_Service& trader); - // Constructor. - - virtual int handle_signal (int, - siginfo_t *, - ucontext_t *); - // Signal handler. - -protected: - Trading_Service &trader_; - ACE_Sig_Handler shutdown_; -}; - -class Trading_Service -{ - // = TITLE - // A class that initializes a Trading Service instance. -public: - - Trading_Service (void); - // Default constructor. - - ~Trading_Service (void); - // Destructor - - int init (int argc, - ACE_TCHAR *argv[] - ACE_ENV_ARG_DECL); - // Initialize the Trading Service with arguments. - - int run (ACE_ENV_SINGLE_ARG_DECL); - // Run the Trading Service. - - int shutdown (void); - -protected: - - auto_ptr<TAO_Trader_Factory::TAO_TRADER> trader_; - // Pointer to the linked trader. - - TAO_Trading_Loader trading_loader_; - // Instance of TAO_Trading_Laoder -}; - -#endif /* _TRADING_SERVICE_H */ diff --git a/TAO/orbsvcs/Trading_Service/Trading_Service.mpc b/TAO/orbsvcs/Trading_Service/Trading_Service.mpc deleted file mode 100644 index 0e44f51f0b6..00000000000 --- a/TAO/orbsvcs/Trading_Service/Trading_Service.mpc +++ /dev/null @@ -1,7 +0,0 @@ -// -*- MPC -*- -// $Id$ - -project : orbsvcsexe, utils, core, naming, trading_serv { - exename = Trading_Service -} - |