summaryrefslogtreecommitdiff
path: root/modules/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents.hpp
blob: 692b6b940d0b2f8a7d7ecc8949b6e3969c52c812 (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
/* $Id$
 * This code was generated by the XML Schema Compiler.
 *
 * Changes made to this code will most likely be overwritten
 * when the handlers are recompiled.
 *
 * If you find errors or feel that there are bugfixes to be made,
 * please contact the current XSC maintainer:
 *             Will Otte <wotte@dre.vanderbilt.edu>
 */

// Fix for Borland compilers, which seem to have a broken
// <string> include.
#ifdef __BORLANDC__
# include <string.h>
#endif

#include "CIAO_Events_Handlers_Export.h"
#ifndef CIAOEVENTS_HPP
#define CIAOEVENTS_HPP

// Forward declarations.
//
namespace CIAO
{
  namespace Config_Handlers
  {
    class EventServiceType;
    class CIAOEventsDef;
    class EventServiceDescription;
    class FilterType;
    class Filter;
    class AddressServerDescription;
    class UDPSenderDescription;
    class UDPReceiverDescription;
  }
}

#include <memory>
#include <list>
#include "XMLSchema/Types.hpp"

namespace CIAO
{
  namespace Config_Handlers
  {
    class CIAO_Events_Handlers_Export EventServiceType : public ::XSCRT::Type
    {
      public:
      EventServiceType (::XSCRT::XML::Element< ACE_TCHAR > const&);
      EventServiceType (::XSCRT::XML::Attribute< ACE_TCHAR > const&);

      static EventServiceType const EC;
      static EventServiceType const RTEC;
      static EventServiceType const NOTIFY;
      static EventServiceType const RTNOTIFY;

      enum Value
      {
        EC_l,RTEC_l,NOTIFY_l,RTNOTIFY_l
      };


      Value
      integral () const;

      friend bool CIAO_Events_Handlers_Export 
      operator== (EventServiceType const& a, EventServiceType const& b);

      friend bool CIAO_Events_Handlers_Export 
      operator!= (EventServiceType const& a, EventServiceType const& b);

      private:
      EventServiceType (Value v);

      Value v_;
    };

    bool CIAO_Events_Handlers_Export operator== (EventServiceType const &a, EventServiceType const &b);

    bool CIAO_Events_Handlers_Export operator!= (EventServiceType const &a, EventServiceType const &b);


    class CIAO_Events_Handlers_Export CIAOEventsDef : public ::XSCRT::Type
    {
      //@@ VC6 anathema
      typedef ::XSCRT::Type Base__;

      // eventServiceConfiguration
      // 
      public:
      typedef ::std::list< ::CIAO::Config_Handlers::EventServiceDescription >::iterator eventServiceConfiguration_iterator;
      typedef ::std::list< ::CIAO::Config_Handlers::EventServiceDescription >::const_iterator eventServiceConfiguration_const_iterator;
      eventServiceConfiguration_iterator begin_eventServiceConfiguration ();
      eventServiceConfiguration_iterator end_eventServiceConfiguration ();
      eventServiceConfiguration_const_iterator begin_eventServiceConfiguration () const;
      eventServiceConfiguration_const_iterator end_eventServiceConfiguration () const;
      void add_eventServiceConfiguration (::CIAO::Config_Handlers::EventServiceDescription const& );
      size_t count_eventServiceConfiguration (void) const;

      protected:
      ::std::list< ::CIAO::Config_Handlers::EventServiceDescription > eventServiceConfiguration_;

      // id
      // 
      public:
      bool id_p () const;
      ::XMLSchema::ID< ACE_TCHAR > const& id () const;
      ::XMLSchema::ID< ACE_TCHAR >& id ();
      void id (::XMLSchema::ID< ACE_TCHAR > const& );

      protected:
      ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > id_;

      public:
      CIAOEventsDef ();

      CIAOEventsDef (::XSCRT::XML::Element< ACE_TCHAR > const&);
      CIAOEventsDef (CIAOEventsDef const& s);

      CIAOEventsDef&
      operator= (CIAOEventsDef const& s);

      private:
      char regulator__;
    };


    class CIAO_Events_Handlers_Export EventServiceDescription : public ::XSCRT::Type
    {
      //@@ VC6 anathema
      typedef ::XSCRT::Type Base__;

      // name
      // 
      public:
      ::XMLSchema::string< ACE_TCHAR > const& name () const;
      void name (::XMLSchema::string< ACE_TCHAR > const& );

      protected:
      ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;

      // node
      // 
      public:
      ::XMLSchema::string< ACE_TCHAR > const& node () const;
      void node (::XMLSchema::string< ACE_TCHAR > const& );

      protected:
      ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > node_;

      // type
      // 
      public:
      ::CIAO::Config_Handlers::EventServiceType const& type () const;
      void type (::CIAO::Config_Handlers::EventServiceType const& );

      protected:
      ::std::auto_ptr< ::CIAO::Config_Handlers::EventServiceType > type_;

      // svc_cfg_file
      // 
      public:
      ::XMLSchema::string< ACE_TCHAR > const& svc_cfg_file () const;
      void svc_cfg_file (::XMLSchema::string< ACE_TCHAR > const& );

      protected:
      ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > svc_cfg_file_;

      // filter
      // 
      public:
      typedef ::std::list< ::CIAO::Config_Handlers::Filter >::iterator filter_iterator;
      typedef ::std::list< ::CIAO::Config_Handlers::Filter >::const_iterator filter_const_iterator;
      filter_iterator begin_filter ();
      filter_iterator end_filter ();
      filter_const_iterator begin_filter () const;
      filter_const_iterator end_filter () const;
      void add_filter (::CIAO::Config_Handlers::Filter const& );
      size_t count_filter (void) const;

      protected:
      ::std::list< ::CIAO::Config_Handlers::Filter > filter_;

      // addr_serv
      // 
      public:
      typedef ::std::list< ::CIAO::Config_Handlers::AddressServerDescription >::iterator addr_serv_iterator;
      typedef ::std::list< ::CIAO::Config_Handlers::AddressServerDescription >::const_iterator addr_serv_const_iterator;
      addr_serv_iterator begin_addr_serv ();
      addr_serv_iterator end_addr_serv ();
      addr_serv_const_iterator begin_addr_serv () const;
      addr_serv_const_iterator end_addr_serv () const;
      void add_addr_serv (::CIAO::Config_Handlers::AddressServerDescription const& );
      size_t count_addr_serv (void) const;

      protected:
      ::std::list< ::CIAO::Config_Handlers::AddressServerDescription > addr_serv_;

      // udp_sender
      // 
      public:
      typedef ::std::list< ::CIAO::Config_Handlers::UDPSenderDescription >::iterator udp_sender_iterator;
      typedef ::std::list< ::CIAO::Config_Handlers::UDPSenderDescription >::const_iterator udp_sender_const_iterator;
      udp_sender_iterator begin_udp_sender ();
      udp_sender_iterator end_udp_sender ();
      udp_sender_const_iterator begin_udp_sender () const;
      udp_sender_const_iterator end_udp_sender () const;
      void add_udp_sender (::CIAO::Config_Handlers::UDPSenderDescription const& );
      size_t count_udp_sender (void) const;

      protected:
      ::std::list< ::CIAO::Config_Handlers::UDPSenderDescription > udp_sender_;

      // udp_receiver
      // 
      public:
      typedef ::std::list< ::CIAO::Config_Handlers::UDPReceiverDescription >::iterator udp_receiver_iterator;
      typedef ::std::list< ::CIAO::Config_Handlers::UDPReceiverDescription >::const_iterator udp_receiver_const_iterator;
      udp_receiver_iterator begin_udp_receiver ();
      udp_receiver_iterator end_udp_receiver ();
      udp_receiver_const_iterator begin_udp_receiver () const;
      udp_receiver_const_iterator end_udp_receiver () const;
      void add_udp_receiver (::CIAO::Config_Handlers::UDPReceiverDescription const& );
      size_t count_udp_receiver (void) const;

      protected:
      ::std::list< ::CIAO::Config_Handlers::UDPReceiverDescription > udp_receiver_;

      // id
      // 
      public:
      bool id_p () const;
      ::XMLSchema::ID< ACE_TCHAR > const& id () const;
      ::XMLSchema::ID< ACE_TCHAR >& id ();
      void id (::XMLSchema::ID< ACE_TCHAR > const& );

      protected:
      ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > id_;

      public:
      EventServiceDescription (::XMLSchema::string< ACE_TCHAR > const& name__,
                               ::XMLSchema::string< ACE_TCHAR > const& node__,
                               ::CIAO::Config_Handlers::EventServiceType const& type__,
                               ::XMLSchema::string< ACE_TCHAR > const& svc_cfg_file__);

      EventServiceDescription (::XSCRT::XML::Element< ACE_TCHAR > const&);
      EventServiceDescription (EventServiceDescription const& s);

      EventServiceDescription&
      operator= (EventServiceDescription const& s);

      private:
      char regulator__;
    };


    class CIAO_Events_Handlers_Export FilterType : public ::XSCRT::Type
    {
      public:
      FilterType (::XSCRT::XML::Element< ACE_TCHAR > const&);
      FilterType (::XSCRT::XML::Attribute< ACE_TCHAR > const&);

      static FilterType const CONJUNCTION;
      static FilterType const DISJUNCTION;
      static FilterType const LOGICAL_AND;
      static FilterType const NEGATE;

      enum Value
      {
        CONJUNCTION_l,DISJUNCTION_l,LOGICAL_AND_l,NEGATE_l
      };


      Value
      integral () const;

      friend bool CIAO_Events_Handlers_Export 
      operator== (FilterType const& a, FilterType const& b);

      friend bool CIAO_Events_Handlers_Export 
      operator!= (FilterType const& a, FilterType const& b);

      private:
      FilterType (Value v);

      Value v_;
    };

    bool CIAO_Events_Handlers_Export operator== (FilterType const &a, FilterType const &b);

    bool CIAO_Events_Handlers_Export operator!= (FilterType const &a, FilterType const &b);


    class CIAO_Events_Handlers_Export Filter : public ::XSCRT::Type
    {
      //@@ VC6 anathema
      typedef ::XSCRT::Type Base__;

      // name
      // 
      public:
      ::XMLSchema::string< ACE_TCHAR > const& name () const;
      void name (::XMLSchema::string< ACE_TCHAR > const& );

      protected:
      ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;

      // type
      // 
      public:
      ::CIAO::Config_Handlers::FilterType const& type () const;
      void type (::CIAO::Config_Handlers::FilterType const& );

      protected:
      ::std::auto_ptr< ::CIAO::Config_Handlers::FilterType > type_;

      // source
      // 
      public:
      typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::iterator source_iterator;
      typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::const_iterator source_const_iterator;
      source_iterator begin_source ();
      source_iterator end_source ();
      source_const_iterator begin_source () const;
      source_const_iterator end_source () const;
      void add_source (::XMLSchema::string< ACE_TCHAR > const& );
      size_t count_source (void) const;

      protected:
      ::std::list< ::XMLSchema::string< ACE_TCHAR > > source_;

      // id
      // 
      public:
      bool id_p () const;
      ::XMLSchema::ID< ACE_TCHAR > const& id () const;
      ::XMLSchema::ID< ACE_TCHAR >& id ();
      void id (::XMLSchema::ID< ACE_TCHAR > const& );

      protected:
      ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > id_;

      public:
      Filter (::XMLSchema::string< ACE_TCHAR > const& name__,
              ::CIAO::Config_Handlers::FilterType const& type__);

      Filter (::XSCRT::XML::Element< ACE_TCHAR > const&);
      Filter (Filter const& s);

      Filter&
      operator= (Filter const& s);

      private:
      char regulator__;
    };


    class CIAO_Events_Handlers_Export AddressServerDescription : public ::XSCRT::Type
    {
      //@@ VC6 anathema
      typedef ::XSCRT::Type Base__;

      // name
      // 
      public:
      ::XMLSchema::string< ACE_TCHAR > const& name () const;
      void name (::XMLSchema::string< ACE_TCHAR > const& );

      protected:
      ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;

      // port
      // 
      public:
      ::XMLSchema::unsignedShort const& port () const;
      void port (::XMLSchema::unsignedShort const& );

      protected:
      ::std::auto_ptr< ::XMLSchema::unsignedShort > port_;

      // address
      // 
      public:
      ::XMLSchema::string< ACE_TCHAR > const& address () const;
      void address (::XMLSchema::string< ACE_TCHAR > const& );

      protected:
      ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > address_;

      public:
      AddressServerDescription (::XMLSchema::string< ACE_TCHAR > const& name__,
                                ::XMLSchema::unsignedShort const& port__,
                                ::XMLSchema::string< ACE_TCHAR > const& address__);

      AddressServerDescription (::XSCRT::XML::Element< ACE_TCHAR > const&);
      AddressServerDescription (AddressServerDescription const& s);

      AddressServerDescription&
      operator= (AddressServerDescription const& s);

      private:
      char regulator__;
    };


    class CIAO_Events_Handlers_Export UDPSenderDescription : public ::XSCRT::Type
    {
      //@@ VC6 anathema
      typedef ::XSCRT::Type Base__;

      // name
      // 
      public:
      ::XMLSchema::string< ACE_TCHAR > const& name () const;
      void name (::XMLSchema::string< ACE_TCHAR > const& );

      protected:
      ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;

      // addr_serv_id
      // 
      public:
      ::XMLSchema::string< ACE_TCHAR > const& addr_serv_id () const;
      void addr_serv_id (::XMLSchema::string< ACE_TCHAR > const& );

      protected:
      ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > addr_serv_id_;

      public:
      UDPSenderDescription (::XMLSchema::string< ACE_TCHAR > const& name__,
                            ::XMLSchema::string< ACE_TCHAR > const& addr_serv_id__);

      UDPSenderDescription (::XSCRT::XML::Element< ACE_TCHAR > const&);
      UDPSenderDescription (UDPSenderDescription const& s);

      UDPSenderDescription&
      operator= (UDPSenderDescription const& s);

      private:
      char regulator__;
    };


    class CIAO_Events_Handlers_Export UDPReceiverDescription : public ::XSCRT::Type
    {
      //@@ VC6 anathema
      typedef ::XSCRT::Type Base__;

      // name
      // 
      public:
      ::XMLSchema::string< ACE_TCHAR > const& name () const;
      void name (::XMLSchema::string< ACE_TCHAR > const& );

      protected:
      ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;

      // addr_serv_id
      // 
      public:
      bool addr_serv_id_p () const;
      ::XMLSchema::string< ACE_TCHAR > const& addr_serv_id () const;
      void addr_serv_id (::XMLSchema::string< ACE_TCHAR > const& );

      protected:
      ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > addr_serv_id_;

      // is_multicast
      // 
      public:
      ::XMLSchema::boolean const& is_multicast () const;
      void is_multicast (::XMLSchema::boolean const& );

      protected:
      ::std::auto_ptr< ::XMLSchema::boolean > is_multicast_;

      // listen_port
      // 
      public:
      ::XMLSchema::unsignedShort const& listen_port () const;
      void listen_port (::XMLSchema::unsignedShort const& );

      protected:
      ::std::auto_ptr< ::XMLSchema::unsignedShort > listen_port_;

      public:
      UDPReceiverDescription (::XMLSchema::string< ACE_TCHAR > const& name__,
                              ::XMLSchema::boolean const& is_multicast__,
                              ::XMLSchema::unsignedShort const& listen_port__);

      UDPReceiverDescription (::XSCRT::XML::Element< ACE_TCHAR > const&);
      UDPReceiverDescription (UDPReceiverDescription const& s);

      UDPReceiverDescription&
      operator= (UDPReceiverDescription const& s);

      private:
      char regulator__;
    };
  }
}

namespace CIAO
{
  namespace Config_Handlers
  {
    CIAO_Events_Handlers_Export
    ::CIAO::Config_Handlers::CIAOEventsDef
    CIAOEvents (xercesc::DOMDocument const*);
  }
}

#endif // CIAOEVENTS_HPP