diff options
Diffstat (limited to 'orbsvcs/examples/CosEC/Simple')
-rw-r--r-- | orbsvcs/examples/CosEC/Simple/Consumer.cpp | 4 | ||||
-rw-r--r-- | orbsvcs/examples/CosEC/Simple/Consumer.h | 49 | ||||
-rw-r--r-- | orbsvcs/examples/CosEC/Simple/Makefile.am | 123 | ||||
-rw-r--r-- | orbsvcs/examples/CosEC/Simple/Service.cpp | 6 | ||||
-rw-r--r-- | orbsvcs/examples/CosEC/Simple/Supplier.cpp | 4 | ||||
-rw-r--r-- | orbsvcs/examples/CosEC/Simple/Supplier.h | 43 |
6 files changed, 44 insertions, 185 deletions
diff --git a/orbsvcs/examples/CosEC/Simple/Consumer.cpp b/orbsvcs/examples/CosEC/Simple/Consumer.cpp index 215f8f99441..a622faa18d7 100644 --- a/orbsvcs/examples/CosEC/Simple/Consumer.cpp +++ b/orbsvcs/examples/CosEC/Simple/Consumer.cpp @@ -4,10 +4,6 @@ #include "orbsvcs/CosEventChannelAdminS.h" #include "ace/Get_Opt.h" -ACE_RCSID (CosEC_Examples, - Consumer, - "$Id$") - const ACE_TCHAR *ior = ACE_TEXT ("file://ec.ior"); int diff --git a/orbsvcs/examples/CosEC/Simple/Consumer.h b/orbsvcs/examples/CosEC/Simple/Consumer.h index cd03b0c7b32..a47ee71a6eb 100644 --- a/orbsvcs/examples/CosEC/Simple/Consumer.h +++ b/orbsvcs/examples/CosEC/Simple/Consumer.h @@ -1,18 +1,14 @@ /* -*- C++ -*- */ -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// ORBSVCS COS Event Channel examples -// -// = FILENAME -// Consumer -// -// = AUTHOR -// Carlos O'Ryan (coryan@cs.wustl.edu) -// -// ============================================================================ +//============================================================================= +/** + * @file Consumer.h + * + * $Id$ + * + * @author Carlos O'Ryan (coryan@cs.wustl.edu) + */ +//============================================================================= + #ifndef CONSUMER_H #define CONSUMER_H @@ -23,34 +19,35 @@ # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ +/** + * @class Consumer + * + * @brief Simple consumer object + * + * This class is a consumer of events. + */ class Consumer : public POA_CosEventComm::PushConsumer { - // = TITLE - // Simple consumer object - // - // = DESCRIPTION - // This class is a consumer of events. - // public: + /// Constructor Consumer (void); - // Constructor + /// Run the test int run (int argc, ACE_TCHAR* argv[]); - // Run the test // = The CosEventComm::PushConsumer methods + /// The skeleton methods. virtual void push (const CORBA::Any &event); virtual void disconnect_push_consumer (void); - // The skeleton methods. private: + /// Keep track of the number of events received. CORBA::ULong event_count_; - // Keep track of the number of events received. + /// The orb, just a pointer because the ORB does not outlive the + /// run() method... CORBA::ORB_ptr orb_; - // The orb, just a pointer because the ORB does not outlive the - // run() method... }; #endif /* CONSUMER_H */ diff --git a/orbsvcs/examples/CosEC/Simple/Makefile.am b/orbsvcs/examples/CosEC/Simple/Makefile.am deleted file mode 100644 index 56b28bf2e51..00000000000 --- a/orbsvcs/examples/CosEC/Simple/Makefile.am +++ /dev/null @@ -1,123 +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) - -noinst_PROGRAMS = - -## Makefile.CosEC_Simple_Consumer.am - -if BUILD_EXCEPTIONS - -noinst_PROGRAMS += Consumer - -Consumer_CPPFLAGS = \ - -I$(ACE_ROOT) \ - -I$(ACE_BUILDDIR) \ - -I$(TAO_ROOT) \ - -I$(TAO_BUILDDIR) \ - -I$(TAO_ROOT)/orbsvcs \ - -I$(TAO_BUILDDIR)/orbsvcs \ - -DTAO_HAS_TYPED_EVENT_CHANNEL - -Consumer_SOURCES = \ - Consumer.cpp \ - Consumer.h - -Consumer_LDADD = \ - $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Skel.la \ - $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \ - $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent.la \ - $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \ - $(TAO_BUILDDIR)/tao/libTAO.la \ - $(ACE_BUILDDIR)/ace/libACE.la - -endif BUILD_EXCEPTIONS - -## Makefile.CosEC_Simple_Service.am - -if BUILD_CORBA_MESSAGING -if BUILD_EXCEPTIONS - -noinst_PROGRAMS += Service - -Service_CPPFLAGS = \ - -I$(ACE_ROOT) \ - -I$(ACE_BUILDDIR) \ - -I$(TAO_ROOT) \ - -I$(TAO_BUILDDIR) \ - -I$(TAO_ROOT)/orbsvcs \ - -I$(TAO_BUILDDIR)/orbsvcs \ - -DTAO_HAS_TYPED_EVENT_CHANNEL - -Service_SOURCES = \ - Service.cpp \ - Consumer.h \ - Supplier.h - -Service_LDADD = \ - $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \ - $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_Svc_Utils.la \ - $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \ - $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \ - $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \ - $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \ - $(TAO_BUILDDIR)/tao/libTAO_PI.la \ - $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \ - $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \ - $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Skel.la \ - $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \ - $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent.la \ - $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \ - $(TAO_BUILDDIR)/tao/libTAO.la \ - $(ACE_BUILDDIR)/ace/libACE.la - -endif BUILD_EXCEPTIONS -endif BUILD_CORBA_MESSAGING - -## Makefile.CosEC_Simple_Supplier.am - -if BUILD_EXCEPTIONS - -noinst_PROGRAMS += Supplier - -Supplier_CPPFLAGS = \ - -I$(ACE_ROOT) \ - -I$(ACE_BUILDDIR) \ - -I$(TAO_ROOT) \ - -I$(TAO_BUILDDIR) \ - -I$(TAO_ROOT)/orbsvcs \ - -I$(TAO_BUILDDIR)/orbsvcs \ - -DTAO_HAS_TYPED_EVENT_CHANNEL - -Supplier_SOURCES = \ - Supplier.cpp \ - Supplier.h - -Supplier_LDADD = \ - $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Skel.la \ - $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \ - $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent.la \ - $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \ - $(TAO_BUILDDIR)/tao/libTAO.la \ - $(ACE_BUILDDIR)/ace/libACE.la - -endif BUILD_EXCEPTIONS - -## 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/orbsvcs/examples/CosEC/Simple/Service.cpp b/orbsvcs/examples/CosEC/Simple/Service.cpp index 1c3682594ec..324f5729357 100644 --- a/orbsvcs/examples/CosEC/Simple/Service.cpp +++ b/orbsvcs/examples/CosEC/Simple/Service.cpp @@ -5,10 +5,6 @@ #include "ace/Get_Opt.h" #include "ace/OS_NS_stdio.h" -ACE_RCSID (CosEC_Simple, - Service, - "$Id$") - const ACE_TCHAR *ior_output_file = ACE_TEXT("ec.ior"); int @@ -33,7 +29,7 @@ parse_args (int argc, ACE_TCHAR *argv[]) argv [0]), -1); } - // Indicates sucessful parsing of the command line + // Indicates successful parsing of the command line return 0; } diff --git a/orbsvcs/examples/CosEC/Simple/Supplier.cpp b/orbsvcs/examples/CosEC/Simple/Supplier.cpp index f3251b8e281..49d8c91f572 100644 --- a/orbsvcs/examples/CosEC/Simple/Supplier.cpp +++ b/orbsvcs/examples/CosEC/Simple/Supplier.cpp @@ -5,10 +5,6 @@ #include "ace/OS_NS_unistd.h" #include "ace/Get_Opt.h" -ACE_RCSID (CosEC_Examples, - Supplier, - "$Id$") - const ACE_TCHAR *ior = ACE_TEXT ("file://ec.ior"); int diff --git a/orbsvcs/examples/CosEC/Simple/Supplier.h b/orbsvcs/examples/CosEC/Simple/Supplier.h index 9f26df820ed..bf7e58e46d4 100644 --- a/orbsvcs/examples/CosEC/Simple/Supplier.h +++ b/orbsvcs/examples/CosEC/Simple/Supplier.h @@ -1,18 +1,14 @@ /* -*- C++ -*- */ -// $Id$ -// -// ============================================================================ -// -// = LIBRARY -// ORBSVCS COS Event Channel examples -// -// = FILENAME -// Supplier -// -// = AUTHOR -// Carlos O'Ryan (coryan@cs.wustl.edu) -// -// ============================================================================ +//============================================================================= +/** + * @file Supplier.h + * + * $Id$ + * + * @author Carlos O'Ryan (coryan@cs.wustl.edu) + */ +//============================================================================= + #ifndef SUPPLIER_H #define SUPPLIER_H @@ -23,25 +19,26 @@ # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ +/** + * @class Supplier + * + * @brief Simple supplier object + * + * This class is a supplier of events. + */ class Supplier : public POA_CosEventComm::PushSupplier { - // = TITLE - // Simple supplier object - // - // = DESCRIPTION - // This class is a supplier of events. - // public: + /// Constructor Supplier (void); - // Constructor + /// Run the test int run (int argc, ACE_TCHAR* argv[]); - // Run the test // = The CosEventComm::PushSupplier methods + /// The skeleton methods. virtual void disconnect_push_supplier (void); - // The skeleton methods. private: }; |