summaryrefslogtreecommitdiff
path: root/CIAO/examples/Display/GPS
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/examples/Display/GPS')
-rw-r--r--CIAO/examples/Display/GPS/GPS.cidl19
-rw-r--r--CIAO/examples/Display/GPS/GPS.idl29
-rw-r--r--CIAO/examples/Display/GPS/GPS.mpc83
-rw-r--r--CIAO/examples/Display/GPS/GPSEI.idl33
-rw-r--r--CIAO/examples/Display/GPS/GPS_exec.cpp171
-rw-r--r--CIAO/examples/Display/GPS/GPS_exec.h141
-rw-r--r--CIAO/examples/Display/GPS/GPS_exec_export.h58
-rw-r--r--CIAO/examples/Display/GPS/GPS_stub_export.h58
-rw-r--r--CIAO/examples/Display/GPS/GPS_svnt_export.h58
-rw-r--r--CIAO/examples/Display/GPS/GPS_tracing_exec.cpp160
-rw-r--r--CIAO/examples/Display/GPS/GPS_tracing_exec.h135
11 files changed, 0 insertions, 945 deletions
diff --git a/CIAO/examples/Display/GPS/GPS.cidl b/CIAO/examples/Display/GPS/GPS.cidl
deleted file mode 100644
index 7fe6e4dbd64..00000000000
--- a/CIAO/examples/Display/GPS/GPS.cidl
+++ /dev/null
@@ -1,19 +0,0 @@
-// $Id$ -*- IDL -*-
-
-#ifndef GPS_CIDL
-#define GPS_CIDL
-
-#include "GPS.idl"
-
-composition session GPS_Impl
-{
- home executor GPSHome_exec
- {
- implements HUDisplay::GPSHome;
- manages GPS_exec;
- };
-};
-
-#endif /* GPS_CIDL */
-
-//$Id$
diff --git a/CIAO/examples/Display/GPS/GPS.idl b/CIAO/examples/Display/GPS/GPS.idl
deleted file mode 100644
index a3a437d98db..00000000000
--- a/CIAO/examples/Display/GPS/GPS.idl
+++ /dev/null
@@ -1,29 +0,0 @@
-// $Id$
-
-/**
- * @file GPS.idl
- *
- * Definition of the GPS component.
- *
- * @author Nanbor Wang <nanbor@cs.wustl.edu>
- */
-#ifndef GPS_IDL
-#define GPS_IDL
-
-#include "../Display_Base/Display_Base.idl"
-
-module HUDisplay
-{
- component GPS
- {
- provides position MyLocation;
- publishes tick Ready;
- consumes tick Refresh;
- };
-
- home GPSHome manages GPS
- {
- };
-};
-
-#endif /* GPS_IDL */
diff --git a/CIAO/examples/Display/GPS/GPS.mpc b/CIAO/examples/Display/GPS/GPS.mpc
deleted file mode 100644
index 1846215380e..00000000000
--- a/CIAO/examples/Display/GPS/GPS.mpc
+++ /dev/null
@@ -1,83 +0,0 @@
-// $Id$
-// This file is generated with "generate_component_mpc.pl -p Display_Base GPS"
-
-project(Display_Base_GPS_stub): ciao_client_dnc {
- after += Display_Base_stub
- sharedname = GPS_stub
- idlflags += -St \
- -Wb,stub_export_macro=GPS_STUB_Export \
- -Wb,stub_export_include=GPS_stub_export.h \
- -Wb,skel_export_macro=GPS_SVNT_Export \
- -Wb,skel_export_include=GPS_svnt_export.h
- dynamicflags = GPS_STUB_BUILD_DLL
- libs += Display_Base_stub
-
- IDL_Files {
- GPS.idl
- }
-
- Source_Files {
- GPSC.cpp
- }
-
- Header_Files {
- GPS_stub_export.h
- }
-}
-
-project(Display_Base_GPS_svnt) : ciao_servant_dnc {
- after += Display_Base_skel Display_Base_GPS_stub
- sharedname = GPS_svnt
- libs += GPS_stub Display_Base_stub Display_Base_skel
-
- idlflags += -SS -St \
- -Wb,export_macro=GPS_SVNT_Export \
- -Wb,export_include=GPS_svnt_export.h
- dynamicflags = GPS_SVNT_BUILD_DLL
-
- CIDL_Files {
- GPS.cidl
- }
-
- IDL_Files {
- GPSE.idl
- }
-
- Source_Files {
- GPSEC.cpp
- GPSS.cpp
- GPS_svnt.cpp
- }
-
- Header_Files {
- GPS_svnt_export.h
- }
-}
-
-
-project(Display_Base_GPS_exec) : ciao_component_dnc {
- after += Display_Base_GPS_svnt
- sharedname = GPS_exec
- libs += GPS_stub GPS_svnt Display_Base_stub Display_Base_skel
-
- idlflags += -SS -St \
- -Wb,export_macro=GPS_EXEC_Export \
- -Wb,export_include=GPS_exec_export.h
- dynamicflags = GPS_EXEC_BUILD_DLL
-
- IDL_Files {
- GPSEI.idl
- }
-
- Source_Files {
- GPSEIC.cpp
- GPS_exec.cpp
- }
-
- Header_Files {
- GPS_exec_export.h
- }
-}
-
-
-
diff --git a/CIAO/examples/Display/GPS/GPSEI.idl b/CIAO/examples/Display/GPS/GPSEI.idl
deleted file mode 100644
index d7604931f58..00000000000
--- a/CIAO/examples/Display/GPS/GPSEI.idl
+++ /dev/null
@@ -1,33 +0,0 @@
-// $Id$
-
-/**
- * @file GPSEI.idl
- *
- * Definition of the GPS component implementation.
- *
- * @author Nanbor Wang <nanbor@cs.wustl.edu>
- */
-
-#ifndef GPSEI_IDL
-#define GPSEI_IDL
-
-#include "GPSE.idl"
-
-module HUDisplay
-{
- /**
- * @interface GPS_Exec
- *
- * The actually GPS executor inherits from both CCM_GPS and
- * CCM_position interfaces as a monolithic implementation.
- */
- local interface GPS_Exec :
- CCM_GPS,
- CCM_position,
- Components::SessionComponent
- {
- };
-
-};
-
-#endif /* GPSEI_IDL */
diff --git a/CIAO/examples/Display/GPS/GPS_exec.cpp b/CIAO/examples/Display/GPS/GPS_exec.cpp
deleted file mode 100644
index e19fb3aa7a6..00000000000
--- a/CIAO/examples/Display/GPS/GPS_exec.cpp
+++ /dev/null
@@ -1,171 +0,0 @@
-// $Id$
-
-#include "GPS_exec.h"
-#include "CIAO_common.h"
-
-#include "ace/OS_NS_time.h"
-
-#define DISPLACEMENT 256
-
-// Operations from HUDisplay::position
-CORBA::Long
-MyImpl::Position_Impl::posx (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return component_.posx();
-}
-
-CORBA::Long
-MyImpl::Position_Impl::posy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return component_.posy();
-}
-
-
-/// Default constructor.
-MyImpl::GPS_exec_i::GPS_exec_i ()
-{
- ACE_OS::srand ((u_int) ACE_OS::time ());
- this->positionx_ = ACE_OS::rand ();
- this->positiony_ = ACE_OS::rand ();
-}
-
-/// Default destructor.
-MyImpl::GPS_exec_i::~GPS_exec_i ()
-{
-}
-
-// Operations from HUDisplay::GPS
- HUDisplay::CCM_position_ptr
- MyImpl::GPS_exec_i::get_MyLocation (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
-// ACE_DEBUG ((LM_DEBUG,
-// "GPS_exec::get_MyLocation called\n "));
- return (new Position_Impl (*this));
- }
-
-void
-MyImpl::GPS_exec_i::push_Refresh (HUDisplay::tick *
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-// ACE_DEBUG ((LM_DEBUG,
-// ACE_TEXT ("GPS: Received Refresh Event\n")));
-
- // Refresh position
- this->positionx_ += ACE_OS::rand () % DISPLACEMENT - (DISPLACEMENT/2);
- this->positiony_ += ACE_OS::rand () % DISPLACEMENT - (DISPLACEMENT/2);
-
- // Nitify others
- HUDisplay::tick_var event = new OBV_HUDisplay::tick;
-
- this->context_->push_Ready (event
- ACE_ENV_ARG_PARAMETER);
-}
-
-CORBA::Long
-MyImpl::GPS_exec_i::posx (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return this->positionx_;
-}
-
-CORBA::Long
-MyImpl::GPS_exec_i::posy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return this->positiony_;
-}
-
-
-// Operations from Components::SessionComponent
-void
-MyImpl::GPS_exec_i::set_session_context (Components::SessionContext_ptr ctx
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
- if (CIAO::debug_level () > 0)
- ACE_DEBUG ((LM_DEBUG, "MyImpl::GPS_exec_i::set_session_context\n"));
-
- this->context_ =
- HUDisplay::CCM_GPS_Context::_narrow (ctx
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (CORBA::is_nil (this->context_.in ()))
- ACE_THROW (CORBA::INTERNAL ());
- // Urm, we actually discard exceptions thown from this operation.
-}
-
-void
-MyImpl::GPS_exec_i::ciao_preactivate (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
-}
-
-void
-MyImpl::GPS_exec_i::ccm_activate (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
- if (CIAO::debug_level () > 0)
- ACE_DEBUG ((LM_DEBUG, "MyImpl::GPS_exec_i::ccm_activate\n"));
-}
-
-void
-MyImpl::GPS_exec_i::ciao_postactivate (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
-}
-
-void
-MyImpl::GPS_exec_i::ccm_passivate (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
- if (CIAO::debug_level () > 0)
- ACE_DEBUG ((LM_DEBUG, "MyImpl::GPS_exec_i::ccm_passivate\n"));
-}
-
-void
-MyImpl::GPS_exec_i::ccm_remove (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
- if (CIAO::debug_level () > 0)
- ACE_DEBUG ((LM_DEBUG, "MyImpl::GPS_exec_i::ccm_remove\n"));
-}
-
-/// Default ctor.
-MyImpl::GPSHome_exec_i::GPSHome_exec_i ()
-{
-}
-
-/// Default dtor.
-MyImpl::GPSHome_exec_i::~GPSHome_exec_i ()
-{
-}
-
-// Explicit home operations.
-
-// Implicit home operations.
-
-::Components::EnterpriseComponent_ptr
-MyImpl::GPSHome_exec_i::create (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
- return new MyImpl::GPS_exec_i;
-}
-
-
-extern "C" GPS_EXEC_Export ::Components::HomeExecutorBase_ptr
-createGPSHome_Impl (void)
-{
- return new MyImpl::GPSHome_exec_i();
-}
diff --git a/CIAO/examples/Display/GPS/GPS_exec.h b/CIAO/examples/Display/GPS/GPS_exec.h
deleted file mode 100644
index 079176b7ce9..00000000000
--- a/CIAO/examples/Display/GPS/GPS_exec.h
+++ /dev/null
@@ -1,141 +0,0 @@
-/**
- * @file GPS_exec.h
- * $Id$
- * Header file for the GPS component implementation.
- *
- */
-
-#ifndef GPS_EXEC_H
-#define GPS_EXEC_H
-
-#include "GPS_exec_export.h"
-#include "GPSEC.h"
-#include "CIAO_common.h"
-#include "ace/OS_NS_time.h"
-#include "tao/LocalObject.h"
-
-#define DISPLACEMENT 256
-
-namespace MyImpl
-{
- /**
- * @class GPS_exec_i
- *
- * GPS executor implementation class.
- */
- class GPS_EXEC_Export GPS_exec_i :
- public virtual CIDL_GPS_Impl::GPS_exec,
- public virtual TAO_Local_RefCounted_Object
- {
-
- public:
- /// Default constructor.
- GPS_exec_i ();
-
- /// Default destructor.
- ~GPS_exec_i ();
-
- // Operations from HUDisplay::GPS
- HUDisplay::CCM_position_ptr get_MyLocation (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- void push_Refresh (HUDisplay::tick * ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- // Operations from HUDisplay::position
- CORBA::Long posx (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- CORBA::Long posy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- // Operations from Components::SessionComponent
- void set_session_context (Components::SessionContext_ptr ctx
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException));
-
- void ciao_preactivate (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException));
-
- void ccm_activate (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException));
-
- void ciao_postactivate (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException));
-
- void ccm_passivate (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException));
-
- void ccm_remove (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException));
-
- protected:
- // Component specific context
- HUDisplay::CCM_GPS_Context_var context_;
-
- private:
- CORBA::Long positionx_, positiony_;
- };
-
-
- /**
- * @class GPSHome_exec_i
- *
- * GPS home executor implementation class.
- */
- class GPS_EXEC_Export GPSHome_exec_i :
- public virtual HUDisplay::CCM_GPSHome,
- public virtual TAO_Local_RefCounted_Object
- {
- public:
- /// Default ctor.
- GPSHome_exec_i ();
-
- /// Default dtor.
- ~GPSHome_exec_i ();
-
- // Explicit home operations
-/* virtual ::Components::EnterpriseComponent_ptr */
-/* new_GPS (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) */
-/* ACE_THROW_SPEC ((CORBA::SystemException)); */
-
- // Implicit home operations
- virtual ::Components::EnterpriseComponent_ptr
- create (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException));
- };
-
-
- class Position_Impl : public virtual HUDisplay::CCM_position,
- public virtual TAO_Local_RefCounted_Object
- {
- public:
- Position_Impl (GPS_exec_i& component)
- : component_ (component)
- {
- }
-
- // Operations from HUDisplay::position
- CORBA::Long posx (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- CORBA::Long posy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- private:
- GPS_exec_i& component_;
- };
-
-}
-
-extern "C" GPS_EXEC_Export ::Components::HomeExecutorBase_ptr
-createGPSHome_Impl (void);
-
-#endif /* GPS_EXEC_H */
diff --git a/CIAO/examples/Display/GPS/GPS_exec_export.h b/CIAO/examples/Display/GPS/GPS_exec_export.h
deleted file mode 100644
index 0a8c3fdec7f..00000000000
--- a/CIAO/examples/Display/GPS/GPS_exec_export.h
+++ /dev/null
@@ -1,58 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl GPS_EXEC
-// ------------------------------
-#ifndef GPS_EXEC_EXPORT_H
-#define GPS_EXEC_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (ACE_AS_STATIC_LIBS) && !defined (GPS_EXEC_HAS_DLL)
-# define GPS_EXEC_HAS_DLL 0
-#endif /* ACE_AS_STATIC_LIBS && GPS_EXEC_HAS_DLL */
-
-#if !defined (GPS_EXEC_HAS_DLL)
-# define GPS_EXEC_HAS_DLL 1
-#endif /* ! GPS_EXEC_HAS_DLL */
-
-#if defined (GPS_EXEC_HAS_DLL) && (GPS_EXEC_HAS_DLL == 1)
-# if defined (GPS_EXEC_BUILD_DLL)
-# define GPS_EXEC_Export ACE_Proper_Export_Flag
-# define GPS_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define GPS_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* GPS_EXEC_BUILD_DLL */
-# define GPS_EXEC_Export ACE_Proper_Import_Flag
-# define GPS_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define GPS_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* GPS_EXEC_BUILD_DLL */
-#else /* GPS_EXEC_HAS_DLL == 1 */
-# define GPS_EXEC_Export
-# define GPS_EXEC_SINGLETON_DECLARATION(T)
-# define GPS_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* GPS_EXEC_HAS_DLL == 1 */
-
-// Set GPS_EXEC_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (GPS_EXEC_NTRACE)
-# if (ACE_NTRACE == 1)
-# define GPS_EXEC_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define GPS_EXEC_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !GPS_EXEC_NTRACE */
-
-#if (GPS_EXEC_NTRACE == 1)
-# define GPS_EXEC_TRACE(X)
-#else /* (GPS_EXEC_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define GPS_EXEC_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (GPS_EXEC_NTRACE == 1) */
-
-#endif /* GPS_EXEC_EXPORT_H */
-
-// End of auto generated file.
diff --git a/CIAO/examples/Display/GPS/GPS_stub_export.h b/CIAO/examples/Display/GPS/GPS_stub_export.h
deleted file mode 100644
index 814897bfc05..00000000000
--- a/CIAO/examples/Display/GPS/GPS_stub_export.h
+++ /dev/null
@@ -1,58 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl GPS_STUB
-// ------------------------------
-#ifndef GPS_STUB_EXPORT_H
-#define GPS_STUB_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (ACE_AS_STATIC_LIBS) && !defined (GPS_STUB_HAS_DLL)
-# define GPS_STUB_HAS_DLL 0
-#endif /* ACE_AS_STATIC_LIBS && GPS_STUB_HAS_DLL */
-
-#if !defined (GPS_STUB_HAS_DLL)
-# define GPS_STUB_HAS_DLL 1
-#endif /* ! GPS_STUB_HAS_DLL */
-
-#if defined (GPS_STUB_HAS_DLL) && (GPS_STUB_HAS_DLL == 1)
-# if defined (GPS_STUB_BUILD_DLL)
-# define GPS_STUB_Export ACE_Proper_Export_Flag
-# define GPS_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define GPS_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* GPS_STUB_BUILD_DLL */
-# define GPS_STUB_Export ACE_Proper_Import_Flag
-# define GPS_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define GPS_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* GPS_STUB_BUILD_DLL */
-#else /* GPS_STUB_HAS_DLL == 1 */
-# define GPS_STUB_Export
-# define GPS_STUB_SINGLETON_DECLARATION(T)
-# define GPS_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* GPS_STUB_HAS_DLL == 1 */
-
-// Set GPS_STUB_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (GPS_STUB_NTRACE)
-# if (ACE_NTRACE == 1)
-# define GPS_STUB_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define GPS_STUB_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !GPS_STUB_NTRACE */
-
-#if (GPS_STUB_NTRACE == 1)
-# define GPS_STUB_TRACE(X)
-#else /* (GPS_STUB_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define GPS_STUB_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (GPS_STUB_NTRACE == 1) */
-
-#endif /* GPS_STUB_EXPORT_H */
-
-// End of auto generated file.
diff --git a/CIAO/examples/Display/GPS/GPS_svnt_export.h b/CIAO/examples/Display/GPS/GPS_svnt_export.h
deleted file mode 100644
index d601c703018..00000000000
--- a/CIAO/examples/Display/GPS/GPS_svnt_export.h
+++ /dev/null
@@ -1,58 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl GPS_SVNT
-// ------------------------------
-#ifndef GPS_SVNT_EXPORT_H
-#define GPS_SVNT_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (ACE_AS_STATIC_LIBS) && !defined (GPS_SVNT_HAS_DLL)
-# define GPS_SVNT_HAS_DLL 0
-#endif /* ACE_AS_STATIC_LIBS && GPS_SVNT_HAS_DLL */
-
-#if !defined (GPS_SVNT_HAS_DLL)
-# define GPS_SVNT_HAS_DLL 1
-#endif /* ! GPS_SVNT_HAS_DLL */
-
-#if defined (GPS_SVNT_HAS_DLL) && (GPS_SVNT_HAS_DLL == 1)
-# if defined (GPS_SVNT_BUILD_DLL)
-# define GPS_SVNT_Export ACE_Proper_Export_Flag
-# define GPS_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define GPS_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* GPS_SVNT_BUILD_DLL */
-# define GPS_SVNT_Export ACE_Proper_Import_Flag
-# define GPS_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define GPS_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* GPS_SVNT_BUILD_DLL */
-#else /* GPS_SVNT_HAS_DLL == 1 */
-# define GPS_SVNT_Export
-# define GPS_SVNT_SINGLETON_DECLARATION(T)
-# define GPS_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* GPS_SVNT_HAS_DLL == 1 */
-
-// Set GPS_SVNT_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (GPS_SVNT_NTRACE)
-# if (ACE_NTRACE == 1)
-# define GPS_SVNT_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define GPS_SVNT_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !GPS_SVNT_NTRACE */
-
-#if (GPS_SVNT_NTRACE == 1)
-# define GPS_SVNT_TRACE(X)
-#else /* (GPS_SVNT_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define GPS_SVNT_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (GPS_SVNT_NTRACE == 1) */
-
-#endif /* GPS_SVNT_EXPORT_H */
-
-// End of auto generated file.
diff --git a/CIAO/examples/Display/GPS/GPS_tracing_exec.cpp b/CIAO/examples/Display/GPS/GPS_tracing_exec.cpp
deleted file mode 100644
index e9374a8fc54..00000000000
--- a/CIAO/examples/Display/GPS/GPS_tracing_exec.cpp
+++ /dev/null
@@ -1,160 +0,0 @@
-// $Id$
-
-#include "GPS_tracing_exec.h"
-#include "CIAO_common.h"
-
-#include "ace/OS_NS_time.h"
-
-#define DISPLACEMENT 256
-
-/// Default constructor.
-MyImpl::GPS_tracing_exec_i::GPS_tracing_exec_i () : dx_(1), dy_(1)
-{
- ACE_OS::srand ((u_int) ACE_OS::time ());
-
- this->positionx_ = 20;
- this->positiony_ = 25;
-}
-
-/// Default destructor.
-MyImpl::GPS_tracing_exec_i::~GPS_tracing_exec_i ()
-{
-}
-
-// Operations from HUDisplay::GPS
-
-HUDisplay::CCM_position_ptr
-MyImpl::GPS_tracing_exec_i::get_MyLocation (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return HUDisplay::CCM_position::_duplicate (this);
-}
-
-void
-MyImpl::GPS_tracing_exec_i::push_Refresh (HUDisplay::tick *
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // Refresh position
- if(this->positionx_ > 500) this->dx_ = -1;
- if(this->positionx_ < 10) this->dx_ = 1;
- if(this->positiony_ > 300) this->dy_ = -1;
- if(this->positiony_ < 10) this->dy_ = 1;
-
- this->positionx_ += this->dx_;
- this->positiony_ += this->dy_;
-
- // Nitify others
- HUDisplay::tick_var event = new OBV_HUDisplay::tick;
-
- this->context_->push_Ready (event
- ACE_ENV_ARG_PARAMETER);
-}
-
-// Operations from HUDisplay::position
-
-CORBA::Long
-MyImpl::GPS_tracing_exec_i::posx (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return this->positionx_;
-}
-
-CORBA::Long
-MyImpl::GPS_tracing_exec_i::posy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return this->positiony_;
-}
-
-// Operations from Components::SessionComponent
-void
-MyImpl::GPS_tracing_exec_i::set_session_context (
- Components::SessionContext_ptr ctx
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
- if (CIAO::debug_level () > 0)
- ACE_DEBUG ((LM_DEBUG,
- "MyImpl::GPS_tracing_exec_i::set_session_context\n"));
-
- this->context_ =
- HUDisplay::CCM_GPS_Context::_narrow (ctx
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (CORBA::is_nil (this->context_.in ()))
- ACE_THROW (CORBA::INTERNAL ());
- // Urm, we actually discard exceptions thown from this operation.
-}
-
-void
-MyImpl::GPS_tracing_exec_i::ciao_preactivate (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
-}
-
-void
-MyImpl::GPS_tracing_exec_i::ccm_activate (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
- if (CIAO::debug_level () > 0)
- ACE_DEBUG ((LM_DEBUG, "MyImpl::GPS_tracing_exec_i::ccm_activate\n"));
-}
-
-void
-MyImpl::GPS_tracing_exec_i::ciao_postactivate (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
-}
-
-void
-MyImpl::GPS_tracing_exec_i::ccm_passivate (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
- if (CIAO::debug_level () > 0)
- ACE_DEBUG ((LM_DEBUG, "MyImpl::GPS_tracing_exec_i::ccm_passivate\n"));
-}
-
-void
-MyImpl::GPS_tracing_exec_i::ccm_remove (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
- if (CIAO::debug_level () > 0)
- ACE_DEBUG ((LM_DEBUG, "MyImpl::GPS_tracing_exec_i::ccm_remove\n"));
-}
-
-/// Default ctor.
-MyImpl::GPSHome_tracing_exec_i::GPSHome_tracing_exec_i ()
-{
-}
-
-/// Default dtor.
-MyImpl::GPSHome_tracing_exec_i::~GPSHome_tracing_exec_i ()
-{
-}
-
-// Explicit home operations.
-
-// Implicit home operations.
-
-::Components::EnterpriseComponent_ptr
-MyImpl::GPSHome_tracing_exec_i::create (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException))
-{
- return new MyImpl::GPS_tracing_exec_i;
-}
-
-
-extern "C" GPS_EXEC_Export ::Components::HomeExecutorBase_ptr
-createGPSHome_Tracing_Impl (void)
-{
- return new MyImpl::GPSHome_tracing_exec_i;
-}
diff --git a/CIAO/examples/Display/GPS/GPS_tracing_exec.h b/CIAO/examples/Display/GPS/GPS_tracing_exec.h
deleted file mode 100644
index a9c71da3d2a..00000000000
--- a/CIAO/examples/Display/GPS/GPS_tracing_exec.h
+++ /dev/null
@@ -1,135 +0,0 @@
-// $Id$
-
-/**
- * @file GPS_tracing_exec.h
- *
- * Header file for the actual GPS and GPSHome component
- * implementations.
- *
- * @author Nanbor Wang <nanbor@cse.wustl.edu>
- */
-
-#ifndef GPS_TRACING_EXEC_H
-#define GPS_TRACING_EXEC_H
-
-#include "GPSEIC.h"
-#include "tao/LocalObject.h"
-
-namespace MyImpl
-{
- /**
- * @class GPS_tracing_exec_i
- *
- * RateGen executor implementation class.
- */
- class GPS_EXEC_Export GPS_tracing_exec_i :
- public virtual HUDisplay::GPS_Exec,
- public virtual TAO_Local_RefCounted_Object
- {
- public:
- /// Default constructor.
- GPS_tracing_exec_i ();
-
- /// Default destructor.
- ~GPS_tracing_exec_i ();
-
- // Operations from HUDisplay::GPS
-
- virtual HUDisplay::CCM_position_ptr
- get_MyLocation (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void
- push_Refresh (HUDisplay::tick *ev
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- // Operations from HUDisplay::position
-
- virtual CORBA::Long
- posx (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual CORBA::Long
- posy (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- // Operations from Components::SessionComponent
-
- virtual void
- set_session_context (Components::SessionContext_ptr ctx
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException));
-
- virtual void
- ciao_preactivate (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException));
-
- virtual void
- ccm_activate (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException));
-
- virtual void
- ciao_postactivate (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException));
-
- virtual void
- ccm_passivate (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException));
-
- virtual void
- ccm_remove (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException));
- protected:
- /// Current GPS reading.
- CORBA::Long positionx_;
- CORBA::Long positiony_;
-
- /// Delta amounts to emulate the position shift of each reading.
- int dx_;
- int dy_;
-
- /// Copmponent specific context
- HUDisplay::CCM_GPS_Context_var context_;
- };
-
- /**
- * @class GPSHome_tracing_exec_i
- *
- * GPS home executor implementation class.
- */
- class GPS_EXEC_Export GPSHome_tracing_exec_i :
- public virtual HUDisplay::CCM_GPSHome,
- public virtual TAO_Local_RefCounted_Object
- {
- public:
- /// Default ctor.
- GPSHome_tracing_exec_i ();
-
- /// Default dtor.
- ~GPSHome_tracing_exec_i ();
-
- // Explicit home operations.
-
- // Implicit home operations.
-
- virtual ::Components::EnterpriseComponent_ptr
- create (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CCMException));
- };
-
-}
-
-// Executor DLL entry point. CIAO's deployment and assembly framework
-// invokes this function on the resulting DLL to get the home executor.
-extern "C" GPS_EXEC_Export ::Components::HomeExecutorBase_ptr
-createGPSHome_Tracing_Impl (void);
-
-#endif /* GPS_TRACING_EXEC_H */