summaryrefslogtreecommitdiff
path: root/apps/Orbix-Examples/Event_Comm/include/Event_Comm.hh
blob: 85ad256da2aaecdd25958d60bd6b83df92c4eac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887

#ifndef Event_Comm_hh
#define Event_Comm_hh

#include <CORBA.h>

#include <string.h>

class Event_Comm {
public: 

#ifndef Event_Comm_Notification_defined
#define Event_Comm_Notification_defined

    struct Notification {
        CORBA::String_mgr tag_;

        void encodeOp (CORBA::Request &IT_r) const;
        void decodeOp (CORBA::Request &IT_r);
        void decodeInOutOp (CORBA::Request &IT_r);
        static void* IT_anySupport (CORBA::Request &IT_r,
        			void *&, void*, const CORBA::Flags&);
        static const void *IT_fn;
    };

    static const CORBA::TypeCode_ptr _tc_Notification;

#ifndef Event_Comm_NotificationVarH
#define Event_Comm_NotificationVarH

#ifndef Event_Comm_NotificationvPtr
#define Event_Comm_NotificationvPtr
typedef Notification* Notification_vPtr;
#endif

class Notification_var : public CORBA::_var
{
    public:

    Notification_var () {
        _ptr = NULL;
    }

    Notification_var (Notification *IT_p) {
        _ptr = IT_p;
    }

    Notification_var (const Notification_var &IT_s) {
        if (!IT_s._ptr) {
            _ptr = IT_s._ptr;
            return;
        }
        _ptr = new Notification (*(IT_s._ptr));
    }

    Notification_var &operator= (Notification *IT_p) {
        if (_ptr != IT_p) {
            delete _ptr;
        }
        _ptr = IT_p;
        return (*this);
    }

    Notification_var &operator= (const Notification_var &IT_s) {
        if (_ptr != IT_s._ptr) {
            delete _ptr;
        }
        _ptr = new Notification (*(IT_s._ptr));
        return (*this);
    }

    ~Notification_var () {
        delete _ptr;
    }

    Notification* operator-> () {
        return _ptr;
    }

    operator const Notification_vPtr () const { return _ptr;}
    operator Notification_vPtr& () { return _ptr;}
    operator Notification& () const { return * _ptr;}

    protected:
    Notification *_ptr;
    private:
    Notification_var &operator= (const CORBA::_var &IT_s);
    Notification_var (const CORBA::_var &IT_s);
};

#endif


#endif


#ifndef _Event_Comm_Notification_Receiver_defined
#define _Event_Comm_Notification_Receiver_defined
class Notification_Receiver_dispatch : public virtual CORBA::PPTR {
public:

   Notification_Receiver_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, 
        CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im)
       : CORBA::PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {}


   Notification_Receiver_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o)
       : CORBA::PPTR (IT_OR,IT_p,IT_o) {}


   Notification_Receiver_dispatch () {}

   Notification_Receiver_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o)
       : CORBA::PPTR (IT_OR,IT_p,IT_o) {}


   Notification_Receiver_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, 
        char *IT_i, CORBA::Object* IT_ob, void* IT_im)
       : CORBA::PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {}


   virtual unsigned char dispatch (CORBA::Request &IT_r, 
        unsigned char IT_isTarget, void* IT_pp=NULL);


};

class Notification_Receiver;

#ifndef Event_Comm_Notification_ReceiverPtr
#define Event_Comm_Notification_ReceiverPtr

    typedef Notification_Receiver* Notification_Receiver_ptr;

    typedef Notification_Receiver* Notification_ReceiverRef;

#endif


#ifndef Event_Comm_Notification_ReceiverForwH
#define Event_Comm_Notification_ReceiverForwH
static CORBA::ObjectRef Notification_Receiver_getBase (void *);
static void Notification_Receiver_release (Notification_Receiver *, CORBA::Environment &IT_env);
static void Notification_Receiver_release (Notification_Receiver_ptr);
static Notification_Receiver* Notification_Receiver_duplicate (Notification_Receiver_ptr, CORBA::Environment &IT_env);
static Notification_Receiver* Notification_Receiver_duplicate (Notification_Receiver_ptr );
static Notification_Receiver_ptr Notification_Receiver_nil (CORBA::Environment &IT_env);
static Notification_Receiver_ptr Notification_Receiver_nil ();
#endif
#define Event_Comm_Notification_Receiver_IMPL "Event_Comm_Notification_Receiver"


class Notification_Receiver;

    typedef Notification_Receiver Notification_ReceiverProxy;
#define Event_Comm_Notification_Receiver_IR "Event_Comm_Notification_Receiver"
#define Event_Comm_Notification_Receiver_IMPL "Event_Comm_Notification_Receiver"

#ifndef Event_Comm_Notification_ReceiverPtr
#define Event_Comm_Notification_ReceiverPtr

    typedef Notification_Receiver* Notification_Receiver_ptr;

    typedef Notification_Receiver* Notification_ReceiverRef;

#endif

class Notification_Receiver: public virtual CORBA::Object {
public:
    Notification_Receiver (char *IT_OR);
    Notification_Receiver (ObjectReference *IT_OR);
    Notification_Receiver () : CORBA::Object (1) {}
protected:
    Notification_Receiver_ptr __duplicate(
            CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) {
       CORBA::Object::__duplicate (IT_env);
       return this;
    }
public:
    static Notification_Receiver_ptr _duplicate(
            Notification_Receiver_ptr obj,
            CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) {
       CORBA::EnvExcRaiser IT_raise (&IT_env);
       if (CORBA::is_nil(obj, IT_env)) {
          IT_raise.maybeRaise ();
          return (obj);
       }
       Notification_Receiver_ptr IT_obj = obj->__duplicate (IT_env);
       IT_raise.maybeRaise();
       return IT_obj;
    }
public:
   static Notification_Receiver* _bind (const char* IT_markerServer, const char* host,
		const CORBA::Context &IT_c, 
		CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ());
   static Notification_Receiver* _bind (CORBA::Environment &IT_env);
   static Notification_Receiver* _bind (const char* IT_markerServer=NULL, const char* host=NULL,
                 CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ());
    static Notification_Receiver* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ());
    static Notification_Receiver_ptr _nil (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) {
        CORBA::EnvExcRaiser IT_raise (&IT_env);
        IT_raise.maybeRaise();
        return (Notification_Receiver_ptr) CORBA::OBJECT_NIL;}
                virtual void receive_notification (const Event_Comm::Notification& notification, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException);
                virtual void disconnect (const char * reason, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException);
};

    static const CORBA::TypeCode_ptr _tc_Notification_Receiver;

    static const CORBA::TypeCode_ptr _tc_Notification_ReceiverRef;

#ifndef Event_Comm_Notification_ReceiverVarH
#define Event_Comm_Notification_ReceiverVarH

#ifndef Event_Comm_Notification_ReceivervPtr
#define Event_Comm_Notification_ReceivervPtr
typedef Notification_Receiver* Notification_Receiver_vPtr;
#endif

class Notification_Receiver_var : public CORBA::_var
{
    public:

    Notification_Receiver_var () {
        _ptr = Notification_Receiver_nil ();
    }

    Notification_Receiver_var (Notification_Receiver *IT_p) {
        _ptr = IT_p;
    }

    Notification_Receiver_var (const Notification_Receiver_var &IT_s) {
        _ptr = Notification_Receiver_duplicate (IT_s._ptr);
    }

    Notification_Receiver_var &operator= (Notification_Receiver *IT_p) {
        Notification_Receiver_release (_ptr);
        _ptr = IT_p;
        return (*this);
    }

    Notification_Receiver_var &operator= (const Notification_Receiver_var &IT_s) {
        Notification_Receiver_release (_ptr);
        _ptr = Notification_Receiver_duplicate (IT_s._ptr);
        return (*this);
    }

    ~Notification_Receiver_var () {
        Notification_Receiver_release (_ptr);
    }

    Notification_Receiver* operator-> () {
        return _ptr;
    }

    operator const Notification_Receiver_vPtr () const { return _ptr;}
    operator Notification_Receiver_vPtr& () { return _ptr;}

    protected:
    Notification_Receiver *_ptr;
    private:
    Notification_Receiver_var &operator= (const CORBA::_var &IT_s);
    Notification_Receiver_var (const CORBA::_var &IT_s);
    Notification_Receiver_var &operator= (const CORBA::_mgr &IT_s);
    Notification_Receiver_var &operator= (const CORBA::_SeqElem &IT_s);
    Notification_Receiver_var (const CORBA::_mgr &IT_s);
    Notification_Receiver_var (const CORBA::_SeqElem &IT_s);
};

#endif


#ifndef Event_Comm_Notification_ReceiverMgrH
#define Event_Comm_Notification_ReceiverMgrH

class Notification_Receiver_mgr : public CORBA::_mgr
{
    public:

    Notification_Receiver_mgr () {
        _ptr = Notification_Receiver_nil ();
        _release = 1;
    }

    Notification_Receiver_mgr (const Notification_Receiver_mgr &IT_s) {
        _ptr = Notification_Receiver_duplicate (IT_s._ptr);
        _release = 1;
    }

    Notification_Receiver_mgr &operator= (Notification_Receiver *IT_p) {
        if (_ptr && _release)
            Notification_Receiver_release (_ptr);
        _ptr = IT_p;
        _release = 1;
        return (*this);
    }

    Notification_Receiver_mgr &operator= (const Notification_Receiver_mgr &IT_s) {
        if (_ptr && _release)
            Notification_Receiver_release (_ptr);
        _ptr = Notification_Receiver_duplicate(IT_s._ptr);
        _release = 1;
        return (*this);
    }

    Notification_Receiver_mgr &operator= (const Notification_Receiver_var &IT_s) {
        if (_ptr && _release)
            Notification_Receiver_release (_ptr);
        _ptr = Notification_Receiver_duplicate(IT_s);
        _release = 1;
        return (*this);
    }

    ~Notification_Receiver_mgr () {
        if (_release)
            Notification_Receiver_release (_ptr);
    }

    unsigned char release () {
        return _release;
    }

    void release (unsigned char rel) {
        _release = rel;
    }

    operator int () const {
        CORBA::Environment env;
        CORBA::EnvExcRaiser IT_raise (&env);
        return (!(CORBA::is_nil((CORBA::Object*) _ptr, env)));
    }

    operator void* () const {
        return _ptr;
    }

    operator CORBA::Object * () const {
        return (CORBA::Object *) _ptr;
    }

    operator Notification_Receiver* () const {
        return (Notification_Receiver*) _ptr;
    }

    Notification_Receiver *_ptr;

    protected:

    unsigned char _release;
};

#endif

#ifndef Event_Comm_Notification_ReceiverSeqElemH
#define Event_Comm_Notification_ReceiverSeqElemH

class Notification_Receiver_SeqElem : public CORBA::_SeqElem
{
    public:

    Notification_Receiver_SeqElem (Event_Comm::Notification_Receiver_ptr* IT_p, unsigned char rel) {
        _ptr = IT_p;
        _release = rel;
    }

    Notification_Receiver_SeqElem &operator= (Event_Comm::Notification_Receiver_ptr IT_p) {
        if (!_ptr)
            return (*this);
        if (*(_ptr) && _release)
            Notification_Receiver_release (*(_ptr));
        *(_ptr) = IT_p;
        return (*this);
    }

    Notification_Receiver_SeqElem &operator= (const Notification_Receiver_SeqElem &IT_s) {
        if (!_ptr|| !IT_s._ptr)
            return (*this);
        if (*(_ptr) && _release)
            Notification_Receiver_release (*(_ptr));
        *(_ptr) = Notification_Receiver_duplicate(*(IT_s._ptr));
        return (*this);
    }

    operator Event_Comm::Notification_Receiver_ptr () const
{
        if (!_ptr)
            return (Notification_Receiver_nil());
        return (Event_Comm::Notification_Receiver_ptr) (*_ptr);
    }

    Notification_Receiver_ptr operator->() const { return *_ptr;}

    protected:
    Event_Comm::Notification_Receiver_ptr *_ptr;
    unsigned char _release;
};

#endif


#define TIE_Event_Comm_Notification_Receiver(X) Event_Comm_Notification_Receiver##X

#define DEF_TIE_Event_Comm_Notification_Receiver(X) \
	class Event_Comm_Notification_Receiver##X : public virtual Event_Comm::Notification_Receiver {		\
	  X* m_obj;						\
	public:							\
								\
	   Event_Comm_Notification_Receiver##X  (X *objp, const char* m="", CORBA::LoaderClass *l=0)\
		: Event_Comm::Notification_Receiver(), CORBA::Object (), m_obj(objp) {	\
		m_pptr = new Event_Comm::Notification_Receiver_dispatch		\
			(( Event_Comm::Notification_Receiver*)this,(CORBA::Object*)this,m,l,Event_Comm_Notification_Receiver_IR,m_obj);	\
	   }								\
	   Event_Comm_Notification_Receiver##X  (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\
		: Event_Comm::Notification_Receiver(), CORBA::Object () {	\
		m_pptr = new Event_Comm::Notification_Receiver_dispatch		\
			(( Event_Comm::Notification_Receiver*)this,(CORBA::Object*)this,IT_m,Event_Comm_Notification_Receiver_IR,IT_p,IT_q);	\
		m_obj = (X*)(m_pptr->getImplObj ());			\
	   }								\
								\
	   virtual ~Event_Comm_Notification_Receiver##X  () {				\
		if (_okToDeleteImpl ()) delete m_obj; }					\
								\
	   virtual void* _deref () {					\
		return m_obj; }					\
								\
        virtual void receive_notification (const Event_Comm::Notification& notification, CORBA::Environment &IT_env) throw (CORBA::SystemException){\
    m_obj->receive_notification ( notification,IT_env);\
}\
	\
        virtual void disconnect (const char * reason, CORBA::Environment &IT_env) throw (CORBA::SystemException){\
    m_obj->disconnect ( reason,IT_env);\
}\
								\
	};


#define QUALS_Event_Comm_Notification_Receiver	\
        virtual void receive_notification (const Event_Comm::Notification& notification, CORBA::Environment &IT_env) throw (CORBA::SystemException){\
    m_obj->receive_notification ( notification,IT_env);\
}\
	\
        virtual void disconnect (const char * reason, CORBA::Environment &IT_env) throw (CORBA::SystemException){\
    m_obj->disconnect ( reason,IT_env);\
}\




class Notification_ReceiverProxyFactoryClass : public virtual CORBA::ObjectFactoryClass {
public:
   Notification_ReceiverProxyFactoryClass (unsigned char IT_p=0)
		: CORBA::ProxyFactory (Event_Comm_Notification_Receiver_IR, IT_p) {}

    virtual void* New (char *IT_OR, CORBA::Environment&);

    virtual void* New (ObjectReference *IT_OR, CORBA::Environment&);

    virtual void* New2 (); 

    virtual void* IT_castUp (void *IT_p, char* IT_s);

    virtual CORBA::PPTR* pptr (void *IT_p);

    virtual void baseInterfaces (_IDL_SEQUENCE_string&);


};

static Notification_ReceiverProxyFactoryClass Notification_ReceiverProxyFactory;



#endif


#ifndef _Event_Comm_Notifier_defined
#define _Event_Comm_Notifier_defined
class Notifier_dispatch : public virtual CORBA::PPTR {
public:

   Notifier_dispatch (void *IT_p, CORBA::Object* IT_o, const char *IT_m, 
        CORBA::LoaderClass *IT_l, char *IT_i, void* IT_im)
       : CORBA::PPTR (IT_p,IT_o,IT_m,IT_l,IT_i,IT_im) {}


   Notifier_dispatch (char *IT_OR, void *IT_p, CORBA::Object *IT_o)
       : CORBA::PPTR (IT_OR,IT_p,IT_o) {}


   Notifier_dispatch () {}

   Notifier_dispatch (ObjectReference *IT_OR, void *IT_p, CORBA::Object *IT_o)
       : CORBA::PPTR (IT_OR,IT_p,IT_o) {}


   Notifier_dispatch (void *IT_p, CORBA::Object *IT_o, const char *IT_m, 
        char *IT_i, CORBA::Object* IT_ob, void* IT_im)
       : CORBA::PPTR (IT_p,IT_o,IT_m,IT_i,IT_ob,IT_im) {}


   virtual unsigned char dispatch (CORBA::Request &IT_r, 
        unsigned char IT_isTarget, void* IT_pp=NULL);


};

class Notifier;

#ifndef Event_Comm_NotifierPtr
#define Event_Comm_NotifierPtr

    typedef Notifier* Notifier_ptr;

    typedef Notifier* NotifierRef;

#endif


#ifndef Event_Comm_NotifierForwH
#define Event_Comm_NotifierForwH
static CORBA::ObjectRef Notifier_getBase (void *);
static void Notifier_release (Notifier *, CORBA::Environment &IT_env);
static void Notifier_release (Notifier_ptr);
static Notifier* Notifier_duplicate (Notifier_ptr, CORBA::Environment &IT_env);
static Notifier* Notifier_duplicate (Notifier_ptr );
static Notifier_ptr Notifier_nil (CORBA::Environment &IT_env);
static Notifier_ptr Notifier_nil ();
#endif
#define Event_Comm_Notifier_IMPL "Event_Comm_Notifier"


class Notifier;

    typedef Notifier NotifierProxy;
#define Event_Comm_Notifier_IR "Event_Comm_Notifier"
#define Event_Comm_Notifier_IMPL "Event_Comm_Notifier"

#ifndef Event_Comm_NotifierPtr
#define Event_Comm_NotifierPtr

    typedef Notifier* Notifier_ptr;

    typedef Notifier* NotifierRef;

#endif

class Notifier: public virtual CORBA::Object {
public:
    Notifier (char *IT_OR);
    Notifier (ObjectReference *IT_OR);
    Notifier () : CORBA::Object (1) {}
protected:
    Notifier_ptr __duplicate(
            CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) {
       CORBA::Object::__duplicate (IT_env);
       return this;
    }
public:
    static Notifier_ptr _duplicate(
            Notifier_ptr obj,
            CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) {
       CORBA::EnvExcRaiser IT_raise (&IT_env);
       if (CORBA::is_nil(obj, IT_env)) {
          IT_raise.maybeRaise ();
          return (obj);
       }
       Notifier_ptr IT_obj = obj->__duplicate (IT_env);
       IT_raise.maybeRaise();
       return IT_obj;
    }
public:
   static Notifier* _bind (const char* IT_markerServer, const char* host,
		const CORBA::Context &IT_c, 
		CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ());
   static Notifier* _bind (CORBA::Environment &IT_env);
   static Notifier* _bind (const char* IT_markerServer=NULL, const char* host=NULL,
                 CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ());
    static Notifier* _narrow (CORBA::Object* , CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ());
    static Notifier_ptr _nil (CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) {
        CORBA::EnvExcRaiser IT_raise (&IT_env);
        IT_raise.maybeRaise();
        return (Notifier_ptr) CORBA::OBJECT_NIL;}
                virtual void send_disconnect (const char * reason, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException);
                virtual void send_notification (const Event_Comm::Notification& notification, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException);
                virtual void subscribe (Event_Comm::Notification_Receiver_ptr notification_receiver, const char * filtering_criteria, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException);
                virtual void unsubscribe (Event_Comm::Notification_Receiver_ptr notification_receiver, const char * filtering_criteria, CORBA::Environment &IT_env=CORBA::IT_chooseDefaultEnv ()) throw (CORBA::SystemException);
};

    static const CORBA::TypeCode_ptr _tc_Notifier;

    static const CORBA::TypeCode_ptr _tc_NotifierRef;

#ifndef Event_Comm_NotifierVarH
#define Event_Comm_NotifierVarH

#ifndef Event_Comm_NotifiervPtr
#define Event_Comm_NotifiervPtr
typedef Notifier* Notifier_vPtr;
#endif

class Notifier_var : public CORBA::_var
{
    public:

    Notifier_var () {
        _ptr = Notifier_nil ();
    }

    Notifier_var (Notifier *IT_p) {
        _ptr = IT_p;
    }

    Notifier_var (const Notifier_var &IT_s) {
        _ptr = Notifier_duplicate (IT_s._ptr);
    }

    Notifier_var &operator= (Notifier *IT_p) {
        Notifier_release (_ptr);
        _ptr = IT_p;
        return (*this);
    }

    Notifier_var &operator= (const Notifier_var &IT_s) {
        Notifier_release (_ptr);
        _ptr = Notifier_duplicate (IT_s._ptr);
        return (*this);
    }

    ~Notifier_var () {
        Notifier_release (_ptr);
    }

    Notifier* operator-> () {
        return _ptr;
    }

    operator const Notifier_vPtr () const { return _ptr;}
    operator Notifier_vPtr& () { return _ptr;}

    protected:
    Notifier *_ptr;
    private:
    Notifier_var &operator= (const CORBA::_var &IT_s);
    Notifier_var (const CORBA::_var &IT_s);
    Notifier_var &operator= (const CORBA::_mgr &IT_s);
    Notifier_var &operator= (const CORBA::_SeqElem &IT_s);
    Notifier_var (const CORBA::_mgr &IT_s);
    Notifier_var (const CORBA::_SeqElem &IT_s);
};

#endif


#ifndef Event_Comm_NotifierMgrH
#define Event_Comm_NotifierMgrH

class Notifier_mgr : public CORBA::_mgr
{
    public:

    Notifier_mgr () {
        _ptr = Notifier_nil ();
        _release = 1;
    }

    Notifier_mgr (const Notifier_mgr &IT_s) {
        _ptr = Notifier_duplicate (IT_s._ptr);
        _release = 1;
    }

    Notifier_mgr &operator= (Notifier *IT_p) {
        if (_ptr && _release)
            Notifier_release (_ptr);
        _ptr = IT_p;
        _release = 1;
        return (*this);
    }

    Notifier_mgr &operator= (const Notifier_mgr &IT_s) {
        if (_ptr && _release)
            Notifier_release (_ptr);
        _ptr = Notifier_duplicate(IT_s._ptr);
        _release = 1;
        return (*this);
    }

    Notifier_mgr &operator= (const Notifier_var &IT_s) {
        if (_ptr && _release)
            Notifier_release (_ptr);
        _ptr = Notifier_duplicate(IT_s);
        _release = 1;
        return (*this);
    }

    ~Notifier_mgr () {
        if (_release)
            Notifier_release (_ptr);
    }

    unsigned char release () {
        return _release;
    }

    void release (unsigned char rel) {
        _release = rel;
    }

    operator int () const {
        CORBA::Environment env;
        CORBA::EnvExcRaiser IT_raise (&env);
        return (!(CORBA::is_nil((CORBA::Object*) _ptr, env)));
    }

    operator void* () const {
        return _ptr;
    }

    operator CORBA::Object * () const {
        return (CORBA::Object *) _ptr;
    }

    operator Notifier* () const {
        return (Notifier*) _ptr;
    }

    Notifier *_ptr;

    protected:

    unsigned char _release;
};

#endif

#ifndef Event_Comm_NotifierSeqElemH
#define Event_Comm_NotifierSeqElemH

class Notifier_SeqElem : public CORBA::_SeqElem
{
    public:

    Notifier_SeqElem (Event_Comm::Notifier_ptr* IT_p, unsigned char rel) {
        _ptr = IT_p;
        _release = rel;
    }

    Notifier_SeqElem &operator= (Event_Comm::Notifier_ptr IT_p) {
        if (!_ptr)
            return (*this);
        if (*(_ptr) && _release)
            Notifier_release (*(_ptr));
        *(_ptr) = IT_p;
        return (*this);
    }

    Notifier_SeqElem &operator= (const Notifier_SeqElem &IT_s) {
        if (!_ptr|| !IT_s._ptr)
            return (*this);
        if (*(_ptr) && _release)
            Notifier_release (*(_ptr));
        *(_ptr) = Notifier_duplicate(*(IT_s._ptr));
        return (*this);
    }

    operator Event_Comm::Notifier_ptr () const
{
        if (!_ptr)
            return (Notifier_nil());
        return (Event_Comm::Notifier_ptr) (*_ptr);
    }

    Notifier_ptr operator->() const { return *_ptr;}

    protected:
    Event_Comm::Notifier_ptr *_ptr;
    unsigned char _release;
};

#endif


#define TIE_Event_Comm_Notifier(X) Event_Comm_Notifier##X

#define DEF_TIE_Event_Comm_Notifier(X) \
	class Event_Comm_Notifier##X : public virtual Event_Comm::Notifier {		\
	  X* m_obj;						\
	public:							\
								\
	   Event_Comm_Notifier##X  (X *objp, const char* m="", CORBA::LoaderClass *l=0)\
		: Event_Comm::Notifier(), CORBA::Object (), m_obj(objp) {	\
		m_pptr = new Event_Comm::Notifier_dispatch		\
			(( Event_Comm::Notifier*)this,(CORBA::Object*)this,m,l,Event_Comm_Notifier_IR,m_obj);	\
	   }								\
	   Event_Comm_Notifier##X  (CORBA::Object *IT_p, const char* IT_m="", void *IT_q=0)\
		: Event_Comm::Notifier(), CORBA::Object () {	\
		m_pptr = new Event_Comm::Notifier_dispatch		\
			(( Event_Comm::Notifier*)this,(CORBA::Object*)this,IT_m,Event_Comm_Notifier_IR,IT_p,IT_q);	\
		m_obj = (X*)(m_pptr->getImplObj ());			\
	   }								\
								\
	   virtual ~Event_Comm_Notifier##X  () {				\
		if (_okToDeleteImpl ()) delete m_obj; }					\
								\
	   virtual void* _deref () {					\
		return m_obj; }					\
								\
        virtual void send_disconnect (const char * reason, CORBA::Environment &IT_env) throw (CORBA::SystemException){\
    m_obj->send_disconnect ( reason,IT_env);\
}\
	\
        virtual void send_notification (const Event_Comm::Notification& notification, CORBA::Environment &IT_env) throw (CORBA::SystemException){\
    m_obj->send_notification ( notification,IT_env);\
}\
	\
        virtual void subscribe (Event_Comm::Notification_Receiver_ptr notification_receiver, const char * filtering_criteria, CORBA::Environment &IT_env) throw (CORBA::SystemException){\
    m_obj->subscribe ( notification_receiver, filtering_criteria,IT_env);\
}\
	\
        virtual void unsubscribe (Event_Comm::Notification_Receiver_ptr notification_receiver, const char * filtering_criteria, CORBA::Environment &IT_env) throw (CORBA::SystemException){\
    m_obj->unsubscribe ( notification_receiver, filtering_criteria,IT_env);\
}\
								\
	};


#define QUALS_Event_Comm_Notifier	\
        virtual void send_disconnect (const char * reason, CORBA::Environment &IT_env) throw (CORBA::SystemException){\
    m_obj->send_disconnect ( reason,IT_env);\
}\
	\
        virtual void send_notification (const Event_Comm::Notification& notification, CORBA::Environment &IT_env) throw (CORBA::SystemException){\
    m_obj->send_notification ( notification,IT_env);\
}\
	\
        virtual void subscribe (Event_Comm::Notification_Receiver_ptr notification_receiver, const char * filtering_criteria, CORBA::Environment &IT_env) throw (CORBA::SystemException){\
    m_obj->subscribe ( notification_receiver, filtering_criteria,IT_env);\
}\
	\
        virtual void unsubscribe (Event_Comm::Notification_Receiver_ptr notification_receiver, const char * filtering_criteria, CORBA::Environment &IT_env) throw (CORBA::SystemException){\
    m_obj->unsubscribe ( notification_receiver, filtering_criteria,IT_env);\
}\




class NotifierProxyFactoryClass : public virtual CORBA::ObjectFactoryClass {
public:
   NotifierProxyFactoryClass (unsigned char IT_p=0)
		: CORBA::ProxyFactory (Event_Comm_Notifier_IR, IT_p) {}

    virtual void* New (char *IT_OR, CORBA::Environment&);

    virtual void* New (ObjectReference *IT_OR, CORBA::Environment&);

    virtual void* New2 (); 

    virtual void* IT_castUp (void *IT_p, char* IT_s);

    virtual CORBA::PPTR* pptr (void *IT_p);

    virtual void baseInterfaces (_IDL_SEQUENCE_string&);


};

static NotifierProxyFactoryClass NotifierProxyFactory;



#endif

};


void operator<<= (CORBA::any &IT_a, Event_Comm::Notification_Receiver_ptr IT_t);
CORBA::Boolean operator>>= (const CORBA::any &IT_a, Event_Comm::Notification_Receiver_ptr& IT_t);


void operator<<= (CORBA::any &IT_a, Event_Comm::Notifier_ptr IT_t);
CORBA::Boolean operator>>= (const CORBA::any &IT_a, Event_Comm::Notifier_ptr& IT_t);


void operator<<= (CORBA::any &IT_a, const Event_Comm::Notification& IT_t);
CORBA::Boolean operator>>= (const CORBA::any &IT_a, Event_Comm::Notification*& IT_t);


#endif