[omniORB] Event service

Paul Nader Paul.Nader@alcatel.com.au
Wed, 25 Nov 1998 10:46:59 +1100


Bjorn,

Thanks, we'll make the changes you suggested. Out of curiousity, did yuo manage to get it

to work on Linux/egcs?

Regards, Paul.


bjornw@fairplay.no wrote:


> 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();
>          }
>       }



--
 Paul Nader                          mailto:Paul.Nader@alcatel.com.au
 Principal Engineer                  PH: (61.2) 9690 5421
 Network Integration Division        FX: (61.2) 9690 5225
 Alcatel Telecom, Australia          280 Botany Rd, Alexandria, Sydney