aboutsummaryrefslogtreecommitdiffstats
path: root/lib/orber/doc/src/orber_ifr.xml
blob: a667d7d9e44acd22925d6ea25c22ebc01ae70ed9 (plain) (blame)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">

<erlref>
  <header>
    <copyright>
      <year>1997</year><year>2016</year>
      <holder>Ericsson AB. All Rights Reserved.</holder>
    </copyright>
    <legalnotice>
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
 
          http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
    
    </legalnotice>

    <title>orber_ifr</title>
    <prepared></prepared>
    <docno></docno>
    <approved></approved>
    <checked></checked>
    <date>1997-10-13</date>
    <rev>A</rev>
  </header>
  <module>orber_ifr</module>
  <modulesummary>The Interface Repository stores representations of IDL information</modulesummary>
  <description>
    <p>This module contains functions for managing the Interface
      Repository (IFR). This documentation should be used in conjunction
      with the documentation in chapter 6 of <term id="CORBA"></term>2.3.
      Whenever the term IFR object is used in this manual page, it
      refers to a pseudo object used only for interaction with the IFR
      rather than a CORBA object.</p>
  </description>

  <section>
    <title>Initialization of the IFR</title>
    <p>The following functions are used to initialize the Interface
      Repository and to obtain the initial reference to the
      repository.</p>
  </section>
  <funcs>
    <func>
      <name>init(Nodes,Timeout) -> ok</name>
      <fsummary>Intialize the IFR</fsummary>
      <type>
        <v>Nodes = list()</v>
        <v>Timeout = integer() | infinity</v>
      </type>
      <desc>
        <p>This function should be called to initialize the IFR. It
          creates the necessary mnesia-tables. A mnesia schema should
          exist, and mnesia must be running.</p>
      </desc>
    </func>
    <func>
      <name>find_repository() -> #IFR_Repository_objref</name>
      <fsummary>Find the IFR object reference for the Repository</fsummary>
      <desc>
        <p>Find the IFR object reference for the Repository. This
          reference should be used when adding objects to the IFR, and
          when extracting information from the IFR.
          The first time this function is called, it will create the
          repository and all the primitive definitions.</p>
      </desc>
    </func>
  </funcs>

  <section>
    <title>General methods</title>
    <p>The following functions are the methods of the IFR. The first
      argument is always an #IFR_objref, i.e. the IFR (pseudo)object
      on which to apply this method. These functions are useful when
      the type of IFR object is not know, but they are somewhat slower
      than the specific functions listed below which only accept a
      particular type of IFR object as the first argument.</p>
  </section>
  <funcs>
    <func>
      <name>get_def_kind(Objref) -> Return</name>
      <fsummary>Return the definition kind of the IFR object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Return = atom() (one of dk_none, dk_all, dk_Attribute, dk_Constant, dk_Exception, dk_Interface, dk_Module, dk_Operation, dk_Typedef, dk_Alias, dk_Struct, dk_Union, dk_Enum, dk_Primitive, dk_String, dk_Wstring, dk_Fixed, dk_Sequence, dk_Array, dk_Repository)</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind. Returns the definition
          kind of the IFR object.</p>
      </desc>
    </func>
    <func>
      <name>destroy(Objref) -> Return</name>
      <fsummary>Destroy, except IRObject, Contained and Container, target object and its contents</fsummary>
      <type>
        <v>Objref = #IFR_object</v>
        <v>Return = tuple()</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind except IRObject,
          Contained and Container. Destroys that object and its
          contents (if any). Returns whatever mnesia:transaction
          returns.</p>
      </desc>
    </func>
    <func>
      <name>get_id(Objref) -> Return</name>
      <fsummary>Return the target object's repository id</fsummary>
      <type>
        <v>Objref = #IFR_object</v>
        <v>Return = string()</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Contained. Returns the repository id of that object.</p>
      </desc>
    </func>
    <func>
      <name>set_id(Objref,Id) -> ok</name>
      <fsummary>Set the target object's repository id</fsummary>
      <type>
        <v>Objref = #IFR_object</v>
        <v>Id = string()</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Contained. Sets the repository id of that object.</p>
      </desc>
    </func>
    <func>
      <name>get_name(Objref) -> Return</name>
      <fsummary>Return the name of the target object</fsummary>
      <type>
        <v>Objref = #IFR_object</v>
        <v>Return = string()</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Contained. Returns the name of that object.</p>
      </desc>
    </func>
    <func>
      <name>set_name(Objref,Name) -> ok</name>
      <fsummary>Set given name to target object</fsummary>
      <type>
        <v>Objref = #IFR_object</v>
        <v>Name = string()</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Contained. Sets the name of that object.</p>
      </desc>
    </func>
    <func>
      <name>get_version(Objref) -> Return</name>
      <fsummary>Return the version of the target object</fsummary>
      <type>
        <v>Objref = #IFR_object</v>
        <v>Return = string()</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Contained. Returns the version of that object.</p>
      </desc>
    </func>
    <func>
      <name>set_version(Objref,Version) -> ok</name>
      <fsummary>Set given version of the target object</fsummary>
      <type>
        <v>Objref = #IFR_object</v>
        <v>Version = string()</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Contained. Sets the version of that object.</p>
      </desc>
    </func>
    <func>
      <name>get_defined_in(Objref) -> Return</name>
      <fsummary>Return the Container the target object is contained in</fsummary>
      <type>
        <v>Objref = #IFR_object</v>
        <v>Return = #IFR_Container_objref</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Contained. Returns the Container object that the object is
          defined in.</p>
      </desc>
    </func>
    <func>
      <name>get_absolute_name(Objref) -> Return</name>
      <fsummary>Return the absolute name of the target object</fsummary>
      <type>
        <v>Objref = #IFR_object</v>
        <v>Return = string()</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Contained. Returns the absolute (scoped) name of that
          object.</p>
      </desc>
    </func>
    <func>
      <name>get_containing_repository(Objref) -> Return</name>
      <fsummary>Get the most derived Contained object associated  with the target object</fsummary>
      <type>
        <v>Objref = #IFR_object</v>
        <v>Return = #IFR_Repository_objref</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Contained. Returns the Repository that is eventually reached
          by recursively following the object's defined_in attribute.</p>
      </desc>
    </func>
    <func>
      <name>describe(Objref) -> Return</name>
      <fsummary>Return a tuple which describe the target object</fsummary>
      <type>
        <v>Objref = #IFR_object</v>
        <v>Return = tuple() (a contained_description record) | {exception, _}</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Contained. Returns a tuple describing the object.</p>
      </desc>
    </func>
    <func>
      <name>move(Objref,New_container,New_name,New_version) -> Return</name>
      <fsummary>Move the target object from its current location to given  Container, name and version</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>New_container = #IFR_Container_objref</v>
        <v>New_name = string()</v>
        <v>New_version = string()</v>
        <v>Return = ok | {exception, _}</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Contained. New_container is an IFR object of any kind that
          inherits from Container. Removes Objref from its current 
          Container, and adds it to New_container. The name attribute
          is changed to New_name and the version attribute is changed
          to New_version.</p>
      </desc>
    </func>
    <func>
      <name>lookup(Objref,Search_name) -> Return</name>
      <fsummary>Return the IFR object identified by the given name</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Search_name = string()</v>
        <v>Return =  #IFR_object</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Container. Returns an IFR object identified by search_name
          (a scoped name).</p>
      </desc>
    </func>
    <func>
      <name>contents(Objref,Limit_type,Exclude_inherited) -> Return</name>
      <fsummary>Return the content of the target object limited by the given constraints</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Limit_type = atom() (one of dk_none, dk_all, dk_Attribute, dk_Constant, dk_Exception, dk_Interface, dk_Module, dk_Operation, dk_Typedef, dk_Alias, dk_Struct, dk_Union, dk_Enum, dk_Primitive, dk_String, dk_Wstring, dk_Fixed, dk_Sequence, dk_Array, dk_Repository)</v>
        <v>Exclude_inherited = atom() (true or false)</v>
        <v>Return = list() (a list of IFR#_objects)</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Container. Returns the contents of that IFR object.</p>
      </desc>
    </func>
    <func>
      <name>lookup_name(Objref,Search_name,Levels_to_search, Limit_type, Exclude_inherited) -> Return</name>
      <fsummary>Return a list of IFR objects matching the given name</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Search_name = string()</v>
        <v>Levels_to_search = integer()</v>
        <v>Limit_type = atom() (one of dk_none, dk_all, dk_Attribute, dk_Constant, dk_Exception, dk_Interface, dk_Module, dk_Operation, dk_Typedef, dk_Alias, dk_Struct, dk_Union, dk_Enum, dk_Primitive, dk_String, dk_Wstring, dk_Fixed, dk_Sequence,  dk_Array, dk_Repository)</v>
        <v>Exclude_inherited = atom() (true or false)</v>
        <v>Return = list() (a list of #IFR_objects)</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Container. Returns a list of #IFR_objects with an id
          matching Search_name.</p>
      </desc>
    </func>
    <func>
      <name>describe_contents(Objref, Limit_type, Exclude_inherited, Max_returned_objs) -> Return</name>
      <fsummary>Return a list of descriptions of the IFR objects contained by the target Container object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Limit_type = atom() (one of dk_none, dk_all, dk_Attribute, dk_Constant, dk_Exception, dk_Interface, dk_Module, dk_Operation, dk_Typedef, dk_Alias, dk_Struct, dk_Union, dk_Enum, dk_Primitive, dk_String, dk_Wstring, dk_Fixed, dk_Sequence, dk_Array, dk_Repository)</v>
        <v>Exclude_inherited = atom() (true or false)</v>
        <v>Return = list() (a list of tuples (contained_description records) | {exception, _}</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Container. Returns a list of descriptions of the IFR objects
          in this Container's contents.</p>
      </desc>
    </func>
    <func>
      <name>create_module(Objref,Id,Name,Version) -> Return</name>
      <fsummary>Create an IFR object of given type</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Id = string()</v>
        <v>Name = string()</v>
        <v>Version = string()</v>
        <v>Return = #IFR_ModuleDef_objref</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Container. Creates an IFR object of the type ModuleDef.</p>
      </desc>
    </func>
    <func>
      <name>create_constant(Objref,Id,Name,Version,Type,Value) -> Return</name>
      <fsummary>Create a ConstantDef IFR object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Id = string()</v>
        <v>Name = string()</v>
        <v>Version = string()</v>
        <v>Type = #IFR_IDLType_objref</v>
        <v>Value = any()</v>
        <v>Return = #IFR_ConstantDef_objref</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Container. Creates an IFR object of the type ConstantDef.</p>
      </desc>
    </func>
    <func>
      <name>create_struct(Objref,Id,Name,Version,Members) -> Return</name>
      <fsummary>Create a StructDef IFR object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Id = string()</v>
        <v>Name = string()</v>
        <v>Version = string()</v>
        <v>Members = list() (list of structmember records)</v>
        <v>Return = #IFR_StructDef_objref</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Container. Creates an IFR object of the type StructDef.</p>
      </desc>
    </func>
    <func>
      <name>create_union(Objref,Id,Name,Version,Discriminator_type,Members) -> Return</name>
      <fsummary>Create a UnionDef IFR object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Id = string()</v>
        <v>Name = string()</v>
        <v>Version = string()</v>
        <v>Discriminator_type = #IFR_IDLType_Objref</v>
        <v>Members = list() (list of unionmember records)</v>
        <v>Return = #IFR_UnionDef_objref</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Container. Creates an IFR object of the type UnionDef.</p>
      </desc>
    </func>
    <func>
      <name>create_enum(Objref,Id,Name,Version,Members) -> Return</name>
      <fsummary>Create a EnumDef IFR object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Id = string()</v>
        <v>Name = string()</v>
        <v>Version = string()</v>
        <v>Members = list() (list of strings)</v>
        <v>Return = #IFR_EnumDef_objref</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Container. Creates an IFR object of the type EnumDef.</p>
      </desc>
    </func>
    <func>
      <name>create_alias(Objref,Id,Name,Version,Original_type) -> Return</name>
      <fsummary>Create a AliasDef IFR object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Id = string()</v>
        <v>Name = string()</v>
        <v>Version = string()</v>
        <v>Original_type = #IFR_IDLType_Objref</v>
        <v>Return = #IFR_AliasDef_objref</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Container. Creates an IFR object of the type AliasDef.</p>
      </desc>
    </func>
    <func>
      <name>create_interface(Objref,Id,Name,Version,Base_interfaces) -> Return</name>
      <fsummary>Create a InterfaceDef IFR object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Id = string()</v>
        <v>Name = string()</v>
        <v>Version = string()</v>
        <v>Base_interfaces = list() (a list of IFR_InterfaceDef_objrefs that this interface inherits from</v>
        <v>Return = #IFR_InterfaceDef_objref</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Container. Creates an IFR object of the type InterfaceDef.</p>
      </desc>
    </func>
    <func>
      <name>create_exception(Objref,Id,Name,Version,Members) -> Return</name>
      <fsummary>Create a ExceptionDef IFR object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Id = string()</v>
        <v>Name = string()</v>
        <v>Version = string()</v>
        <v>Members = list() (list of structmember records)</v>
        <v>Return = #IFR_ExceptionDef_objref</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          Container. Creates an IFR object of the type ExceptionDef.</p>
      </desc>
    </func>
    <func>
      <name>get_type(Objref) -> Return</name>
      <fsummary>Return the typecode of the target object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Return = tuple() (a typecode tuple)</v>
      </type>
      <desc>
        <p>Objref is an IFR object of any kind that inherits from
          IDLType or an IFR object of the kind ConstantDef,
          ExceptionDef or AttributeDef. Returns the typecode of the
          IFR object.</p>
      </desc>
    </func>
    <func>
      <name>lookup_id(Objref,Search_id) -> Return</name>
      <fsummary>Return the IFR object matching the given id</fsummary>
      <type>
        <v>Objref = #IFR_Repository_objref</v>
        <v>Search_id = string()</v>
        <v>Return = #IFR_objref</v>
      </type>
      <desc>
        <p>Returns an IFR object matching the Search_id.</p>
      </desc>
    </func>
    <func>
      <name>get_primitive(Objref,Kind) -> Return</name>
      <fsummary>Return a PrimitiveDef of the specified kind</fsummary>
      <type>
        <v>Objref = #IFR_Repository_objref</v>
        <v>Kind = atom() (one of pk_null, pk_void, pk_short, pk_long, pk_ushort, pk_ulong, pk_float, pk_double, pk_boolean, pk_char, pk_octet, pk_any, pk_TypeCode, pk_Principal, pk_string, pk_wstring, pk_fixed, pk_objref)</v>
        <v>Return = #IFR_PrimitiveDef_objref</v>
      </type>
      <desc>
        <p>Returns a PrimitiveDef of the specified kind.</p>
      </desc>
    </func>
    <func>
      <name>create_string(Objref,Bound) -> Return</name>
      <fsummary>Create an IFR objref of the type StringDef</fsummary>
      <type>
        <v>Objref = #IFR_Repository_objref</v>
        <v>Bound = integer() (unsigned long /= 0)</v>
        <v>Return = #IFR_StringDef_objref</v>
      </type>
      <desc>
        <p>Creates an IFR objref of the type StringDef.</p>
      </desc>
    </func>
    <func>
      <name>create_wstring(Objref,Bound) -> Return</name>
      <fsummary>Create an IFR objref of the type WstringDef</fsummary>
      <type>
        <v>Objref = #IFR_Repository_objref</v>
        <v>Bound = integer() (unsigned long /= 0)</v>
        <v>Return = #IFR_WstringDef_objref</v>
      </type>
      <desc>
        <p>Creates an IFR objref of the type WstringDef.</p>
      </desc>
    </func>
    <func>
      <name>create_fixed(Objref,Digits,Scale) -> Return</name>
      <fsummary>Create an IFR objref of the type FixedDef</fsummary>
      <type>
        <v>Objref = #IFR_Repository_objref</v>
        <v>Digits = Scale = integer()</v>
        <v>Return = #IFR_FixedDef_objref</v>
      </type>
      <desc>
        <p>Creates an IFR objref of the type FixedDef.</p>
      </desc>
    </func>
    <func>
      <name>create_sequence(Objref,Bound,Element_type) -> Return</name>
      <fsummary>Create an IFR objref of the type SequenceDef</fsummary>
      <type>
        <v>Objref = #IFR_Repository_objref</v>
        <v>Bound = integer() (unsigned long)</v>
        <v>Element_type = #IFR_IDLType_objref</v>
        <v>Return = #IFR_SequenceDef_objref</v>
      </type>
      <desc>
        <p>Creates an IFR objref of the type SequenceDef.</p>
      </desc>
    </func>
    <func>
      <name>create_array(Objref,Length,Element_type) -> Return</name>
      <fsummary>Create an IFR objref of the type ArrayDef</fsummary>
      <type>
        <v>Objref = #IFR_Repository_objref</v>
        <v>Bound = integer() (unsigned long)</v>
        <v>Element_type = #IFR_IDLType_objref</v>
        <v>Return = #IFR_ArrayDef_objref</v>
      </type>
      <desc>
        <p>Creates an IFR objref of the type ArrayDef.</p>
      </desc>
    </func>
    <func>
      <name>create_idltype(Objref,Typecode) -> Return</name>
      <fsummary>Create an IFR objref of the type IDLType</fsummary>
      <type>
        <v>Objref = #IFR_Repository_objref</v>
        <v>Typecode = tuple() (a typecode tuple)</v>
        <v>Return = #IFR_IDLType_objref</v>
      </type>
      <desc>
        <p>Creates an IFR objref of the type IDLType.</p>
      </desc>
    </func>
    <func>
      <name>get_type_def(Objref) -> Return</name>
      <fsummary>Return an IFR object of the type IDLType describing the  type of the target object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Return = #IFR_IDLType_objref</v>
      </type>
      <desc>
        <p>Objref is an IFR object of the kind ConstantDef or
          AttributeDef. Returns an IFR object of the type IDLType
          describing the type of the IFR object.</p>
      </desc>
    </func>
    <func>
      <name>set_type_def(Objref,TypeDef) -> Return</name>
      <fsummary>Set given TypeDef of the target object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>TypeDef = #IFR_IDLType_objref</v>
        <v>Return = ok | {exception, _}</v>
      </type>
      <desc>
        <p>Objref is an IFR object of the kind ConstantDef or
          AttributeDef. Sets the type_def of the IFR Object.</p>
      </desc>
    </func>
    <func>
      <name>get_value(Objref) -> Return</name>
      <fsummary>Return the value attribute of the target ConstantDef object</fsummary>
      <type>
        <v>Objref = #IFR_ConstantDef_objref</v>
        <v>Return = any()</v>
      </type>
      <desc>
        <p>Returns the value attribute of an IFR Object of the type ConstantDef.</p>
      </desc>
    </func>
    <func>
      <name>set_value(Objref,Value) -> Return</name>
      <fsummary>Set the value attribute of the target ConstantDef object</fsummary>
      <type>
        <v>Objref = #IFR_ConstantDef_objref</v>
        <v>Value = any()</v>
        <v>Return = ok | {exception, _}</v>
      </type>
      <desc>
        <p>Sets the value attribute of an IFR Object of the type ConstantDef.</p>
      </desc>
    </func>
    <func>
      <name>get_members(Objref) -> Return</name>
      <fsummary>Return the members of the target object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Return = list()</v>
      </type>
      <desc>
        <p>Objref is an IFR object the kind StructDef, UnionDef,
          EnumDef or ExceptionDef.
          For StructDef, UnionDef and ExceptionDef: Returns a list of
          structmember records that are the constituent parts of the
          object.
          For EnumDef: Returns a list of strings describing the
          enumerations.</p>
      </desc>
    </func>
    <func>
      <name>set_members(Objref,Members) -> Return</name>
      <fsummary>Set the members attribute of the target object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Members = list()</v>
        <v>Return = ok | {exception, _}</v>
      </type>
      <desc>
        <p>Objref is an IFR object the kind StructDef, UnionDef,
          EnumDef or ExceptionDef.
          For StructDef, UnionDef and ExceptionDef: Members is a list
          of structmember records.
          For EnumDef: Members is a list of strings describing the
          enumerations.
          Sets the members attribute, which are the constituent parts of the
          exception.</p>
      </desc>
    </func>
    <func>
      <name>get_discriminator_type(Objref) -> Return</name>
      <fsummary>Get the discriminator typecode of the target object</fsummary>
      <type>
        <v>Objref = #IFR_UnionDef_objref</v>
        <v>Return = tuple() (a typecode tuple)</v>
      </type>
      <desc>
        <p>Returns the discriminator typecode of an IFR object of the type
          UnionDef.</p>
      </desc>
    </func>
    <func>
      <name>get_discriminator_type_def(Objref) -> Return</name>
      <fsummary>Return IDLType object describing the discriminator  type of the target object</fsummary>
      <type>
        <v>Objref = #IFR_UnionDef_objref</v>
        <v>Return = #IFR_IDLType_objref</v>
      </type>
      <desc>
        <p>Returns an IFR object of the type IDLType describing the
          discriminator type of an IFR object of the type UnionDef.</p>
      </desc>
    </func>
    <func>
      <name>set_discriminator_type_def(Objref,TypeDef) ->  Return</name>
      <fsummary>Set the attribute discriminator_type_def for the target object to the given TypeDef</fsummary>
      <type>
        <v>Objref = #IFR_UnionDef_objref</v>
        <v>Return = #IFR_IDLType_objref</v>
      </type>
      <desc>
        <p>Sets the attribute discriminator_type_def, an IFR object of
          the type IDLType describing the discriminator type of an IFR
          object of the type UnionDef.</p>
      </desc>
    </func>
    <func>
      <name>get_original_type_def(Objref) -> Return</name>
      <fsummary>Return an IFR object of the type IDLType describing the original type</fsummary>
      <type>
        <v>Objref = #IFR_AliasDef_objref</v>
        <v>Return = #IFR_IDLType_objref</v>
      </type>
      <desc>
        <p>Returns an IFR object of the type IDLType describing the
          original type.</p>
      </desc>
    </func>
    <func>
      <name>set_original_type_def(Objref,TypeDef) -> Return</name>
      <fsummary>Set the original_type_def attribute which describes the  original type</fsummary>
      <type>
        <v>Objref = #IFR_AliasDef_objref</v>
        <v>Typedef = #IFR_IDLType_objref</v>
        <v>Return = ok | {exception, _}</v>
      </type>
      <desc>
        <p>Sets the original_type_def attribute which describes the
          original type.</p>
      </desc>
    </func>
    <func>
      <name>get_kind(Objref) -> Return</name>
      <fsummary>Return an atom describing the primitive type</fsummary>
      <type>
        <v>Objref = #IFR_PrimitiveDef_objref</v>
        <v>Return = atom()</v>
      </type>
      <desc>
        <p>Returns an atom describing the primitive type (See CORBA 2.0
          p 6-21).</p>
      </desc>
    </func>
    <func>
      <name>get_bound(Objref) -> Return</name>
      <fsummary>Get the maximum size of the target object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Return = integer (unsigned long)</v>
      </type>
      <desc>
        <p>Objref is an IFR object the kind StringDef or SequenceDef.
          For StringDef: returns the maximum number of characters in
          the string.
          For SequenceDef: Returns the maximum number of elements in
          the sequence. Zero indicates an unbounded sequence.</p>
      </desc>
    </func>
    <func>
      <name>set_bound(Objref,Bound) -> Return</name>
      <fsummary>Set the maximum size of the target object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Bound = integer (unsigned long)</v>
        <v>Return = ok | {exception, _}</v>
      </type>
      <desc>
        <p>Objref is an IFR object the kind StringDef or SequenceDef.
          For StringDef: Sets the maximum number of characters in the
          string. Bound must not be zero.
          For SequenceDef: Sets the maximum number of elements in the
          sequence. Zero indicates an unbounded sequence.</p>
      </desc>
    </func>
    <func>
      <name>get_element_type(Objref) -> Return</name>
      <fsummary>Return the typecode of the elements in the IFR object</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Return = tuple() (a typecode tuple)</v>
      </type>
      <desc>
        <p>Objref is an IFR object the kind SequenceDef or ArrayDef.
          Returns the typecode of the elements in the IFR object.</p>
      </desc>
    </func>
    <func>
      <name>get_element_type_def(Objref) -> Return</name>
      <fsummary>Return an IFR object of the type IDLType describing the  type of the elements in Objref</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Return = #IFR_IDLType_objref</v>
      </type>
      <desc>
        <p>Objref is an IFR object the kind SequenceDef or ArrayDef.
          Returns an IFR object of the type IDLType describing the
          type of the elements in Objref.</p>
      </desc>
    </func>
    <func>
      <name>set_element_type_def(Objref,TypeDef) -> Return</name>
      <fsummary>Set the element_type_def attribute of the target object to the given TypeDef</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>TypeDef = #IFR_IDLType_objref</v>
        <v>Return = ok | {exception, _}</v>
      </type>
      <desc>
        <p>Objref is an IFR object the kind SequenceDef or ArrayDef.
          Sets the element_type_def attribute, an IFR object of the
          type IDLType describing the type of the elements in Objref.</p>
      </desc>
    </func>
    <func>
      <name>get_length(Objref) -> Return</name>
      <fsummary>Return the number of elements in the array</fsummary>
      <type>
        <v>Objref = #IFR_ArrayDef_objref</v>
        <v>Return = integer() (unsigned long)</v>
      </type>
      <desc>
        <p>Returns the number of elements in the array.</p>
      </desc>
    </func>
    <func>
      <name>set_length(Objref,Length) -> Return</name>
      <fsummary>Set the number of elements in the array</fsummary>
      <type>
        <v>Objref = #IFR_ArrayDef_objref</v>
        <v>Length = integer() (unsigned long)</v>
      </type>
      <desc>
        <p>Sets the number of elements in the array.</p>
      </desc>
    </func>
    <func>
      <name>get_mode(Objref) -> Return</name>
      <fsummary>Get the mode of the target object (AttributeDef or OperationDef)</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Return = atom()</v>
      </type>
      <desc>
        <p>Objref is an IFR object the kind AttributeDef or OperationDef.
          For AttributeDef: Return is an atom ('ATTR_NORMAL' or
          'ATTR_READONLY') specifying the read/write access for this
          attribute.
          For OperationDef: Return is an atom ('OP_NORMAL' or
          'OP_ONEWAY') specifying the mode of the operation.</p>
      </desc>
    </func>
    <func>
      <name>set_mode(Objref,Mode) -> Return</name>
      <fsummary>Set the mode of the target object (AttributeDef or OperationDef) to the given mode</fsummary>
      <type>
        <v>Objref = #IFR_objref</v>
        <v>Mode = atom()</v>
        <v>Return = ok | {exception, _}</v>
      </type>
      <desc>
        <p>Objref is an IFR object the kind AttributeDef or OperationDef.
          For AttributeDef: Sets the read/write access for this
          attribute. Mode is an atom ('ATTR_NORMAL' or
          'ATTR_READONLY').
          For OperationDef: Sets the mode of the operation. Mode is an
          atom ('OP_NORMAL' or 'OP_ONEWAY').</p>
      </desc>
    </func>
    <func>
      <name>get_result(Objref) -> Return</name>
      <fsummary>Return typecode describing the type of the value returned by the operation</fsummary>
      <type>
        <v>Objref = #IFR_OperationDef_objref</v>
        <v>Return = tuple() (a typecode tuple)</v>
      </type>
      <desc>
        <p>Returns a typecode describing the type of the value returned by the
          operation.</p>
      </desc>
    </func>
    <func>
      <name>get_result_def(Objref) -> Return</name>
      <fsummary>Return an IFR object of the type IDLType describing the  type of the result</fsummary>
      <type>
        <v>Objref = #IFR_OperationDef_objref</v>
        <v>Return = #IFR_IDLType_objref</v>
      </type>
      <desc>
        <p>Returns an IFR object of the type IDLType describing the type of the
          result.</p>
      </desc>
    </func>
    <func>
      <name>set_result_def(Objref,ResultDef) -> Return</name>
      <fsummary>Set the type_def attribute of the target object to the given ResultDef</fsummary>
      <type>
        <v>Objref = #IFR_OperationDef_objref</v>
        <v>ResultDef = #IFR_IDLType_objref</v>
        <v>Return = ok | {exception, _}</v>
      </type>
      <desc>
        <p>Sets the type_def attribute, an IFR Object of the type IDLType
          describing the result.</p>
      </desc>
    </func>
    <func>
      <name>get_params(Objref) -> Return</name>
      <fsummary>Return a list of parameter description records describing the parameters of the target OperationDef</fsummary>
      <type>
        <v>Objref = #IFR_OperationDef_objref</v>
        <v>Return = list() (list of parameter description records)</v>
      </type>
      <desc>
        <p>Returns a list of parameter description records, which describes the
          parameters of the OperationDef.</p>
      </desc>
    </func>
    <func>
      <name>set_params(Objref,Params) -> Return</name>
      <fsummary>Set the params attribute of the target object to the given parameter description records</fsummary>
      <type>
        <v>Objref = #IFR_OperationDef_objref</v>
        <v>Params = list() (list of parameter description records)</v>
        <v>Return = ok | {exception, _}</v>
      </type>
      <desc>
        <p>Sets the params attribute, a list of parameter description records.</p>
      </desc>
    </func>
    <func>
      <name>get_contexts(Objref) -> Return</name>
      <fsummary>Return a list of context identifiers for the operation</fsummary>
      <type>
        <v>Objref = #IFR_OperationDef_objref</v>
        <v>Return = list() (list of strings)</v>
      </type>
      <desc>
        <p>Returns a list of context identifiers for the operation.</p>
      </desc>
    </func>
    <func>
      <name>set_contexts(Objref,Contexts) -> Return</name>
      <fsummary>Set the context attribute for the operation</fsummary>
      <type>
        <v>Objref = #IFR_OperationDef_objref</v>
        <v>Contexts = list() (list of strings)</v>
        <v>Return = ok | {exception, _}</v>
      </type>
      <desc>
        <p>Sets the context attribute for the operation.</p>
      </desc>
    </func>
    <func>
      <name>get_exceptions(Objref) -> Return</name>
      <fsummary>Return a list of exception types that can be raised  by the target object</fsummary>
      <type>
        <v>Objref = #IFR_OperationDef_objref</v>
        <v>Return = list() (list of #IFR_ExceptionDef_objrefs)</v>
      </type>
      <desc>
        <p>Returns a list of exception types that can be raised by this
          operation.</p>
      </desc>
    </func>
    <func>
      <name>set_exceptions(Objref,Exceptions) -> Return</name>
      <fsummary>Set the exceptions attribute for the target object</fsummary>
      <type>
        <v>Objref = #IFR_OperationDef_objref</v>
        <v>Exceptions = list() (list of #IFR_ExceptionDef_objrefs)</v>
        <v>Return = ok | {exception, _}</v>
      </type>
      <desc>
        <p>Sets the exceptions attribute for this operation.</p>
      </desc>
    </func>
    <func>
      <name>get_base_interfaces(Objref) -> Return</name>
      <fsummary>Return a list of InterfaceDefs from which the  target InterfaceDef object inherit</fsummary>
      <type>
        <v>Objref = #IFR_InterfaceDef_objref</v>
        <v>Return = list() (list of #IFR_InterfaceDef_objrefs)</v>
      </type>
      <desc>
        <p>Returns a list of InterfaceDefs from which this InterfaceDef inherits.</p>
      </desc>
    </func>
    <func>
      <name>set_base_interfaces(Objref,BaseInterfaces) -> Return</name>
      <fsummary>Set the BaseInterfaces attribute</fsummary>
      <type>
        <v>Objref = #IFR_InterfaceDef_objref</v>
        <v>BaseInterfaces = list() (list of #IFR_InterfaceDef_objrefs)</v>
        <v>Return = ok | {exception, _}</v>
      </type>
      <desc>
        <p>Sets the BaseInterfaces attribute.</p>
      </desc>
    </func>
    <func>
      <name>is_a(Objref,Interface_id) -> Return</name>
      <fsummary>Return a boolean if the target InterfaceDef match or inherit from the given id</fsummary>
      <type>
        <v>Objref = #IFR_InterfaceDef_objref</v>
        <v>Interface_id = #IFR_InterfaceDef_objref</v>
        <v>Return = atom() (true or false)</v>
      </type>
      <desc>
        <p>Returns true if the InterfaceDef either is identical to or
          inherits from Interface_id.</p>
      </desc>
    </func>
    <func>
      <name>describe_interface(Objref) -> Return</name>
      <fsummary>Return a full inter face description record describing the InterfaceDef</fsummary>
      <type>
        <v>Objref = #IFR_InterfaceDef_objref</v>
        <v>Return = tuple() (a fullinterfacedescription record)</v>
      </type>
      <desc>
        <p>Returns a full inter face description record describing the InterfaceDef.</p>
      </desc>
    </func>
    <func>
      <name>create_attribute(Objref,Id,Name,Version,Type,Mode) -> Return</name>
      <fsummary>Create an IFR object of the type AttributeDef contained in  the target InterfaceDef object</fsummary>
      <type>
        <v>Objref = #IFR_InterfaceDef_objref</v>
        <v>Id = string()</v>
        <v>Name = string()</v>
        <v>Version = string()</v>
        <v>Type = #IFR_IDLType_objref</v>
        <v>Mode = atom() ('ATTR_NORMAL' or 'ATTR_READONLY')</v>
        <v>Return = #IFR_AttributeDef_objref</v>
      </type>
      <desc>
        <p>Creates an IFR object of the type AttributeDef contained in this
          InterfaceDef.</p>
      </desc>
    </func>
    <func>
      <name>create_operation(Objref,Id,Name,Version,Result,Mode,Params, Exceptions,Contexts) -> Return</name>
      <fsummary>Create an IFR object of the type OperationDef contained in the target InterfaceDef object</fsummary>
      <type>
        <v>Objref = #IFR_InterfaceDef_objref</v>
        <v>Id = string()</v>
        <v>Name = string()</v>
        <v>Version = string()</v>
        <v>Result = #IFR_IDLType_objref</v>
        <v>Mode = atom() ('OP_NORMAL' or 'OP_ONEWAY')</v>
        <v>Params = list() (list of parameter description records)</v>
        <v>Exceptions = list() (list of #IFR_ExceptionDef_objrefs)</v>
        <v>Contexts = list() (list of strings)</v>
        <v>Return = #IFR_OperationDef_objref</v>
      </type>
      <desc>
        <p>Creates an IFR object of the type OperationDef contained in this
          InterfaceDef.</p>
      </desc>
    </func>
  </funcs>
  
</erlref>