[omniORB] Event service

bjornw@fairplay.no bjornw@fairplay.no
23 Nov 1998 20:09:15 +0100


Sai-Lai Lo <S.Lo@orl.co.uk> writes:

> Thanks to Paul Nader. I've made available his implementation of the Event
> Service on our web server. Follows this link for details:
> 
> http://www.orl.co.uk/omniORB/contribapp.html.
> 
> Notice that this implementation is developed on HPUX and may require a
> small amount of work to port to other platforms, mainly to do with using
> the STL library available on each platform. If you are willing to give it a
> go, please touch base with Paul so that there is no duplication of effort.
> 
> Enjoy.
> 
> Sai-Lai

Nice work!

My egcs didn't like:
throw (Something::SomeFunc())

Rewrote to:
throw Something::SomeFunc();

BTW: You should add a GNUmakefile/dir.mk to the src/contrib directory and add contrib
to the src/dir.mk SUBDIRS macro.

*** CosEvent_i.cc~	Mon Nov 23 16:42:12 1998
--- CosEvent_i.cc	Mon Nov 23 19:57:22 1998
***************
*** 33,39 ****
  Initial revision
  
   */
- 
  #include "CosEvent_i.h"
  #include <iostream.h>
  #include <fstream.h>
--- 33,38 ----
***************
*** 994,1012 ****
  
      // Check the key
      if (! this->supports(k))
!        throw (CosLifeCycle::NoFactory());
  
      // Process criteria
      CORBA::ULong pullRetryPeriod = 1;
!     for (int i=0; i < criteria.length(); i++)
      {
         if (strcmp(criteria[i].name, "pullRetryPeriod") == 0)
         {
            if (! (criteria[i].value >>= pullRetryPeriod))
!              throw (CosLifeCycle::InvalidCriteria());
  
            if (pullRetryPeriod < 1)
!              throw (CosLifeCycle::CannotMeetCriteria());
         }
      }
  
--- 993,1011 ----
  
      // Check the key
      if (! this->supports(k))
!        throw CosLifeCycle::NoFactory();
  
      // Process criteria
      CORBA::ULong pullRetryPeriod = 1;
!     for (size_t i=0; i < criteria.length(); i++)
      {
         if (strcmp(criteria[i].name, "pullRetryPeriod") == 0)
         {
            if (! (criteria[i].value >>= pullRetryPeriod))
!              throw CosLifeCycle::InvalidCriteria();
  
            if (pullRetryPeriod < 1)
!              throw CosLifeCycle::CannotMeetCriteria();
         }
      }