-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
testC.h
2408 lines (2184 loc) · 63.1 KB
/
testC.h
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
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* **** Code generated by the RIDL Compiler ****
* RIDL has been developed by:
* Remedy IT Expertise BV
* The Netherlands
* https://www.remedy.nl
*/
#ifndef __RIDL_TESTC_H_CCIDECEE_INCLUDED__
#define __RIDL_TESTC_H_CCIDECEE_INCLUDED__
#pragma once
#include /**/ "tao/x11/base/pre.h"
#include "tao/x11/base/stddef.h"
#include "tao/x11/base/basic_traits.h"
#include "tao/x11/corba.h"
#include "tao/x11/orb.h"
#include "tao/x11/system_exception.h"
#include "tao/x11/object.h"
#include "tao/x11/object_ostream.h"
#include /**/ "tao/x11/base/versionx11.h"
#if TAOX11_MAJOR_VERSION != 2 || TAOX11_MINOR_VERSION != 6 || TAOX11_MICRO_VERSION != 0
#error This file was generated with another RIDL C++11 backend version (2.6.0). Please re-generate.
#endif
using namespace TAOX11_NAMESPACE;
// generated from c++11/templates/cli/hdr/struct_pre
/// @copydoc test.idl::Global
class Global
{
public:
// generated from c++11/templates/cli/hdr/struct_post
Global () = default;
~Global () = default;
Global (const Global&) = default;
Global (Global&&) = default;
/// Constructor which accepts value for all members
explicit inline Global (
int32_t x);
Global& operator= (const Global&) = default;
Global& operator= (Global&&) = default;
/// @copydoc test.idl::Global::x
//@{
inline void x (int32_t _x11_x) { this->x_ = _x11_x; }
inline int32_t x () const { return this->x_; }
inline int32_t& x () { return this->x_; }
//@}
/// Exchange the value of two structures in an efficient matter
inline void swap (Global& s);
private:
int32_t x_{};
};// Global
inline void swap (::Global& m1, ::Global& m2) { m1.swap (m2); }
// generated from StubHeaderWriter#enter_module
/// @copydoc test.idl::Test
namespace Test
{
// generated from c++11/templates/cli/hdr/enum
/// @copydoc test.idl::Test::DataType
enum class DataType : uint32_t
{
/// @copydoc test.idl::Test::DataType::dtEmpty
dtEmpty,
/// @copydoc test.idl::Test::DataType::dtLong
dtLong,
/// @copydoc test.idl::Test::DataType::dtShort
dtShort,
/// @copydoc test.idl::Test::DataType::dtString
dtString,
/// @copydoc test.idl::Test::DataType::dtPoint
dtPoint,
/// @copydoc test.idl::Test::DataType::dtTrack
dtTrack,
/// @copydoc test.idl::Test::DataType::dtGlobal
dtGlobal
};// DataType
// generated from c++11/templates/cli/hdr/struct_pre
/// @copydoc test.idl::Test::Point
class Point
{
public:
// generated from c++11/templates/cli/hdr/struct_post
Point () = default;
~Point () = default;
Point (const Point&) = default;
Point (Point&&) = default;
/// Constructor which accepts value for all members
explicit inline Point (
int32_t x,
int32_t y);
Point& operator= (const Point&) = default;
Point& operator= (Point&&) = default;
/// @copydoc test.idl::Test::Point::x
//@{
inline void x (int32_t _x11_x) { this->x_ = _x11_x; }
inline int32_t x () const { return this->x_; }
inline int32_t& x () { return this->x_; }
//@}
/// @copydoc test.idl::Test::Point::y
//@{
inline void y (int32_t _x11_y) { this->y_ = _x11_y; }
inline int32_t y () const { return this->y_; }
inline int32_t& y () { return this->y_; }
//@}
/// Exchange the value of two structures in an efficient matter
inline void swap (Point& s);
private:
int32_t x_{};
int32_t y_{};
};// Point
inline void swap (::Test::Point& m1, ::Test::Point& m2) { m1.swap (m2); }
// generated from c++11/templates/cli/hdr/struct_pre
/// @copydoc test.idl::Test::Track
class Track
{
public:
// generated from c++11/templates/cli/hdr/struct_post
Track () = default;
~Track () = default;
Track (const Track&) = default;
Track (Track&&) = default;
/// Constructor which accepts value for all members
explicit inline Track (
int32_t id,
::Test::Point p);
Track& operator= (const Track&) = default;
Track& operator= (Track&&) = default;
/// @copydoc test.idl::Test::Track::id
//@{
inline void id (int32_t _x11_id) { this->id_ = _x11_id; }
inline int32_t id () const { return this->id_; }
inline int32_t& id () { return this->id_; }
//@}
/// @copydoc test.idl::Test::Track::p
//@{
inline void p (const ::Test::Point& _x11_p) { this->p_ = _x11_p; }
inline void p (::Test::Point&& _x11_p) { this->p_ = std::move (_x11_p); }
inline const ::Test::Point& p () const { return this->p_; }
inline ::Test::Point& p () { return this->p_; }
//@}
/// Exchange the value of two structures in an efficient matter
inline void swap (Track& s);
private:
int32_t id_{};
::Test::Point p_{};
};// Track
inline void swap (::Test::Track& m1, ::Test::Track& m2) { m1.swap (m2); }
// generated from c++11/templates/cli/hdr/union_pre
/// @copydoc test.idl::Test::Data
class Data
{
public:
// generated from c++11/templates/cli/hdr/union_post
/// Default constructor creating an union initialized to
/// the default cause
Data () = default;
/// Copy constructor
inline Data (const Data&);
/// Move constructor
inline Data (Data&&);
/// Destructor
inline ~Data ();
/// Copy assignment operator
inline Data &operator= (const Data&);
/// Move assignment operator
inline Data &operator= (Data&&);
/// Set the discriminator. Only possible to set it to a
/// value within the same current union member, otherwise
/// a BAD_PARAM exception is thrown
inline void _d (DataType);
/// Get the discriminator
inline DataType _d () const { return this->disc_; }
/// @copydoc test.idl::Test::Data::longData
//@{
/// Set the value of the union, the discriminator is automatically
/// set to the correct value
inline void longData (int32_t _x11_longData);
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline int32_t longData () const;
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline int32_t& longData ();
//@}
/// @copydoc test.idl::Test::Data::shortData
//@{
/// Set the value of the union, the discriminator is automatically
/// set to the correct value
inline void shortData (int16_t _x11_shortData);
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline int16_t shortData () const;
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline int16_t& shortData ();
//@}
/// @copydoc test.idl::Test::Data::stringData
//@{
/// Set the value of the union, the discriminator is automatically
/// set to the correct value
inline void stringData (const std::string& _x11_stringData);
/// Set the value of the union, the discriminator is automatically
/// set to the correct value
inline void stringData (std::string&& _x11_stringData);
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline const std::string& stringData () const;
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline std::string& stringData ();
//@}
/// @copydoc test.idl::Test::Data::pointData
//@{
/// Set the value of the union, the discriminator is automatically
/// set to the correct value
inline void pointData (const ::Test::Point& _x11_pointData);
/// Set the value of the union, the discriminator is automatically
/// set to the correct value
inline void pointData (::Test::Point&& _x11_pointData);
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline const ::Test::Point& pointData () const;
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline ::Test::Point& pointData ();
//@}
/// @copydoc test.idl::Test::Data::trackData
//@{
/// Set the value of the union, the discriminator is automatically
/// set to the correct value
inline void trackData (const ::Test::Track& _x11_trackData);
/// Set the value of the union, the discriminator is automatically
/// set to the correct value
inline void trackData (::Test::Track&& _x11_trackData);
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline const ::Test::Track& trackData () const;
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline ::Test::Track& trackData ();
//@}
/// @copydoc test.idl::Test::Data::globalData
//@{
/// Set the value of the union, the discriminator is automatically
/// set to the correct value
inline void globalData (const ::Global& _x11_globalData);
/// Set the value of the union, the discriminator is automatically
/// set to the correct value
inline void globalData (::Global&& _x11_globalData);
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline const ::Global& globalData () const;
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline ::Global& globalData ();
//@}
/// Modifier that sets the union to a legal default value
inline void _default ();
/// Exchange the value of two unions in an efficient matter
inline void swap (Data& u);
private:
inline void _swap_u (Data& u);
inline void _move_u (Data& u);
inline void _clear ();
DataType disc_ {::Test::DataType::dtEmpty};
union u_type_
{
#if defined (_MSC_VER) && (_MSC_VER < 1930)
u_type_ ();
#else
u_type_ () = default;
#endif
~u_type_ ();
#if defined (_MSC_VER) && (_MSC_VER < 1930)
int32_t longData_;
#else
int32_t longData_ {};
#endif
int16_t shortData_;
std::string stringData_;
::Test::Point pointData_;
::Test::Track trackData_;
::Global globalData_;
} u_ {};
}; // class Data
inline void swap (::Test::Data& m1, ::Test::Data& m2) { m1.swap (m2); }
// generated from c++11/templates/cli/hdr/struct_pre
/// @copydoc test.idl::Test::S
class S
{
public:
// generated from c++11/templates/cli/hdr/struct_post
S () = default;
~S () = default;
S (const S&) = default;
S (S&&) = default;
/// Constructor which accepts value for all members
explicit inline S (
int32_t len);
S& operator= (const S&) = default;
S& operator= (S&&) = default;
/// @copydoc test.idl::Test::S::len
//@{
inline void len (int32_t _x11_len) { this->len_ = _x11_len; }
inline int32_t len () const { return this->len_; }
inline int32_t& len () { return this->len_; }
//@}
/// Exchange the value of two structures in an efficient matter
inline void swap (S& s);
private:
int32_t len_{};
};// S
inline void swap (::Test::S& m1, ::Test::S& m2) { m1.swap (m2); }
// generated from c++11/templates/cli/hdr/interface_fwd
#if !defined (_INTF_TEST__A_FWD_)
#define _INTF_TEST__A_FWD_
class A;
class A_proxy;
using A_proxy_ptr = A_proxy*;
#endif // !_INTF_TEST__A_FWD_
// generated from Base::CodeWriter#at_global_scope
} // namespace Test
// entering Base::CodeWriter#at_global_scope
// generated from c++11/templates/cli/hdr/interface_object_traits
#if !defined (_INTF_TEST__A_TRAITS_DECL_)
#define _INTF_TEST__A_TRAITS_DECL_
namespace TAOX11_NAMESPACE
{
namespace CORBA
{
template<>
object_traits<::Test::A>::shared_ptr_type
object_traits<::Test::A>::lock_shared (::Test::A* p);
template<>
object_traits<::Test::A>::ref_type
object_traits<::Test::A>::narrow (object_traits<TAOX11_NAMESPACE::CORBA::Object>::ref_type);
} // namespace CORBA
namespace IDL
{
template<>
struct traits <::Test::A> :
public IDL::common_byval_traits <CORBA::object_reference <::Test::A>>,
public CORBA::object_traits <::Test::A>
{
/// std::false_type or std::true_type type indicating whether
/// this interface is declared as local
using is_local = std::false_type;
/// std::false_type or std::true_type type indicating whether
/// this interface is declared as abstract
using is_abstract = std::false_type;
template <typename OStrm_, typename Formatter = formatter<::Test::A, OStrm_>>
static inline OStrm_& write_on(
OStrm_& os_, in_type val_,
Formatter fmt_ = Formatter ())
{
return fmt_ (os_, val_);
}
template <typename Formatter = std::false_type>
static inline __Writer<Formatter> write (in_type val) { return {val}; }
};
} // namespace IDL
} // namespace TAOX11_NAMESPACE
#endif // !_INTF_TEST__A_TRAITS_DECL_
// leaving Base::CodeWriter#at_global_scope
namespace Test
{
// generated from c++11/templates/cli/hdr/union_pre
/// @copydoc test.idl::Test::U
class U
{
public:
// generated from c++11/templates/cli/hdr/union_post
/// Default constructor creating an union initialized to
/// the default cause
U () = default;
/// Copy constructor
inline U (const U&);
/// Move constructor
inline U (U&&);
/// Destructor
inline ~U ();
/// Copy assignment operator
inline U &operator= (const U&);
/// Move assignment operator
inline U &operator= (U&&);
/// Set the discriminator. Only possible to set it to a
/// value within the same current union member, otherwise
/// a BAD_PARAM exception is thrown
inline void _d (int32_t);
/// Get the discriminator
inline int32_t _d () const { return this->disc_; }
/// @copydoc test.idl::Test::U::x
//@{
/// Set the value of the union, the discriminator is automatically
/// set to the correct value
inline void x (int32_t _x11_x);
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline int32_t x () const;
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline int32_t& x ();
//@}
/// @copydoc test.idl::Test::U::z
//@{
/// Set the value of the union, the discriminator is automatically
/// set to the correct value
inline void z (const std::string& _x11_z);
/// Set the value of the union, the discriminator is automatically
/// set to the correct value
inline void z (std::string&& _x11_z);
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline const std::string& z () const;
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline std::string& z ();
//@}
/// @copydoc test.idl::Test::U::w
//@{
/// Set the value of the union, the discriminator is automatically
/// set to the correct value
inline void w (const ::Test::S& _x11_w, int32_t _x11_disc = 3);
/// Set the value of the union, the discriminator is automatically
/// set to the correct value
inline void w (::Test::S&& _x11_w, int32_t _x11_disc = 3);
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline const ::Test::S& w () const;
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline ::Test::S& w ();
//@}
/// @copydoc test.idl::Test::U::obj
//@{
/// Set the value of the union, the discriminator is automatically
/// set to the correct value
inline void obj (IDL::traits<::Test::A>::ref_type _x11_obj, int32_t _x11_disc = (-2147483647-1));
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline IDL::traits<::Test::A>::ref_type obj () const;
/// Get the value of the union, if the discriminator doesn't match a
/// BAD_PARAM exception is thrown
inline IDL::traits<::Test::A>::ref_type& obj ();
//@}
/// Exchange the value of two unions in an efficient matter
inline void swap (U& u);
private:
inline void _swap_u (U& u);
inline void _move_u (U& u);
inline void _clear ();
int32_t disc_ {(-2147483647-1)};
union u_type_
{
#if defined (_MSC_VER) && (_MSC_VER < 1930)
u_type_ ();
#else
u_type_ () = default;
#endif
~u_type_ ();
int32_t x_;
std::string z_;
::Test::S w_;
#if defined (_MSC_VER) && (_MSC_VER < 1930)
IDL::traits<::Test::A>::ref_type obj_;
#else
IDL::traits<::Test::A>::ref_type obj_ {};
#endif
} u_ {};
}; // class U
inline void swap (::Test::U& m1, ::Test::U& m2) { m1.swap (m2); }
// generated from StubHeaderWriter#enter_interface
// generated from c++11/templates/cli/hdr/interface_fwd
#if !defined (_INTF_TEST__FOO_FWD_)
#define _INTF_TEST__FOO_FWD_
class Foo;
class Foo_proxy;
using Foo_proxy_ptr = Foo_proxy*;
#endif // !_INTF_TEST__FOO_FWD_
// generated from Base::CodeWriter#at_global_scope
} // namespace Test
// entering Base::CodeWriter#at_global_scope
// generated from c++11/templates/cli/hdr/interface_object_traits
#if !defined (_INTF_TEST__FOO_TRAITS_DECL_)
#define _INTF_TEST__FOO_TRAITS_DECL_
namespace TAOX11_NAMESPACE
{
namespace CORBA
{
template<>
object_traits<::Test::Foo>::shared_ptr_type
object_traits<::Test::Foo>::lock_shared (::Test::Foo* p);
template<>
object_traits<::Test::Foo>::ref_type
object_traits<::Test::Foo>::narrow (object_traits<TAOX11_NAMESPACE::CORBA::Object>::ref_type);
} // namespace CORBA
namespace IDL
{
template<>
struct traits <::Test::Foo> :
public IDL::common_byval_traits <CORBA::object_reference <::Test::Foo>>,
public CORBA::object_traits <::Test::Foo>
{
/// std::false_type or std::true_type type indicating whether
/// this interface is declared as local
using is_local = std::false_type;
/// std::false_type or std::true_type type indicating whether
/// this interface is declared as abstract
using is_abstract = std::false_type;
template <typename OStrm_, typename Formatter = formatter<::Test::Foo, OStrm_>>
static inline OStrm_& write_on(
OStrm_& os_, in_type val_,
Formatter fmt_ = Formatter ())
{
return fmt_ (os_, val_);
}
template <typename Formatter = std::false_type>
static inline __Writer<Formatter> write (in_type val) { return {val}; }
};
} // namespace IDL
} // namespace TAOX11_NAMESPACE
#endif // !_INTF_TEST__FOO_TRAITS_DECL_
// leaving Base::CodeWriter#at_global_scope
namespace Test
{
// generated from c++11/templates/cli/hdr/interface_pre
/// @copydoc test.idl::Test::Foo
class Foo
: public virtual TAOX11_NAMESPACE::CORBA::Object
{
public:
template <typename T> friend struct TAOX11_CORBA::object_traits;
/// @name Member types
//@{
using _traits_type = TAOX11_IDL::traits<Foo>;
/// Strong reference type
using _ref_type = TAOX11_IDL::traits<Foo>::ref_type;
//@}
// generated from c++11/templates/cli/hdr/operation
/// @copydoc test.idl::Test::Foo::pass_union
virtual bool
pass_union (
const ::Test::Data& s);
// generated from c++11/templates/cli/hdr/operation
/// @copydoc test.idl::Test::Foo::return_union
virtual ::Test::Data
return_union ();
// generated from c++11/templates/cli/hdr/operation
/// @copydoc test.idl::Test::Foo::get_union
virtual bool
get_union (
::Test::Data& s);
// generated from c++11/templates/cli/hdr/operation
/// @copydoc test.idl::Test::Foo::update_union
virtual bool
update_union (
::Test::Data& s);
// generated from c++11/templates/cli/hdr/operation
/// @copydoc test.idl::Test::Foo::shutdown
virtual void
shutdown ();
// generated from c++11/templates/cli/hdr/interface_post
protected:
using _shared_ptr_type = std::shared_ptr<Foo>;
template <typename _Tp1, typename, typename ...Args>
friend constexpr TAOX11_CORBA::object_reference<_Tp1> TAOX11_CORBA::make_reference(Args&& ...args);
explicit Foo (Foo_proxy_ptr p, bool inherited = false);
/// Default constructor
Foo () = default;
/// Destructor
~Foo () override = default;
private:
/** @name Illegal to be called. Deleted explicitly to let the compiler detect any violation */
//@{
Foo(const Foo&) = delete;
Foo(Foo&&) = delete;
Foo& operator=(const Foo&) = delete;
Foo& operator=(Foo&&) = delete;
//@}
Foo_proxy_ptr foo_proxy_ {};
}; // class Foo
// generated from StubHeaderWriter#enter_interface
// generated from c++11/templates/cli/hdr/interface_pre
/// @copydoc test.idl::Test::A
class A
: public virtual TAOX11_NAMESPACE::CORBA::Object
{
public:
template <typename T> friend struct TAOX11_CORBA::object_traits;
/// @name Member types
//@{
using _traits_type = TAOX11_IDL::traits<A>;
/// Strong reference type
using _ref_type = TAOX11_IDL::traits<A>::ref_type;
//@}
// generated from c++11/templates/cli/hdr/interface_post
protected:
using _shared_ptr_type = std::shared_ptr<A>;
template <typename _Tp1, typename, typename ...Args>
friend constexpr TAOX11_CORBA::object_reference<_Tp1> TAOX11_CORBA::make_reference(Args&& ...args);
explicit A (A_proxy_ptr p, bool inherited = false);
/// Default constructor
A () = default;
/// Destructor
~A () override = default;
private:
/** @name Illegal to be called. Deleted explicitly to let the compiler detect any violation */
//@{
A(const A&) = delete;
A(A&&) = delete;
A& operator=(const A&) = delete;
A& operator=(A&&) = delete;
//@}
A_proxy_ptr a_proxy_ {};
}; // class A
} // namespace Test
// generated from StubHeaderIDLTraitsWriter#pre_visit
namespace TAOX11_NAMESPACE::IDL
{
// generated from c++11/templates/cli/hdr/struct_idl_traits
#if !defined (_STRUCT_GLOBAL_TRAITS_)
#define _STRUCT_GLOBAL_TRAITS_
template<>
struct traits <::Global>
: IDL::common_traits<::Global>
{
template <typename OStrm_, typename Formatter = formatter<value_type, OStrm_>>
static inline OStrm_& write_on(OStrm_& os_, in_type val_, Formatter fmt_ = Formatter ())
{
return fmt_ (os_, val_);
}
template <typename Formatter = std::false_type>
static inline __Writer<Formatter> write (in_type val) { return {val}; }
};
template <typename OStrm_>
struct formatter<::Global, OStrm_>;
template <typename OStrm_, typename Fmt>
OStrm_& operator <<(OStrm_&, IDL::traits<::Global>::__Writer<Fmt>);
#endif // _STRUCT_GLOBAL_TRAITS_
// generated from c++11/templates/cli/hdr/enum_idl_traits
template<>
struct traits <::Test::DataType>
: IDL::common_byval_traits<::Test::DataType>
{
/// Underlying type of the enum
using underlying_type = uint32_t;
/// bit_bound
using bit_bound = std::integral_constant<uint8_t, 32>;
template <typename OStrm_, typename Formatter = formatter<value_type, OStrm_>>
static inline OStrm_& write_on(OStrm_& os_, in_type val_, Formatter fmt_ = Formatter ())
{
return fmt_ (os_, val_);
}
template <typename Formatter = std::false_type>
static inline __Writer<Formatter> write (in_type val) { return {val}; }
};
template <typename OStrm_>
struct formatter<::Test::DataType, OStrm_>
{
inline OStrm_& operator ()(OStrm_& os_, ::Test::DataType val_)
{
switch (val_)
{
case ::Test::DataType::dtEmpty: os_ << "Test::DataType::dtEmpty"; break;
case ::Test::DataType::dtLong: os_ << "Test::DataType::dtLong"; break;
case ::Test::DataType::dtShort: os_ << "Test::DataType::dtShort"; break;
case ::Test::DataType::dtString: os_ << "Test::DataType::dtString"; break;
case ::Test::DataType::dtPoint: os_ << "Test::DataType::dtPoint"; break;
case ::Test::DataType::dtTrack: os_ << "Test::DataType::dtTrack"; break;
case ::Test::DataType::dtGlobal: os_ << "Test::DataType::dtGlobal"; break;
}
return os_;
}
};
template <typename OStrm_, typename Fmt>
inline OStrm_& operator <<(OStrm_& os, IDL::traits<::Test::DataType>::__Writer<Fmt> w)
{
using writer_t = IDL::traits<::Test::DataType>::__Writer<Fmt>;
using formatter_t = typename std::conditional<
std::is_same<
typename writer_t::formatter_t,
std::false_type>::value,
formatter<::Test::DataType, OStrm_>,
typename writer_t::formatter_t>::type;
return IDL::traits<::Test::DataType>::write_on (os, w.val_, formatter_t ());
}
// generated from c++11/templates/cli/hdr/struct_idl_traits
#if !defined (_STRUCT_TEST__POINT_TRAITS_)
#define _STRUCT_TEST__POINT_TRAITS_
template<>
struct traits <::Test::Point>
: IDL::common_traits<::Test::Point>
{
template <typename OStrm_, typename Formatter = formatter<value_type, OStrm_>>
static inline OStrm_& write_on(OStrm_& os_, in_type val_, Formatter fmt_ = Formatter ())
{
return fmt_ (os_, val_);
}
template <typename Formatter = std::false_type>
static inline __Writer<Formatter> write (in_type val) { return {val}; }
};
template <typename OStrm_>
struct formatter<::Test::Point, OStrm_>;
template <typename OStrm_, typename Fmt>
OStrm_& operator <<(OStrm_&, IDL::traits<::Test::Point>::__Writer<Fmt>);
#endif // _STRUCT_TEST__POINT_TRAITS_
// generated from c++11/templates/cli/hdr/struct_idl_traits
#if !defined (_STRUCT_TEST__TRACK_TRAITS_)
#define _STRUCT_TEST__TRACK_TRAITS_
template<>
struct traits <::Test::Track>
: IDL::common_traits<::Test::Track>
{
template <typename OStrm_, typename Formatter = formatter<value_type, OStrm_>>
static inline OStrm_& write_on(OStrm_& os_, in_type val_, Formatter fmt_ = Formatter ())
{
return fmt_ (os_, val_);
}
template <typename Formatter = std::false_type>
static inline __Writer<Formatter> write (in_type val) { return {val}; }
};
template <typename OStrm_>
struct formatter<::Test::Track, OStrm_>;
template <typename OStrm_, typename Fmt>
OStrm_& operator <<(OStrm_&, IDL::traits<::Test::Track>::__Writer<Fmt>);
#endif // _STRUCT_TEST__TRACK_TRAITS_
// generated from c++11/templates/cli/hdr/union_idl_traits
#if !defined (_UNION_TEST__DATA_TRAITS_)
#define _UNION_TEST__DATA_TRAITS_
template<>
struct traits <::Test::Data>
: IDL::common_traits<::Test::Data>
{
template <typename OStrm_, typename Formatter = formatter<value_type, OStrm_>>
static inline OStrm_& write_on(OStrm_& os_, in_type val_, Formatter fmt_ = Formatter ())
{
return fmt_ (os_, val_);
}
template <typename Formatter = std::false_type>
static inline __Writer<Formatter> write (in_type val) { return {val}; }
};
template <typename OStrm_>
struct formatter<::Test::Data, OStrm_>;
template <typename OStrm_, typename Fmt>
OStrm_& operator <<(OStrm_&, IDL::traits<::Test::Data>::__Writer<Fmt>);
#endif // _UNION_TEST__DATA_TRAITS_
// generated from c++11/templates/cli/hdr/struct_idl_traits
#if !defined (_STRUCT_TEST__S_TRAITS_)
#define _STRUCT_TEST__S_TRAITS_
template<>
struct traits <::Test::S>
: IDL::common_traits<::Test::S>
{
template <typename OStrm_, typename Formatter = formatter<value_type, OStrm_>>
static inline OStrm_& write_on(OStrm_& os_, in_type val_, Formatter fmt_ = Formatter ())
{
return fmt_ (os_, val_);
}
template <typename Formatter = std::false_type>
static inline __Writer<Formatter> write (in_type val) { return {val}; }
};
template <typename OStrm_>
struct formatter<::Test::S, OStrm_>;
template <typename OStrm_, typename Fmt>
OStrm_& operator <<(OStrm_&, IDL::traits<::Test::S>::__Writer<Fmt>);
#endif // _STRUCT_TEST__S_TRAITS_
// generated from c++11/templates/cli/hdr/interface_idl_traits
#if !defined (_INTF_FMT_TEST__A_TRAITS_DECL_)
#define _INTF_FMT_TEST__A_TRAITS_DECL_
template <typename OStrm_>
struct formatter<::Test::A, OStrm_>
{
OStrm_& operator ()(OStrm_& , IDL::traits<::Test::A>::ref_type);
};
template <typename OStrm_, typename Fmt>
OStrm_& operator <<(OStrm_&, IDL::traits<::Test::A>::__Writer<Fmt>);
#endif // !_INTF_FMT_TEST__A_TRAITS_DECL_
// generated from c++11/templates/cli/hdr/union_idl_traits
#if !defined (_UNION_TEST__U_TRAITS_)
#define _UNION_TEST__U_TRAITS_
template<>
struct traits <::Test::U>
: IDL::common_traits<::Test::U>
{
template <typename OStrm_, typename Formatter = formatter<value_type, OStrm_>>
static inline OStrm_& write_on(OStrm_& os_, in_type val_, Formatter fmt_ = Formatter ())
{
return fmt_ (os_, val_);
}
template <typename Formatter = std::false_type>
static inline __Writer<Formatter> write (in_type val) { return {val}; }
};
template <typename OStrm_>
struct formatter<::Test::U, OStrm_>;
template <typename OStrm_, typename Fmt>
OStrm_& operator <<(OStrm_&, IDL::traits<::Test::U>::__Writer<Fmt>);
#endif // _UNION_TEST__U_TRAITS_
// generated from c++11/templates/cli/hdr/interface_idl_traits
#if !defined (_INTF_FMT_TEST__FOO_TRAITS_DECL_)
#define _INTF_FMT_TEST__FOO_TRAITS_DECL_
template <typename OStrm_>
struct formatter<::Test::Foo, OStrm_>
{
OStrm_& operator ()(OStrm_& , IDL::traits<::Test::Foo>::ref_type);
};
template <typename OStrm_, typename Fmt>
OStrm_& operator <<(OStrm_&, IDL::traits<::Test::Foo>::__Writer<Fmt>);
#endif // !_INTF_FMT_TEST__FOO_TRAITS_DECL_
// generated from c++11/templates/cli/hdr/interface_idl_traits
#if !defined (_INTF_FMT_TEST__A_TRAITS_DECL_)
#define _INTF_FMT_TEST__A_TRAITS_DECL_
template <typename OStrm_>
struct formatter<::Test::A, OStrm_>
{
OStrm_& operator ()(OStrm_& , IDL::traits<::Test::A>::ref_type);
};
template <typename OStrm_, typename Fmt>
OStrm_& operator <<(OStrm_&, IDL::traits<::Test::A>::__Writer<Fmt>);
#endif // !_INTF_FMT_TEST__A_TRAITS_DECL_
} // namespace TAOX11_NAMESPACE::IDL
// generated from StubHeaderIDLTraitsDefWriter#pre_visit
namespace TAOX11_NAMESPACE::IDL
{
// generated from c++11/templates/cli/hdr/struct_idl_traits_def
template <typename OStrm_>
struct formatter<::Global, OStrm_>
{
inline OStrm_& operator ()(
OStrm_& os_,
const ::Global& val_)
{
os_ << "Global"
<< '{'
<< "x=" << IDL::traits<int32_t>::write(val_.x ())
<< '}';
return os_;
}
};
template <typename OStrm_, typename Fmt>
inline OStrm_& operator <<(OStrm_& os, IDL::traits<::Global>::__Writer<Fmt> w)
{
using writer_t = IDL::traits<::Global>::__Writer<Fmt>;
using formatter_t = typename std::conditional<
std::is_same<
typename writer_t::formatter_t,
std::false_type>::value,
formatter<::Global, OStrm_>,
typename writer_t::formatter_t>::type;
return IDL::traits<::Global>::write_on (os, w.val_, formatter_t ());
}
// generated from c++11/templates/cli/hdr/struct_idl_traits_def
template <typename OStrm_>
struct formatter<::Test::Point, OStrm_>
{
inline OStrm_& operator ()(
OStrm_& os_,
const ::Test::Point& val_)
{
os_ << "Test::Point"
<< '{'
<< "x=" << IDL::traits<int32_t>::write(val_.x ())
<< ",y=" << IDL::traits<int32_t>::write(val_.y ())
<< '}';
return os_;
}
};
template <typename OStrm_, typename Fmt>
inline OStrm_& operator <<(OStrm_& os, IDL::traits<::Test::Point>::__Writer<Fmt> w)
{
using writer_t = IDL::traits<::Test::Point>::__Writer<Fmt>;
using formatter_t = typename std::conditional<