/
Capi.xsd
1428 lines (1428 loc) · 67.7 KB
/
Capi.xsd
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
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://gkmsoft.ru/beautifulcapi" targetNamespace="http://gkmsoft.ru/beautifulcapi">
<xs:element name="api" type="TBeautifulCapiRoot">
<xs:annotation>
<xs:documentation>Specifies root element describing API.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="TBeautifulCapiRoot">
<xs:annotation>
<xs:documentation>The purpose of *TBeautifulCapiRoot* node is to specify the project name, major, minor and patch versions. Also it specifies several root namespaces.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="1" name="namespace" type="TNamespace">
<xs:annotation>
<xs:documentation>Specifies the root namespace</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="project_name" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies the project name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="1" name="major_version" type="xs:integer" use="optional">
<xs:annotation>
<xs:documentation>Specifies the project major version</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="0" name="minor_version" type="xs:integer" use="optional">
<xs:annotation>
<xs:documentation>Specifies the project minor version</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="0" name="patch_version" type="xs:integer" use="optional">
<xs:annotation>
<xs:documentation>Specifies the project minor version</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="false" name="include_once" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies the use of this file only once.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TNamespace">
<xs:annotation>
<xs:documentation>The purpose of *TNamespace* node is to describe namespace.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element maxOccurs="1" minOccurs="0" name="documentation" type="TDocumentation">
<xs:annotation>
<xs:documentation>Specifies documentation for the current namespace</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="external_namespace" type="TExternalNamespace">
<xs:annotation>
<xs:documentation>Specifies an external namespace</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="external_library" type="TExternalLibrary">
<xs:annotation>
<xs:documentation>Specifies an external library</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="include" maxOccurs="unbounded" minOccurs="0" type="TApiInclude">
<xs:annotation>
<xs:documentation>Includes another XML API description file</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="functions_prolog" type="TProlog" minOccurs="0"/>
<xs:element name="methods_prolog" type="TProlog" minOccurs="0"/>
<xs:element name="namespace" type="TNamespace">
<xs:annotation>
<xs:documentation>Specifies the nested namespace</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="include_header" type="THeaderInclude">
<xs:annotation>
<xs:documentation>Specifies a header file name to include from the wrapper side</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="enumeration" type="TEnumeration">
<xs:annotation>
<xs:documentation>Specifies an enumeration type</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="class" type="TClass">
<xs:annotation>
<xs:documentation>Specifies a class</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="function" type="TFunction">
<xs:annotation>
<xs:documentation>Specifies a stand-alone function</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="template" type="TTemplate">
<xs:annotation>
<xs:documentation>Specifies a new template</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="property_set_prefix" type="TPropertySetPrefix">
<xs:annotation>
<xs:documentation>Specifies default value for setter's prefix</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="property_get_prefix" type="TPropertyGetPrefix">
<xs:annotation>
<xs:documentation>Specifies default value for getter's prefix</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="property_get_const" type="TPropertyGetConst">
<xs:annotation>
<xs:documentation>Specifies default value for getter's constant property</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="mapped_type" type="TMappedType">
<xs:annotation>
<xs:documentation>Specifies a new mapped type</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies the namespace name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="" name="implementation_header" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies an implementation header file</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="Notify" name="overload_suffix_mode" type="TOverloadSuffixMode" use="optional">
<xs:annotation>
<xs:documentation>Specifies overload suffix mode</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="true" name="generate_tests" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Enable / disable generation enums and nested class properties and enums for this namespace(and nested namespaces) with auto-generated unit tests</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TGenericDocumentation" mixed="true">
<xs:annotation>
<xs:documentation>The purpose of *TGenericDocumentation* node is to specify documentation for all objects which can have documentation. The documentation will be inserted as doxygen comments in the generated source code.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="reference" type="TReference">
<xs:annotation>
<xs:documentation>Specifies documentation reference for another documentation object</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="formula" type="TFormula">
<xs:annotation>
<xs:documentation>Specifies a formula block</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="see_also" type="TGenericDocumentation">
<xs:annotation>
<xs:documentation>Specifies @see doxygen documentation</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TDocumentation" mixed="true">
<xs:annotation>
<xs:documentation>The purpose of *TDocumentation* node is to specify documentation for functions and methods. The documentation will be inserted as doxygen comments in the generated source code.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="TGenericDocumentation">
<xs:sequence>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="brief" type="TGenericDocumentation">
<xs:annotation>
<xs:documentation>Specifies documentation which will be used as @brief doxygen documentation</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="returns" type="TGenericDocumentation">
<xs:annotation>
<xs:documentation>Specifies documentation for return values, this documentation will be used as @returns doxygen documentation</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="TReference" mixed="true">
<xs:annotation>
<xs:documentation>In documentation specifies reference to another class, function, enumeration or namespace, it will be used as @ref doxygen documentation.</xs:documentation>
</xs:annotation>
</xs:complexType>
<xs:complexType name="TFormula" mixed="true">
<xs:annotation>
<xs:documentation>In documentation specifies a formula block, it will be enclosed in @f$ and @f$ (for inline) or @f[ and @f] doxygen tags.</xs:documentation>
</xs:annotation>
<xs:attribute default="true" name="inline" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies whether to inline the formula</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TExternalNamespace">
<xs:annotation>
<xs:documentation>Specifies an external namespace. External namespace is a namespace of 3rd party library which also uses Beautiful Capi. The classes from the external library could be used as arguments in the current library API.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element maxOccurs="unbounded" minOccurs="0" name="class" type="TExternalClass">
<xs:annotation>
<xs:documentation>Specifies an external class which is a part of 3rd party library which also uses Beautiful Capi</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="namespace" type="TExternalNamespace">
<xs:annotation>
<xs:documentation>Specifies an nested external namespace</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="enumeration" type="TExternalEnumeration">
<xs:annotation>
<xs:documentation>Specifies an external enumeration which is a part of 3rd party library which also uses Beautiful Capi</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
<xs:attribute name="include" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies path to the include file, can be absolute or relative path to .xml file</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies the external namespace name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="Detach" name="detach_method_name" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies the name of *detach* method</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="GetRawPointer" name="get_raw_pointer_method_name" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies the name of *GetRawPointer* method</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="" name="project_name" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies the name of the BCapi library to export to CMakeLists as dependencies. Used in C# projects. You need to specify project_name only once for each library, which you used</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TExternalClass">
<xs:annotation>
<xs:documentation>Specifies an external class. External class is a part of 3rd party library which also uses Beautiful Capi. This class could be used as argument in the current library API.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="enumeration" type="TExternalEnumeration">
<xs:annotation>
<xs:documentation>Specifies an external enumeration which is a part of 3rd party library which also uses Beautiful Capi.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies the class name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="wrap_name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies the wrapped class name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="include_declaration" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies header file name which should be included to find the class declaration</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="include_definition" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies header file name which should be included to find the class definition</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TExternalLibrary">
<xs:annotation>
<xs:documentation>Specifies a 3rd party library which also uses Beautiful Capi. The classes from such library could be used as arguments in the current library API.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="define" type="TDefine">
<xs:annotation>
<xs:documentation>Specifies preprocessor definition before inclusion of the 3rd party library header</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="input_xml_file" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies path to another Beautiful Capi XML API description file, it can be absolute or relative path to .xml file</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="params_xml_file" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies path to another Beautiful Capi params XML file, it can be absolute or relative path to .xml file</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="main_header" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies path to main header of an external library</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TExternalEnumeration">
<xs:annotation>
<xs:documentation>Specifies external enumeration type. External enumeration is a part of 3rd party library which also uses Beautiful Capi. This enumeration could be used as argument in the current library API.</xs:documentation>
</xs:annotation>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies name of the current enumeration type</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="underlying_type" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies *underlying_type* for the current enumeration type, for instance, *uint16_t* which will be used in C language layer</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TApiInclude">
<xs:annotation>
<xs:documentation>Includes another XML API description file. The content of the included XML API description file is inserted as is to the current XML file.</xs:documentation>
</xs:annotation>
<xs:attribute name="path" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies path to another Beautiful Capi XML API description file, it can be absolute or relative path to .xml file</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="use_content_without_root_namespaces" type="xs:boolean" default="false" use="optional">
<xs:annotation>
<xs:documentation>Add classes and functions from root namespaces instead of using namespaces. This can be useful when using files with parts of namespaces shared between different projects</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TEnumerationItem">
<xs:annotation>
<xs:documentation>Specifies enumeration item.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" name="documentation" type="TGenericDocumentation">
<xs:annotation>
<xs:documentation>Specifies documentation for the current enumeration item</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies name of the current enumeration item</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="value" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies value of the current enumeration item</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="implementation_name" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specify enumeration entity implementation name</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TEnumeration">
<xs:annotation>
<xs:documentation>Specifies enumeration type.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" name="documentation" type="TDocumentation">
<xs:annotation>
<xs:documentation>Specifies documentation of the current enumeration type.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="1" name="item" type="TEnumerationItem">
<xs:annotation>
<xs:documentation>Specifies enumeration item</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies name of the current enumeration type</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="underlying_type" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies *underlying_type* for the current enumeration type, for instance, *uint16_t* which will be used in C language layer</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="use_strong_implementation_enum" type="xs:boolean" use="optional" default="false">
<xs:annotation>
<xs:documentation>Specifies to use C++ 11 strong enumeration type for implementation side</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="implementation_type" type="xs:string" use="optional" default="">
<xs:annotation>
<xs:documentation>Specifies *implementation_type* for the current enumeration type, for instance, some enumeration type on *the implementation side*</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="implementation_header" type="xs:string" use="optional" default="">
<xs:annotation>
<xs:documentation>Specifies implementation header name for the current function</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TTemplate">
<xs:annotation>
<xs:documentation>Specifies class template. Class template will be converted to several instantiated classes.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="argument" type="TArgument">
<xs:annotation>
<xs:documentation>Specifies template argument</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="1" name="instantiation" type="TInstantiation">
<xs:annotation>
<xs:documentation>Specifies template instantiation</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="1" minOccurs="1" name="class" type="TClass">
<xs:annotation>
<xs:documentation>Specifies template class</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute default="true" name="wrap_csharp_templates" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies to generate wrap flag</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TInstantiation">
<xs:annotation>
<xs:documentation>Specifies template class instantiation.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element maxOccurs="1" minOccurs="0" name="documentation" type="TDocumentation">
<xs:annotation>
<xs:documentation>Specifies documentation for the class</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="1" name="argument" type="TInstantiationArgument">
<xs:annotation>
<xs:documentation>Specifies a particular value for the specified template argument</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
<xs:attribute default="" name="typedef_name" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies typedef name for the instantiated template class</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="" name="implementation_class_name" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies implementation class name when template is instantiated by these arguments</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TInstantiationArgument">
<xs:annotation>
<xs:documentation>Specifies a value for a particular template argument.</xs:documentation>
</xs:annotation>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies template argument name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="value" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies template argument value</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TTypedef">
<xs:annotation>
<xs:documentation>Specifies properties for a type definition.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" name="documentation" type="TGenericDocumentation">
<xs:annotation>
<xs:documentation>Specifies documentation for the type definition</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies name of the type definition</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="type" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies type of the type definition</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TConstant">
<xs:annotation>
<xs:documentation>Specifies properties for a constant.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" name="documentation" type="TGenericDocumentation">
<xs:annotation>
<xs:documentation>Specifies documentation for the constant</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies name of the constant</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="type" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies type of the constant (note that static const specifier will be added to it)</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="false" name="is_builtin" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies flag if type of the constant is built-in</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="value" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies the value of the constant</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TClass">
<xs:annotation>
<xs:documentation>Specifies a class.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element maxOccurs="1" minOccurs="0" name="documentation" type="TDocumentation">
<xs:annotation>
<xs:documentation>Specifies documentation for the class</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="include_header" type="THeaderInclude">
<xs:annotation>
<xs:documentation>Specifies C or C++ header to include in wrapper class declaration header</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="methods_prolog" type="TProlog" minOccurs="0"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="enumeration" type="TEnumeration">
<xs:annotation>
<xs:documentation>Specifies enumeration type inside the class</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="constructor" type="TConstructor">
<xs:annotation>
<xs:documentation>Specifies constructor of the class</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="property" type="TProperty">
<xs:annotation>
<xs:documentation>Specifies property of the class, for each property getter and setter methods should be generated</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="method" type="TMethod">
<xs:annotation>
<xs:documentation>Specifies method of the class.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="indexer" type="TIndexer">
<xs:annotation>
<xs:documentation>Specifies indexer of the class.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="callback" type="TCallback">
<xs:annotation>
<xs:documentation>Enables callback mode for the class</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="mapped_type" type="TMappedType">
<xs:annotation>
<xs:documentation>Specifies mapped type for the class</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="lifecycle_extension" type="TLifecycleExtension">
<xs:annotation>
<xs:documentation>Specifies lifecycle extension for the class</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="constant" type="TConstant">
<xs:annotation>
<xs:documentation>Specifies a static constant of the class class (only added for public headers).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="typedef" type="TTypedef">
<xs:annotation>
<xs:documentation>Specifies a typdef of the class class</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies class name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="" name="base" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies base class name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="implementation_class_name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies implementation class name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="" name="snippet_type" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies snippet type name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="false" name="abstract" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies abstract class flag</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="implementation_class_header" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies C or C++ header file name where implementation class is defined</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="reference_counted" name="lifecycle" type="TLifecycle" use="optional">
<xs:annotation>
<xs:documentation>Specifies lifecycle semantic of the class</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="false" name="requires_cast_to_base" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies requirement for casting to base class</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="false" name="pointer_access" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies the pointer access flag, *->* instead of *.* will be used for accessing the implementation class</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="false" name="exception" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies if the class could be used as exception</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="1000" name="exception_code" type="xs:integer" use="optional">
<xs:annotation>
<xs:documentation>Specifies code of the current exception (useful if the current class is an exception)</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="exception_copy_by_value" type="xs:string" use="optional" default="new {implementation_type}(exception_object)">
<xs:annotation>
<xs:documentation>Specifies implementation class name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="" name="template_line" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Do not use, for internal usage only</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="" name="typedef_name" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Do not use, for internal usage only</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="false" name="copy_or_add_ref_noexcept" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies noexcept flag for copy constructor or increment reference counter function</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="true" name="delete_or_release_noexcept" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies noexcept flag for destructor or release function</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="Notify" name="overload_suffix_mode" type="TOverloadSuffixMode" use="optional">
<xs:annotation>
<xs:documentation>Specifies overload suffix mode for the class</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="{class_name}{wrap_suffix}" name="wrap_name" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies wrap name for the class</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="true" name="generate_copy_constructor" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies to generate copy constructor</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="impl_2_c" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies casting expression from the implementation class to C language layer</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="c_2_impl" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies casting expression from C language layer to the implementation class</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="custom_cast_to_base" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies custom casting expression from the current class to its base class</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="custom_down_cast" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies custom casting down expression from the current class to a derived class</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="true" name="down_cast" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies flag to generate down_cast template functions</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="true" name="generate_tests" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Enable / disable test generation for properties and enumerations for this class with auto-generated unit tests</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TCallback">
<xs:annotation>
<xs:documentation>Enables callback generation for the current class</xs:documentation>
</xs:annotation>
<xs:attribute default="reference_counted" name="lifecycle" type="TLifecycle" use="optional">
<xs:annotation>
<xs:documentation>Specifies lifecycle semantic for the custom implementations of this callback</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="false" name="copy_or_add_ref_noexcept" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies noexcept flag for copy or increment reference counter functions</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="true" name="delete_or_release_noexcept" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies noexcept flag for delete of release functions</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="implementation_class_name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies implementation class name</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="implementation_class_header" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies implementation class header</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TConstructorBase">
<xs:annotation>
<xs:documentation>Specifies base properties for constructors or methods.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" name="documentation" type="TDocumentation">
<xs:annotation>
<xs:documentation>Specifies documentation for the current constructor or method</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="0" name="argument" type="TArgument">
<xs:annotation>
<xs:documentation>Specifies argument for the current constructor or method</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element type="TImplementationCode" name="implementation_code" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies custom implementation code</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies name of the current constructor or method</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="false" name="return_copy_or_add_ref" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies to copy or increase reference counter for returned objects</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="false" name="noexcept" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies noexcept flag for the current constructor or method</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TConstructor">
<xs:annotation>
<xs:documentation>Specifies a constructor.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="TConstructorBase">
<xs:attribute default="false" name="explicit" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies *explicit* flag for the constructor</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="TImplementationCode" mixed="true">
<xs:annotation>
<xs:documentation>Specifies C++ code line to perform implementation calls.</xs:documentation>
</xs:annotation>
</xs:complexType>
<xs:complexType name="TProlog" mixed="true">
<xs:annotation>
<xs:documentation>Specifies C++ code line to perform implementation calls.</xs:documentation>
</xs:annotation>
</xs:complexType>
<xs:complexType name="TMethodBase">
<xs:annotation>
<xs:documentation>Specifies base properties for methods or functions.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="TConstructorBase">
<xs:sequence>
<xs:element name="prolog" type="TProlog" minOccurs="0"/>
</xs:sequence>
<xs:attribute default="" name="return" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies return type for the current method or function</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="false" name="return_is_builtin" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies flag if the return type is built-in type</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="" name="overload_suffix" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies overload suffix for the current method or function</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="new {implementation_type}({expression})" name="impl_2_c" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies casting expression from the implementation class to C language layer, for return objects</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="" name="implementation_name" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies implementation name for the current function or method</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="" name="setter_field_name" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies field name to automatically generate setter function</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="" name="getter_field_name" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies field name to automatically generate getter function</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="sharp_marshal_return_as" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies C# marshaling for the return</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="TMethod">
<xs:annotation>
<xs:documentation>Specifies properties for methods.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="TMethodBase">
<xs:attribute default="false" name="const" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies *const* property of the current method</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="false" name="static" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies *static* property of the current method</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="TIndexerBase">
<xs:annotation>
<xs:documentation>Restricts TMethodBase properties for indexers.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:restriction base="TConstructorBase">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" name="documentation" type="TDocumentation">
<xs:annotation>
<xs:documentation>Specifies documentation for the current constructor or method</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element maxOccurs="unbounded" minOccurs="1" name="argument" type="TArgument">
<xs:annotation>
<xs:documentation>Specifies argument for the current constructor or method</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element type="TImplementationCode" name="implementation_code" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies custom implementation code</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies name of the current constructor or method</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="false" name="return_copy_or_add_ref" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies to copy or increase reference counter for returned objects</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="false" name="noexcept" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies noexcept flag for the current constructor or method</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="TIndexer">
<xs:annotation>
<xs:documentation>Used for array like access. Uses operator[] or operator() in C and indexers in C#.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="TIndexerBase">
<xs:attribute default="new {implementation_type}({expression})" name="impl_2_c" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies casting expression from the implementation class to C language layer, for return objects</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="sharp_marshal_return_as" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies C# marshaling for the return</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="indexed_set_type" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies indexed type for the C# indexer's and C operator() or operator[]</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="indexed_get_type" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Specifies indexed type for the C# indexer's and C operator() const or operator[] const</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="false" name="indexed_is_builtin" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>Specifies flag if the indexed type is built-in type</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute default="{expression} = value;" name="set_impl" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies assignment expression for C# idexer's setter implementation</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="TFunction">
<xs:annotation>
<xs:documentation>Specifies properties for functions.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="TMethodBase">
<xs:attribute default="" name="implementation_header" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Specifies implementation header name for the current function</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="TArgument">
<xs:annotation>
<xs:documentation>Specifies properties for argument.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" name="documentation" type="TGenericDocumentation">
<xs:annotation>
<xs:documentation>Specifies documentation for the current argument</xs:documentation>
</xs:annotation>
</xs:element>