This file is indexed.

/usr/include/COS/CosRelationships.hh is in libcos4-dev 4.1.6-2.1+b1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   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
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
// This file is generated by omniidl (C++ backend)- omniORB_4_1. Do not edit.
#ifndef __CosRelationships_hh__
#define __CosRelationships_hh__

#ifndef __CORBA_H_EXTERNAL_GUARD__
#include <omniORB4/CORBA.h>
#endif

#ifndef  USE_stub_in_nt_dll
# define USE_stub_in_nt_dll_NOT_DEFINED_CosRelationships
#endif
#ifndef  USE_core_stub_in_nt_dll
# define USE_core_stub_in_nt_dll_NOT_DEFINED_CosRelationships
#endif
#ifndef  USE_dyn_stub_in_nt_dll
# define USE_dyn_stub_in_nt_dll_NOT_DEFINED_CosRelationships
#endif


#include "COS_sysdep.h"
#ifndef __corbaidl_hh_EXTERNAL_GUARD__
#define __corbaidl_hh_EXTERNAL_GUARD__
#include "corbaidl.hh"
#endif
#ifndef __boxes_hh_EXTERNAL_GUARD__
#define __boxes_hh_EXTERNAL_GUARD__
#include "boxes.hh"
#endif
#ifndef __ir_hh_EXTERNAL_GUARD__
#define __ir_hh_EXTERNAL_GUARD__
#include "ir.hh"
#endif
#ifndef __CosObjectIdentity_hh_EXTERNAL_GUARD__
#define __CosObjectIdentity_hh_EXTERNAL_GUARD__
#include "CosObjectIdentity.hh"
#endif



#ifdef USE_stub_in_nt_dll
# ifndef USE_core_stub_in_nt_dll
#  define USE_core_stub_in_nt_dll
# endif
# ifndef USE_dyn_stub_in_nt_dll
#  define USE_dyn_stub_in_nt_dll
# endif
#endif

#ifdef _core_attr
# error "A local CPP macro _core_attr has already been defined."
#else
# ifdef  USE_core_stub_in_nt_dll
#  define _core_attr _OMNIORB_NTDLL_IMPORT
# else
#  define _core_attr
# endif
#endif

#ifdef _dyn_attr
# error "A local CPP macro _dyn_attr has already been defined."
#else
# ifdef  USE_dyn_stub_in_nt_dll
#  define _dyn_attr _OMNIORB_NTDLL_IMPORT
# else
#  define _dyn_attr
# endif
#endif





_CORBA_MODULE CosRelationships

_CORBA_MODULE_BEG

#ifndef __CosRelationships_mRoleFactory__
#define __CosRelationships_mRoleFactory__

  class RoleFactory;
  class _objref_RoleFactory;
  class _impl_RoleFactory;
  
  typedef _objref_RoleFactory* RoleFactory_ptr;
  typedef RoleFactory_ptr RoleFactoryRef;

  class RoleFactory_Helper {
  public:
    typedef RoleFactory_ptr _ptr_type;

    static _ptr_type _nil();
    static _CORBA_Boolean is_nil(_ptr_type);
    static void release(_ptr_type);
    static void duplicate(_ptr_type);
    static void marshalObjRef(_ptr_type, cdrStream&);
    static _ptr_type unmarshalObjRef(cdrStream&);
  };

  typedef _CORBA_ObjRef_Var<_objref_RoleFactory, RoleFactory_Helper> RoleFactory_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_RoleFactory,RoleFactory_Helper > RoleFactory_out;

#endif

#ifndef __CosRelationships_mRelationshipFactory__
#define __CosRelationships_mRelationshipFactory__

  class RelationshipFactory;
  class _objref_RelationshipFactory;
  class _impl_RelationshipFactory;
  
  typedef _objref_RelationshipFactory* RelationshipFactory_ptr;
  typedef RelationshipFactory_ptr RelationshipFactoryRef;

  class RelationshipFactory_Helper {
  public:
    typedef RelationshipFactory_ptr _ptr_type;

    static _ptr_type _nil();
    static _CORBA_Boolean is_nil(_ptr_type);
    static void release(_ptr_type);
    static void duplicate(_ptr_type);
    static void marshalObjRef(_ptr_type, cdrStream&);
    static _ptr_type unmarshalObjRef(cdrStream&);
  };

  typedef _CORBA_ObjRef_Var<_objref_RelationshipFactory, RelationshipFactory_Helper> RelationshipFactory_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_RelationshipFactory,RelationshipFactory_Helper > RelationshipFactory_out;

#endif

#ifndef __CosRelationships_mRelationship__
#define __CosRelationships_mRelationship__

  class Relationship;
  class _objref_Relationship;
  class _impl_Relationship;
  
  typedef _objref_Relationship* Relationship_ptr;
  typedef Relationship_ptr RelationshipRef;

  class Relationship_Helper {
  public:
    typedef Relationship_ptr _ptr_type;

    static _ptr_type _nil();
    static _CORBA_Boolean is_nil(_ptr_type);
    static void release(_ptr_type);
    static void duplicate(_ptr_type);
    static void marshalObjRef(_ptr_type, cdrStream&);
    static _ptr_type unmarshalObjRef(cdrStream&);
  };

  typedef _CORBA_ObjRef_Var<_objref_Relationship, Relationship_Helper> Relationship_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_Relationship,Relationship_Helper > Relationship_out;

#endif

#ifndef __CosRelationships_mRole__
#define __CosRelationships_mRole__

  class Role;
  class _objref_Role;
  class _impl_Role;
  
  typedef _objref_Role* Role_ptr;
  typedef Role_ptr RoleRef;

  class Role_Helper {
  public:
    typedef Role_ptr _ptr_type;

    static _ptr_type _nil();
    static _CORBA_Boolean is_nil(_ptr_type);
    static void release(_ptr_type);
    static void duplicate(_ptr_type);
    static void marshalObjRef(_ptr_type, cdrStream&);
    static _ptr_type unmarshalObjRef(cdrStream&);
  };

  typedef _CORBA_ObjRef_Var<_objref_Role, Role_Helper> Role_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_Role,Role_Helper > Role_out;

#endif

#ifndef __CosRelationships_mRelationshipIterator__
#define __CosRelationships_mRelationshipIterator__

  class RelationshipIterator;
  class _objref_RelationshipIterator;
  class _impl_RelationshipIterator;
  
  typedef _objref_RelationshipIterator* RelationshipIterator_ptr;
  typedef RelationshipIterator_ptr RelationshipIteratorRef;

  class RelationshipIterator_Helper {
  public:
    typedef RelationshipIterator_ptr _ptr_type;

    static _ptr_type _nil();
    static _CORBA_Boolean is_nil(_ptr_type);
    static void release(_ptr_type);
    static void duplicate(_ptr_type);
    static void marshalObjRef(_ptr_type, cdrStream&);
    static _ptr_type unmarshalObjRef(cdrStream&);
  };

  typedef _CORBA_ObjRef_Var<_objref_RelationshipIterator, RelationshipIterator_Helper> RelationshipIterator_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_RelationshipIterator,RelationshipIterator_Helper > RelationshipIterator_out;

#endif

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_RelatedObject;

  typedef ::CORBA::Object RelatedObject;
  typedef ::CORBA::Object_ptr RelatedObject_ptr;
  typedef ::CORBA::ObjectRef RelatedObjectRef;
  
  typedef ::CORBA::Object_Helper RelatedObject_Helper;
  
  typedef ::CORBA::Object_var RelatedObject_var;
  typedef ::CORBA::Object_out RelatedObject_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_Roles;

  class Roles_var;

  class Roles : public _CORBA_Unbounded_Sequence_ObjRef< _objref_Role, _CORBA_ObjRef_Element< _objref_Role, Role_Helper> , Role_Helper >  {
  public:
    typedef Roles_var _var_type;
    inline Roles() {}
    inline Roles(const Roles& _s)
      : _CORBA_Unbounded_Sequence_ObjRef< _objref_Role, _CORBA_ObjRef_Element< _objref_Role, Role_Helper> , Role_Helper > (_s) {}

    inline Roles(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence_ObjRef< _objref_Role, _CORBA_ObjRef_Element< _objref_Role, Role_Helper> , Role_Helper > (_max) {}
    inline Roles(_CORBA_ULong _max, _CORBA_ULong _len, Role_ptr* _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence_ObjRef< _objref_Role, _CORBA_ObjRef_Element< _objref_Role, Role_Helper> , Role_Helper > (_max, _len, _val, _rel) {}

  

    inline Roles& operator = (const Roles& _s) {
      _CORBA_Unbounded_Sequence_ObjRef< _objref_Role, _CORBA_ObjRef_Element< _objref_Role, Role_Helper> , Role_Helper > ::operator=(_s);
      return *this;
    }
  };

  class Roles_out;

  class Roles_var {
  public:
    inline Roles_var() : _pd_seq(0) {}
    inline Roles_var(Roles* _s) : _pd_seq(_s) {}
    inline Roles_var(const Roles_var& _s) {
      if( _s._pd_seq )  _pd_seq = new Roles(*_s._pd_seq);
      else              _pd_seq = 0;
    }
    inline ~Roles_var() { if( _pd_seq )  delete _pd_seq; }
      
    inline Roles_var& operator = (Roles* _s) {
      if( _pd_seq )  delete _pd_seq;
      _pd_seq = _s;
      return *this;
    }
    inline Roles_var& operator = (const Roles_var& _s) {
      if( _s._pd_seq ) {
        if( !_pd_seq )  _pd_seq = new Roles;
        *_pd_seq = *_s._pd_seq;
      } else if( _pd_seq ) {
        delete _pd_seq;
        _pd_seq = 0;
      }
      return *this;
    }
    inline _CORBA_ObjRef_Element< _objref_Role, Role_Helper>  operator [] (_CORBA_ULong _s) {
      return (*_pd_seq)[_s];
    }

  

    inline Roles* operator -> () { return _pd_seq; }
    inline const Roles* operator -> () const { return _pd_seq; }
#if defined(__GNUG__)
    inline operator Roles& () const { return *_pd_seq; }
#else
    inline operator const Roles& () const { return *_pd_seq; }
    inline operator Roles& () { return *_pd_seq; }
#endif
      
    inline const Roles& in() const { return *_pd_seq; }
    inline Roles&       inout()    { return *_pd_seq; }
    inline Roles*&      out() {
      if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
      return _pd_seq;
    }
    inline Roles* _retn() { Roles* tmp = _pd_seq; _pd_seq = 0; return tmp; }
      
    friend class Roles_out;
    
  private:
    Roles* _pd_seq;
  };

  class Roles_out {
  public:
    inline Roles_out(Roles*& _s) : _data(_s) { _data = 0; }
    inline Roles_out(Roles_var& _s)
      : _data(_s._pd_seq) { _s = (Roles*) 0; }
    inline Roles_out(const Roles_out& _s) : _data(_s._data) {}
    inline Roles_out& operator = (const Roles_out& _s) {
      _data = _s._data;
      return *this;
    }
    inline Roles_out& operator = (Roles* _s) {
      _data = _s;
      return *this;
    }
    inline operator Roles*&()  { return _data; }
    inline Roles*& ptr()       { return _data; }
    inline Roles* operator->() { return _data; }

    inline _CORBA_ObjRef_Element< _objref_Role, Role_Helper>  operator [] (_CORBA_ULong _i) {
      return (*_data)[_i];
    }

  

    Roles*& _data;

  private:
    Roles_out();
    Roles_out& operator=(const Roles_var&);
  };

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_RoleName;

  typedef char* RoleName;
  typedef ::CORBA::String_var RoleName_var;
  typedef ::CORBA::String_out RoleName_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_RoleNames;

  class RoleNames_var;

  class RoleNames : public _CORBA_Unbounded_Sequence_String {
  public:
    typedef RoleNames_var _var_type;
    inline RoleNames() {}
    inline RoleNames(const RoleNames& _s)
      : _CORBA_Unbounded_Sequence_String(_s) {}

    inline RoleNames(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence_String(_max) {}
    inline RoleNames(_CORBA_ULong _max, _CORBA_ULong _len, char** _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence_String(_max, _len, _val, _rel) {}

  

    inline RoleNames& operator = (const RoleNames& _s) {
      _CORBA_Unbounded_Sequence_String::operator=(_s);
      return *this;
    }
  };

  class RoleNames_out;

  class RoleNames_var {
  public:
    inline RoleNames_var() : _pd_seq(0) {}
    inline RoleNames_var(RoleNames* _s) : _pd_seq(_s) {}
    inline RoleNames_var(const RoleNames_var& _s) {
      if( _s._pd_seq )  _pd_seq = new RoleNames(*_s._pd_seq);
      else              _pd_seq = 0;
    }
    inline ~RoleNames_var() { if( _pd_seq )  delete _pd_seq; }
      
    inline RoleNames_var& operator = (RoleNames* _s) {
      if( _pd_seq )  delete _pd_seq;
      _pd_seq = _s;
      return *this;
    }
    inline RoleNames_var& operator = (const RoleNames_var& _s) {
      if( _s._pd_seq ) {
        if( !_pd_seq )  _pd_seq = new RoleNames;
        *_pd_seq = *_s._pd_seq;
      } else if( _pd_seq ) {
        delete _pd_seq;
        _pd_seq = 0;
      }
      return *this;
    }
    inline _CORBA_String_element operator [] (_CORBA_ULong _s) {
      return (*_pd_seq)[_s];
    }

  

    inline RoleNames* operator -> () { return _pd_seq; }
    inline const RoleNames* operator -> () const { return _pd_seq; }
#if defined(__GNUG__)
    inline operator RoleNames& () const { return *_pd_seq; }
#else
    inline operator const RoleNames& () const { return *_pd_seq; }
    inline operator RoleNames& () { return *_pd_seq; }
#endif
      
    inline const RoleNames& in() const { return *_pd_seq; }
    inline RoleNames&       inout()    { return *_pd_seq; }
    inline RoleNames*&      out() {
      if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
      return _pd_seq;
    }
    inline RoleNames* _retn() { RoleNames* tmp = _pd_seq; _pd_seq = 0; return tmp; }
      
    friend class RoleNames_out;
    
  private:
    RoleNames* _pd_seq;
  };

  class RoleNames_out {
  public:
    inline RoleNames_out(RoleNames*& _s) : _data(_s) { _data = 0; }
    inline RoleNames_out(RoleNames_var& _s)
      : _data(_s._pd_seq) { _s = (RoleNames*) 0; }
    inline RoleNames_out(const RoleNames_out& _s) : _data(_s._data) {}
    inline RoleNames_out& operator = (const RoleNames_out& _s) {
      _data = _s._data;
      return *this;
    }
    inline RoleNames_out& operator = (RoleNames* _s) {
      _data = _s;
      return *this;
    }
    inline operator RoleNames*&()  { return _data; }
    inline RoleNames*& ptr()       { return _data; }
    inline RoleNames* operator->() { return _data; }

    inline _CORBA_String_element operator [] (_CORBA_ULong _i) {
      return (*_data)[_i];
    }

  

    RoleNames*& _data;

  private:
    RoleNames_out();
    RoleNames_out& operator=(const RoleNames_var&);
  };

  struct NamedRole {
    typedef _CORBA_ConstrType_Variable_Var<NamedRole> _var_type;

    
    ::CORBA::String_member name;

    _CORBA_ObjRef_Member< _objref_Role, Role_Helper>  aRole;

  

    void operator>>= (cdrStream &) const;
    void operator<<= (cdrStream &);
  };

  typedef NamedRole::_var_type NamedRole_var;

  typedef _CORBA_ConstrType_Variable_OUT_arg< NamedRole,NamedRole_var > NamedRole_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_NamedRole;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_NamedRoles;

  class NamedRoles_var;

  class NamedRoles : public _CORBA_Unbounded_Sequence< NamedRole >  {
  public:
    typedef NamedRoles_var _var_type;
    inline NamedRoles() {}
    inline NamedRoles(const NamedRoles& _s)
      : _CORBA_Unbounded_Sequence< NamedRole > (_s) {}

    inline NamedRoles(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence< NamedRole > (_max) {}
    inline NamedRoles(_CORBA_ULong _max, _CORBA_ULong _len, NamedRole* _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence< NamedRole > (_max, _len, _val, _rel) {}

  

    inline NamedRoles& operator = (const NamedRoles& _s) {
      _CORBA_Unbounded_Sequence< NamedRole > ::operator=(_s);
      return *this;
    }
  };

  class NamedRoles_out;

  class NamedRoles_var {
  public:
    inline NamedRoles_var() : _pd_seq(0) {}
    inline NamedRoles_var(NamedRoles* _s) : _pd_seq(_s) {}
    inline NamedRoles_var(const NamedRoles_var& _s) {
      if( _s._pd_seq )  _pd_seq = new NamedRoles(*_s._pd_seq);
      else              _pd_seq = 0;
    }
    inline ~NamedRoles_var() { if( _pd_seq )  delete _pd_seq; }
      
    inline NamedRoles_var& operator = (NamedRoles* _s) {
      if( _pd_seq )  delete _pd_seq;
      _pd_seq = _s;
      return *this;
    }
    inline NamedRoles_var& operator = (const NamedRoles_var& _s) {
      if( _s._pd_seq ) {
        if( !_pd_seq )  _pd_seq = new NamedRoles;
        *_pd_seq = *_s._pd_seq;
      } else if( _pd_seq ) {
        delete _pd_seq;
        _pd_seq = 0;
      }
      return *this;
    }
    inline NamedRole& operator [] (_CORBA_ULong _s) {
      return (*_pd_seq)[_s];
    }

  

    inline NamedRoles* operator -> () { return _pd_seq; }
    inline const NamedRoles* operator -> () const { return _pd_seq; }
#if defined(__GNUG__)
    inline operator NamedRoles& () const { return *_pd_seq; }
#else
    inline operator const NamedRoles& () const { return *_pd_seq; }
    inline operator NamedRoles& () { return *_pd_seq; }
#endif
      
    inline const NamedRoles& in() const { return *_pd_seq; }
    inline NamedRoles&       inout()    { return *_pd_seq; }
    inline NamedRoles*&      out() {
      if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
      return _pd_seq;
    }
    inline NamedRoles* _retn() { NamedRoles* tmp = _pd_seq; _pd_seq = 0; return tmp; }
      
    friend class NamedRoles_out;
    
  private:
    NamedRoles* _pd_seq;
  };

  class NamedRoles_out {
  public:
    inline NamedRoles_out(NamedRoles*& _s) : _data(_s) { _data = 0; }
    inline NamedRoles_out(NamedRoles_var& _s)
      : _data(_s._pd_seq) { _s = (NamedRoles*) 0; }
    inline NamedRoles_out(const NamedRoles_out& _s) : _data(_s._data) {}
    inline NamedRoles_out& operator = (const NamedRoles_out& _s) {
      _data = _s._data;
      return *this;
    }
    inline NamedRoles_out& operator = (NamedRoles* _s) {
      _data = _s;
      return *this;
    }
    inline operator NamedRoles*&()  { return _data; }
    inline NamedRoles*& ptr()       { return _data; }
    inline NamedRoles* operator->() { return _data; }

    inline NamedRole& operator [] (_CORBA_ULong _i) {
      return (*_data)[_i];
    }

  

    NamedRoles*& _data;

  private:
    NamedRoles_out();
    NamedRoles_out& operator=(const NamedRoles_var&);
  };

  struct RelationshipHandle {
    typedef _CORBA_ConstrType_Variable_Var<RelationshipHandle> _var_type;

    
    _CORBA_ObjRef_Member< _objref_Relationship, Relationship_Helper>  the_relationship;

    CosObjectIdentity::ObjectIdentifier constant_random_id;

  

    void operator>>= (cdrStream &) const;
    void operator<<= (cdrStream &);
  };

  typedef RelationshipHandle::_var_type RelationshipHandle_var;

  typedef _CORBA_ConstrType_Variable_OUT_arg< RelationshipHandle,RelationshipHandle_var > RelationshipHandle_out;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_RelationshipHandle;

  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_RelationshipHandles;

  class RelationshipHandles_var;

  class RelationshipHandles : public _CORBA_Unbounded_Sequence< RelationshipHandle >  {
  public:
    typedef RelationshipHandles_var _var_type;
    inline RelationshipHandles() {}
    inline RelationshipHandles(const RelationshipHandles& _s)
      : _CORBA_Unbounded_Sequence< RelationshipHandle > (_s) {}

    inline RelationshipHandles(_CORBA_ULong _max)
      : _CORBA_Unbounded_Sequence< RelationshipHandle > (_max) {}
    inline RelationshipHandles(_CORBA_ULong _max, _CORBA_ULong _len, RelationshipHandle* _val, _CORBA_Boolean _rel=0)
      : _CORBA_Unbounded_Sequence< RelationshipHandle > (_max, _len, _val, _rel) {}

  

    inline RelationshipHandles& operator = (const RelationshipHandles& _s) {
      _CORBA_Unbounded_Sequence< RelationshipHandle > ::operator=(_s);
      return *this;
    }
  };

  class RelationshipHandles_out;

  class RelationshipHandles_var {
  public:
    inline RelationshipHandles_var() : _pd_seq(0) {}
    inline RelationshipHandles_var(RelationshipHandles* _s) : _pd_seq(_s) {}
    inline RelationshipHandles_var(const RelationshipHandles_var& _s) {
      if( _s._pd_seq )  _pd_seq = new RelationshipHandles(*_s._pd_seq);
      else              _pd_seq = 0;
    }
    inline ~RelationshipHandles_var() { if( _pd_seq )  delete _pd_seq; }
      
    inline RelationshipHandles_var& operator = (RelationshipHandles* _s) {
      if( _pd_seq )  delete _pd_seq;
      _pd_seq = _s;
      return *this;
    }
    inline RelationshipHandles_var& operator = (const RelationshipHandles_var& _s) {
      if( _s._pd_seq ) {
        if( !_pd_seq )  _pd_seq = new RelationshipHandles;
        *_pd_seq = *_s._pd_seq;
      } else if( _pd_seq ) {
        delete _pd_seq;
        _pd_seq = 0;
      }
      return *this;
    }
    inline RelationshipHandle& operator [] (_CORBA_ULong _s) {
      return (*_pd_seq)[_s];
    }

  

    inline RelationshipHandles* operator -> () { return _pd_seq; }
    inline const RelationshipHandles* operator -> () const { return _pd_seq; }
#if defined(__GNUG__)
    inline operator RelationshipHandles& () const { return *_pd_seq; }
#else
    inline operator const RelationshipHandles& () const { return *_pd_seq; }
    inline operator RelationshipHandles& () { return *_pd_seq; }
#endif
      
    inline const RelationshipHandles& in() const { return *_pd_seq; }
    inline RelationshipHandles&       inout()    { return *_pd_seq; }
    inline RelationshipHandles*&      out() {
      if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
      return _pd_seq;
    }
    inline RelationshipHandles* _retn() { RelationshipHandles* tmp = _pd_seq; _pd_seq = 0; return tmp; }
      
    friend class RelationshipHandles_out;
    
  private:
    RelationshipHandles* _pd_seq;
  };

  class RelationshipHandles_out {
  public:
    inline RelationshipHandles_out(RelationshipHandles*& _s) : _data(_s) { _data = 0; }
    inline RelationshipHandles_out(RelationshipHandles_var& _s)
      : _data(_s._pd_seq) { _s = (RelationshipHandles*) 0; }
    inline RelationshipHandles_out(const RelationshipHandles_out& _s) : _data(_s._data) {}
    inline RelationshipHandles_out& operator = (const RelationshipHandles_out& _s) {
      _data = _s._data;
      return *this;
    }
    inline RelationshipHandles_out& operator = (RelationshipHandles* _s) {
      _data = _s;
      return *this;
    }
    inline operator RelationshipHandles*&()  { return _data; }
    inline RelationshipHandles*& ptr()       { return _data; }
    inline RelationshipHandles* operator->() { return _data; }

    inline RelationshipHandle& operator [] (_CORBA_ULong _i) {
      return (*_data)[_i];
    }

  

    RelationshipHandles*& _data;

  private:
    RelationshipHandles_out();
    RelationshipHandles_out& operator=(const RelationshipHandles_var&);
  };

#ifndef __CosRelationships_mRelationshipFactory__
#define __CosRelationships_mRelationshipFactory__

  class RelationshipFactory;
  class _objref_RelationshipFactory;
  class _impl_RelationshipFactory;
  
  typedef _objref_RelationshipFactory* RelationshipFactory_ptr;
  typedef RelationshipFactory_ptr RelationshipFactoryRef;

  class RelationshipFactory_Helper {
  public:
    typedef RelationshipFactory_ptr _ptr_type;

    static _ptr_type _nil();
    static _CORBA_Boolean is_nil(_ptr_type);
    static void release(_ptr_type);
    static void duplicate(_ptr_type);
    static void marshalObjRef(_ptr_type, cdrStream&);
    static _ptr_type unmarshalObjRef(cdrStream&);
  };

  typedef _CORBA_ObjRef_Var<_objref_RelationshipFactory, RelationshipFactory_Helper> RelationshipFactory_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_RelationshipFactory,RelationshipFactory_Helper > RelationshipFactory_out;

#endif

  // interface RelationshipFactory
  class RelationshipFactory {
  public:
    // Declarations for this interface type.
    typedef RelationshipFactory_ptr _ptr_type;
    typedef RelationshipFactory_var _var_type;

    static _ptr_type _duplicate(_ptr_type);
    static _ptr_type _narrow(::CORBA::Object_ptr);
    static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
    
    static _ptr_type _nil();

    static inline void _marshalObjRef(_ptr_type, cdrStream&);

    static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
      omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
      if (o)
        return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
      else
        return _nil();
    }

    static _core_attr const char* _PD_repoId;

    // Other IDL defined within this scope.
    struct NamedRoleType {
      typedef _CORBA_ConstrType_Variable_Var<NamedRoleType> _var_type;

      
      ::CORBA::String_member name;

      _CORBA_ObjRef_Member< CORBA::_objref_InterfaceDef, CORBA::InterfaceDef_Helper>  named_role_type;

    

      void operator>>= (cdrStream &) const;
      void operator<<= (cdrStream &);
    };

    typedef NamedRoleType::_var_type NamedRoleType_var;

    typedef _CORBA_ConstrType_Variable_OUT_arg< NamedRoleType,NamedRoleType_var > NamedRoleType_out;

    static _dyn_attr const ::CORBA::TypeCode_ptr _tc_NamedRoleType;

    static _dyn_attr const ::CORBA::TypeCode_ptr _tc_NamedRoleTypes;

    class NamedRoleTypes_var;

    class NamedRoleTypes : public _CORBA_Unbounded_Sequence< NamedRoleType >  {
    public:
      typedef NamedRoleTypes_var _var_type;
      inline NamedRoleTypes() {}
      inline NamedRoleTypes(const NamedRoleTypes& _s)
        : _CORBA_Unbounded_Sequence< NamedRoleType > (_s) {}

      inline NamedRoleTypes(_CORBA_ULong _max)
        : _CORBA_Unbounded_Sequence< NamedRoleType > (_max) {}
      inline NamedRoleTypes(_CORBA_ULong _max, _CORBA_ULong _len, NamedRoleType* _val, _CORBA_Boolean _rel=0)
        : _CORBA_Unbounded_Sequence< NamedRoleType > (_max, _len, _val, _rel) {}

    

      inline NamedRoleTypes& operator = (const NamedRoleTypes& _s) {
        _CORBA_Unbounded_Sequence< NamedRoleType > ::operator=(_s);
        return *this;
      }
    };

    class NamedRoleTypes_out;

    class NamedRoleTypes_var {
    public:
      inline NamedRoleTypes_var() : _pd_seq(0) {}
      inline NamedRoleTypes_var(NamedRoleTypes* _s) : _pd_seq(_s) {}
      inline NamedRoleTypes_var(const NamedRoleTypes_var& _s) {
        if( _s._pd_seq )  _pd_seq = new NamedRoleTypes(*_s._pd_seq);
        else              _pd_seq = 0;
      }
      inline ~NamedRoleTypes_var() { if( _pd_seq )  delete _pd_seq; }
        
      inline NamedRoleTypes_var& operator = (NamedRoleTypes* _s) {
        if( _pd_seq )  delete _pd_seq;
        _pd_seq = _s;
        return *this;
      }
      inline NamedRoleTypes_var& operator = (const NamedRoleTypes_var& _s) {
        if( _s._pd_seq ) {
          if( !_pd_seq )  _pd_seq = new NamedRoleTypes;
          *_pd_seq = *_s._pd_seq;
        } else if( _pd_seq ) {
          delete _pd_seq;
          _pd_seq = 0;
        }
        return *this;
      }
      inline NamedRoleType& operator [] (_CORBA_ULong _s) {
        return (*_pd_seq)[_s];
      }

    

      inline NamedRoleTypes* operator -> () { return _pd_seq; }
      inline const NamedRoleTypes* operator -> () const { return _pd_seq; }
#if defined(__GNUG__)
      inline operator NamedRoleTypes& () const { return *_pd_seq; }
#else
      inline operator const NamedRoleTypes& () const { return *_pd_seq; }
      inline operator NamedRoleTypes& () { return *_pd_seq; }
#endif
        
      inline const NamedRoleTypes& in() const { return *_pd_seq; }
      inline NamedRoleTypes&       inout()    { return *_pd_seq; }
      inline NamedRoleTypes*&      out() {
        if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
        return _pd_seq;
      }
      inline NamedRoleTypes* _retn() { NamedRoleTypes* tmp = _pd_seq; _pd_seq = 0; return tmp; }
        
      friend class NamedRoleTypes_out;
      
    private:
      NamedRoleTypes* _pd_seq;
    };

    class NamedRoleTypes_out {
    public:
      inline NamedRoleTypes_out(NamedRoleTypes*& _s) : _data(_s) { _data = 0; }
      inline NamedRoleTypes_out(NamedRoleTypes_var& _s)
        : _data(_s._pd_seq) { _s = (NamedRoleTypes*) 0; }
      inline NamedRoleTypes_out(const NamedRoleTypes_out& _s) : _data(_s._data) {}
      inline NamedRoleTypes_out& operator = (const NamedRoleTypes_out& _s) {
        _data = _s._data;
        return *this;
      }
      inline NamedRoleTypes_out& operator = (NamedRoleTypes* _s) {
        _data = _s;
        return *this;
      }
      inline operator NamedRoleTypes*&()  { return _data; }
      inline NamedRoleTypes*& ptr()       { return _data; }
      inline NamedRoleTypes* operator->() { return _data; }

      inline NamedRoleType& operator [] (_CORBA_ULong _i) {
        return (*_data)[_i];
      }

    

      NamedRoleTypes*& _data;

    private:
      NamedRoleTypes_out();
      NamedRoleTypes_out& operator=(const NamedRoleTypes_var&);
    };

    class RoleTypeError : public ::CORBA::UserException {
    public:
      
      NamedRoles culprits;

    

      inline RoleTypeError() {
        pd_insertToAnyFn    = insertToAnyFn;
        pd_insertToAnyFnNCP = insertToAnyFnNCP;
      }
      RoleTypeError(const RoleTypeError&);
      RoleTypeError(const NamedRoles i_culprits);
      RoleTypeError& operator=(const RoleTypeError&);
      virtual ~RoleTypeError();
      virtual void _raise() const;
      static RoleTypeError* _downcast(::CORBA::Exception*);
      static const RoleTypeError* _downcast(const ::CORBA::Exception*);
      static inline RoleTypeError* _narrow(::CORBA::Exception* _e) {
        return _downcast(_e);
      }
      
      void operator>>=(cdrStream&) const ;
      void operator<<=(cdrStream&) ;

      static _core_attr insertExceptionToAny    insertToAnyFn;
      static _core_attr insertExceptionToAnyNCP insertToAnyFnNCP;

      virtual ::CORBA::Exception* _NP_duplicate() const;

      static _core_attr const char* _PD_repoId;
      static _core_attr const char* _PD_typeId;

    private:
      virtual const char* _NP_typeId() const;
      virtual const char* _NP_repoId(int*) const;
      virtual void _NP_marshal(cdrStream&) const;
    };

    static _dyn_attr const ::CORBA::TypeCode_ptr _tc_RoleTypeError;

    class MaxCardinalityExceeded : public ::CORBA::UserException {
    public:
      
      NamedRoles culprits;

    

      inline MaxCardinalityExceeded() {
        pd_insertToAnyFn    = insertToAnyFn;
        pd_insertToAnyFnNCP = insertToAnyFnNCP;
      }
      MaxCardinalityExceeded(const MaxCardinalityExceeded&);
      MaxCardinalityExceeded(const NamedRoles i_culprits);
      MaxCardinalityExceeded& operator=(const MaxCardinalityExceeded&);
      virtual ~MaxCardinalityExceeded();
      virtual void _raise() const;
      static MaxCardinalityExceeded* _downcast(::CORBA::Exception*);
      static const MaxCardinalityExceeded* _downcast(const ::CORBA::Exception*);
      static inline MaxCardinalityExceeded* _narrow(::CORBA::Exception* _e) {
        return _downcast(_e);
      }
      
      void operator>>=(cdrStream&) const ;
      void operator<<=(cdrStream&) ;

      static _core_attr insertExceptionToAny    insertToAnyFn;
      static _core_attr insertExceptionToAnyNCP insertToAnyFnNCP;

      virtual ::CORBA::Exception* _NP_duplicate() const;

      static _core_attr const char* _PD_repoId;
      static _core_attr const char* _PD_typeId;

    private:
      virtual const char* _NP_typeId() const;
      virtual const char* _NP_repoId(int*) const;
      virtual void _NP_marshal(cdrStream&) const;
    };

    static _dyn_attr const ::CORBA::TypeCode_ptr _tc_MaxCardinalityExceeded;

    class DegreeError : public ::CORBA::UserException {
    public:
      
      ::CORBA::UShort required_degree;

    

      inline DegreeError() {
        pd_insertToAnyFn    = insertToAnyFn;
        pd_insertToAnyFnNCP = insertToAnyFnNCP;
      }
      DegreeError(const DegreeError&);
      DegreeError(::CORBA::UShort i_required_degree);
      DegreeError& operator=(const DegreeError&);
      virtual ~DegreeError();
      virtual void _raise() const;
      static DegreeError* _downcast(::CORBA::Exception*);
      static const DegreeError* _downcast(const ::CORBA::Exception*);
      static inline DegreeError* _narrow(::CORBA::Exception* _e) {
        return _downcast(_e);
      }
      
      void operator>>=(cdrStream&) const ;
      void operator<<=(cdrStream&) ;

      static _core_attr insertExceptionToAny    insertToAnyFn;
      static _core_attr insertExceptionToAnyNCP insertToAnyFnNCP;

      virtual ::CORBA::Exception* _NP_duplicate() const;

      static _core_attr const char* _PD_repoId;
      static _core_attr const char* _PD_typeId;

    private:
      virtual const char* _NP_typeId() const;
      virtual const char* _NP_repoId(int*) const;
      virtual void _NP_marshal(cdrStream&) const;
    };

    static _dyn_attr const ::CORBA::TypeCode_ptr _tc_DegreeError;

    class DuplicateRoleName : public ::CORBA::UserException {
    public:
      
      NamedRoles culprits;

    

      inline DuplicateRoleName() {
        pd_insertToAnyFn    = insertToAnyFn;
        pd_insertToAnyFnNCP = insertToAnyFnNCP;
      }
      DuplicateRoleName(const DuplicateRoleName&);
      DuplicateRoleName(const NamedRoles i_culprits);
      DuplicateRoleName& operator=(const DuplicateRoleName&);
      virtual ~DuplicateRoleName();
      virtual void _raise() const;
      static DuplicateRoleName* _downcast(::CORBA::Exception*);
      static const DuplicateRoleName* _downcast(const ::CORBA::Exception*);
      static inline DuplicateRoleName* _narrow(::CORBA::Exception* _e) {
        return _downcast(_e);
      }
      
      void operator>>=(cdrStream&) const ;
      void operator<<=(cdrStream&) ;

      static _core_attr insertExceptionToAny    insertToAnyFn;
      static _core_attr insertExceptionToAnyNCP insertToAnyFnNCP;

      virtual ::CORBA::Exception* _NP_duplicate() const;

      static _core_attr const char* _PD_repoId;
      static _core_attr const char* _PD_typeId;

    private:
      virtual const char* _NP_typeId() const;
      virtual const char* _NP_repoId(int*) const;
      virtual void _NP_marshal(cdrStream&) const;
    };

    static _dyn_attr const ::CORBA::TypeCode_ptr _tc_DuplicateRoleName;

    class UnknownRoleName : public ::CORBA::UserException {
    public:
      
      NamedRoles culprits;

    

      inline UnknownRoleName() {
        pd_insertToAnyFn    = insertToAnyFn;
        pd_insertToAnyFnNCP = insertToAnyFnNCP;
      }
      UnknownRoleName(const UnknownRoleName&);
      UnknownRoleName(const NamedRoles i_culprits);
      UnknownRoleName& operator=(const UnknownRoleName&);
      virtual ~UnknownRoleName();
      virtual void _raise() const;
      static UnknownRoleName* _downcast(::CORBA::Exception*);
      static const UnknownRoleName* _downcast(const ::CORBA::Exception*);
      static inline UnknownRoleName* _narrow(::CORBA::Exception* _e) {
        return _downcast(_e);
      }
      
      void operator>>=(cdrStream&) const ;
      void operator<<=(cdrStream&) ;

      static _core_attr insertExceptionToAny    insertToAnyFn;
      static _core_attr insertExceptionToAnyNCP insertToAnyFnNCP;

      virtual ::CORBA::Exception* _NP_duplicate() const;

      static _core_attr const char* _PD_repoId;
      static _core_attr const char* _PD_typeId;

    private:
      virtual const char* _NP_typeId() const;
      virtual const char* _NP_repoId(int*) const;
      virtual void _NP_marshal(cdrStream&) const;
    };

    static _dyn_attr const ::CORBA::TypeCode_ptr _tc_UnknownRoleName;

  
  };

  class _objref_RelationshipFactory :
    public virtual ::CORBA::Object,
    public virtual omniObjRef
  {
  public:
    Relationship_ptr create(const ::CosRelationships::NamedRoles& named_roles);
    CORBA::InterfaceDef_ptr relationship_type();
    ::CORBA::UShort degree();
    RelationshipFactory::NamedRoleTypes* named_role_types();

    inline _objref_RelationshipFactory()  { _PR_setobj(0); }  // nil
    _objref_RelationshipFactory(omniIOR*, omniIdentity*);

  protected:
    virtual ~_objref_RelationshipFactory();

    
  private:
    virtual void* _ptrToObjRef(const char*);

    _objref_RelationshipFactory(const _objref_RelationshipFactory&);
    _objref_RelationshipFactory& operator = (const _objref_RelationshipFactory&);
    // not implemented

    friend class RelationshipFactory;
  };

  class _pof_RelationshipFactory : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_RelationshipFactory() : _OMNI_NS(proxyObjectFactory)(RelationshipFactory::_PD_repoId) {}
    virtual ~_pof_RelationshipFactory();

    virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
    virtual _CORBA_Boolean is_a(const char*) const;
  };

  class _impl_RelationshipFactory :
    public virtual omniServant
  {
  public:
    virtual ~_impl_RelationshipFactory();

    virtual Relationship_ptr create(const ::CosRelationships::NamedRoles& named_roles) = 0;
    virtual CORBA::InterfaceDef_ptr relationship_type() = 0;
    virtual ::CORBA::UShort degree() = 0;
    virtual RelationshipFactory::NamedRoleTypes* named_role_types() = 0;
    
  public:  // Really protected, workaround for xlC
    virtual _CORBA_Boolean _dispatch(omniCallHandle&);

  private:
    virtual void* _ptrToInterface(const char*);
    virtual const char* _mostDerivedRepoId();
    
  };


  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_RelationshipFactory;

#ifndef __CosRelationships_mRelationship__
#define __CosRelationships_mRelationship__

  class Relationship;
  class _objref_Relationship;
  class _impl_Relationship;
  
  typedef _objref_Relationship* Relationship_ptr;
  typedef Relationship_ptr RelationshipRef;

  class Relationship_Helper {
  public:
    typedef Relationship_ptr _ptr_type;

    static _ptr_type _nil();
    static _CORBA_Boolean is_nil(_ptr_type);
    static void release(_ptr_type);
    static void duplicate(_ptr_type);
    static void marshalObjRef(_ptr_type, cdrStream&);
    static _ptr_type unmarshalObjRef(cdrStream&);
  };

  typedef _CORBA_ObjRef_Var<_objref_Relationship, Relationship_Helper> Relationship_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_Relationship,Relationship_Helper > Relationship_out;

#endif

  // interface Relationship
  class Relationship {
  public:
    // Declarations for this interface type.
    typedef Relationship_ptr _ptr_type;
    typedef Relationship_var _var_type;

    static _ptr_type _duplicate(_ptr_type);
    static _ptr_type _narrow(::CORBA::Object_ptr);
    static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
    
    static _ptr_type _nil();

    static inline void _marshalObjRef(_ptr_type, cdrStream&);

    static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
      omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
      if (o)
        return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
      else
        return _nil();
    }

    static _core_attr const char* _PD_repoId;

    // Other IDL defined within this scope.
    class CannotUnlink : public ::CORBA::UserException {
    public:
      
      Roles offending_roles;

    

      inline CannotUnlink() {
        pd_insertToAnyFn    = insertToAnyFn;
        pd_insertToAnyFnNCP = insertToAnyFnNCP;
      }
      CannotUnlink(const CannotUnlink&);
      CannotUnlink(const Roles i_offending_roles);
      CannotUnlink& operator=(const CannotUnlink&);
      virtual ~CannotUnlink();
      virtual void _raise() const;
      static CannotUnlink* _downcast(::CORBA::Exception*);
      static const CannotUnlink* _downcast(const ::CORBA::Exception*);
      static inline CannotUnlink* _narrow(::CORBA::Exception* _e) {
        return _downcast(_e);
      }
      
      void operator>>=(cdrStream&) const ;
      void operator<<=(cdrStream&) ;

      static _core_attr insertExceptionToAny    insertToAnyFn;
      static _core_attr insertExceptionToAnyNCP insertToAnyFnNCP;

      virtual ::CORBA::Exception* _NP_duplicate() const;

      static _core_attr const char* _PD_repoId;
      static _core_attr const char* _PD_typeId;

    private:
      virtual const char* _NP_typeId() const;
      virtual const char* _NP_repoId(int*) const;
      virtual void _NP_marshal(cdrStream&) const;
    };

    static _dyn_attr const ::CORBA::TypeCode_ptr _tc_CannotUnlink;

  
  };

  class _objref_Relationship :
    public virtual CosObjectIdentity::_objref_IdentifiableObject
  {
  public:
    void destroy();
    NamedRoles* named_roles();

    inline _objref_Relationship()  { _PR_setobj(0); }  // nil
    _objref_Relationship(omniIOR*, omniIdentity*);

  protected:
    virtual ~_objref_Relationship();

    
  private:
    virtual void* _ptrToObjRef(const char*);

    _objref_Relationship(const _objref_Relationship&);
    _objref_Relationship& operator = (const _objref_Relationship&);
    // not implemented

    friend class Relationship;
  };

  class _pof_Relationship : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_Relationship() : _OMNI_NS(proxyObjectFactory)(Relationship::_PD_repoId) {}
    virtual ~_pof_Relationship();

    virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
    virtual _CORBA_Boolean is_a(const char*) const;
  };

  class _impl_Relationship :
    public virtual CosObjectIdentity::_impl_IdentifiableObject
  {
  public:
    virtual ~_impl_Relationship();

    virtual void destroy() = 0;
    virtual NamedRoles* named_roles() = 0;
    
  public:  // Really protected, workaround for xlC
    virtual _CORBA_Boolean _dispatch(omniCallHandle&);

  private:
    virtual void* _ptrToInterface(const char*);
    virtual const char* _mostDerivedRepoId();
    
  };


  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_Relationship;

#ifndef __CosRelationships_mRole__
#define __CosRelationships_mRole__

  class Role;
  class _objref_Role;
  class _impl_Role;
  
  typedef _objref_Role* Role_ptr;
  typedef Role_ptr RoleRef;

  class Role_Helper {
  public:
    typedef Role_ptr _ptr_type;

    static _ptr_type _nil();
    static _CORBA_Boolean is_nil(_ptr_type);
    static void release(_ptr_type);
    static void duplicate(_ptr_type);
    static void marshalObjRef(_ptr_type, cdrStream&);
    static _ptr_type unmarshalObjRef(cdrStream&);
  };

  typedef _CORBA_ObjRef_Var<_objref_Role, Role_Helper> Role_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_Role,Role_Helper > Role_out;

#endif

  // interface Role
  class Role {
  public:
    // Declarations for this interface type.
    typedef Role_ptr _ptr_type;
    typedef Role_var _var_type;

    static _ptr_type _duplicate(_ptr_type);
    static _ptr_type _narrow(::CORBA::Object_ptr);
    static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
    
    static _ptr_type _nil();

    static inline void _marshalObjRef(_ptr_type, cdrStream&);

    static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
      omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
      if (o)
        return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
      else
        return _nil();
    }

    static _core_attr const char* _PD_repoId;

    // Other IDL defined within this scope.
    class UnknownRoleName : public ::CORBA::UserException {
    public:
      
      

      inline UnknownRoleName() {
        pd_insertToAnyFn    = insertToAnyFn;
        pd_insertToAnyFnNCP = insertToAnyFnNCP;
      }
      UnknownRoleName(const UnknownRoleName&);
      
      UnknownRoleName& operator=(const UnknownRoleName&);
      virtual ~UnknownRoleName();
      virtual void _raise() const;
      static UnknownRoleName* _downcast(::CORBA::Exception*);
      static const UnknownRoleName* _downcast(const ::CORBA::Exception*);
      static inline UnknownRoleName* _narrow(::CORBA::Exception* _e) {
        return _downcast(_e);
      }
      
      inline void operator>>=(cdrStream&) const { }
      inline void operator<<=(cdrStream&) { }

      static _core_attr insertExceptionToAny    insertToAnyFn;
      static _core_attr insertExceptionToAnyNCP insertToAnyFnNCP;

      virtual ::CORBA::Exception* _NP_duplicate() const;

      static _core_attr const char* _PD_repoId;
      static _core_attr const char* _PD_typeId;

    private:
      virtual const char* _NP_typeId() const;
      virtual const char* _NP_repoId(int*) const;
      virtual void _NP_marshal(cdrStream&) const;
    };

    static _dyn_attr const ::CORBA::TypeCode_ptr _tc_UnknownRoleName;

    class UnknownRelationship : public ::CORBA::UserException {
    public:
      
      

      inline UnknownRelationship() {
        pd_insertToAnyFn    = insertToAnyFn;
        pd_insertToAnyFnNCP = insertToAnyFnNCP;
      }
      UnknownRelationship(const UnknownRelationship&);
      
      UnknownRelationship& operator=(const UnknownRelationship&);
      virtual ~UnknownRelationship();
      virtual void _raise() const;
      static UnknownRelationship* _downcast(::CORBA::Exception*);
      static const UnknownRelationship* _downcast(const ::CORBA::Exception*);
      static inline UnknownRelationship* _narrow(::CORBA::Exception* _e) {
        return _downcast(_e);
      }
      
      inline void operator>>=(cdrStream&) const { }
      inline void operator<<=(cdrStream&) { }

      static _core_attr insertExceptionToAny    insertToAnyFn;
      static _core_attr insertExceptionToAnyNCP insertToAnyFnNCP;

      virtual ::CORBA::Exception* _NP_duplicate() const;

      static _core_attr const char* _PD_repoId;
      static _core_attr const char* _PD_typeId;

    private:
      virtual const char* _NP_typeId() const;
      virtual const char* _NP_repoId(int*) const;
      virtual void _NP_marshal(cdrStream&) const;
    };

    static _dyn_attr const ::CORBA::TypeCode_ptr _tc_UnknownRelationship;

    class RelationshipTypeError : public ::CORBA::UserException {
    public:
      
      

      inline RelationshipTypeError() {
        pd_insertToAnyFn    = insertToAnyFn;
        pd_insertToAnyFnNCP = insertToAnyFnNCP;
      }
      RelationshipTypeError(const RelationshipTypeError&);
      
      RelationshipTypeError& operator=(const RelationshipTypeError&);
      virtual ~RelationshipTypeError();
      virtual void _raise() const;
      static RelationshipTypeError* _downcast(::CORBA::Exception*);
      static const RelationshipTypeError* _downcast(const ::CORBA::Exception*);
      static inline RelationshipTypeError* _narrow(::CORBA::Exception* _e) {
        return _downcast(_e);
      }
      
      inline void operator>>=(cdrStream&) const { }
      inline void operator<<=(cdrStream&) { }

      static _core_attr insertExceptionToAny    insertToAnyFn;
      static _core_attr insertExceptionToAnyNCP insertToAnyFnNCP;

      virtual ::CORBA::Exception* _NP_duplicate() const;

      static _core_attr const char* _PD_repoId;
      static _core_attr const char* _PD_typeId;

    private:
      virtual const char* _NP_typeId() const;
      virtual const char* _NP_repoId(int*) const;
      virtual void _NP_marshal(cdrStream&) const;
    };

    static _dyn_attr const ::CORBA::TypeCode_ptr _tc_RelationshipTypeError;

    class CannotDestroyRelationship : public ::CORBA::UserException {
    public:
      
      RelationshipHandles offenders;

    

      inline CannotDestroyRelationship() {
        pd_insertToAnyFn    = insertToAnyFn;
        pd_insertToAnyFnNCP = insertToAnyFnNCP;
      }
      CannotDestroyRelationship(const CannotDestroyRelationship&);
      CannotDestroyRelationship(const RelationshipHandles i_offenders);
      CannotDestroyRelationship& operator=(const CannotDestroyRelationship&);
      virtual ~CannotDestroyRelationship();
      virtual void _raise() const;
      static CannotDestroyRelationship* _downcast(::CORBA::Exception*);
      static const CannotDestroyRelationship* _downcast(const ::CORBA::Exception*);
      static inline CannotDestroyRelationship* _narrow(::CORBA::Exception* _e) {
        return _downcast(_e);
      }
      
      void operator>>=(cdrStream&) const ;
      void operator<<=(cdrStream&) ;

      static _core_attr insertExceptionToAny    insertToAnyFn;
      static _core_attr insertExceptionToAnyNCP insertToAnyFnNCP;

      virtual ::CORBA::Exception* _NP_duplicate() const;

      static _core_attr const char* _PD_repoId;
      static _core_attr const char* _PD_typeId;

    private:
      virtual const char* _NP_typeId() const;
      virtual const char* _NP_repoId(int*) const;
      virtual void _NP_marshal(cdrStream&) const;
    };

    static _dyn_attr const ::CORBA::TypeCode_ptr _tc_CannotDestroyRelationship;

    class ParticipatingInRelationship : public ::CORBA::UserException {
    public:
      
      RelationshipHandles the_relationships;

    

      inline ParticipatingInRelationship() {
        pd_insertToAnyFn    = insertToAnyFn;
        pd_insertToAnyFnNCP = insertToAnyFnNCP;
      }
      ParticipatingInRelationship(const ParticipatingInRelationship&);
      ParticipatingInRelationship(const RelationshipHandles i_the_relationships);
      ParticipatingInRelationship& operator=(const ParticipatingInRelationship&);
      virtual ~ParticipatingInRelationship();
      virtual void _raise() const;
      static ParticipatingInRelationship* _downcast(::CORBA::Exception*);
      static const ParticipatingInRelationship* _downcast(const ::CORBA::Exception*);
      static inline ParticipatingInRelationship* _narrow(::CORBA::Exception* _e) {
        return _downcast(_e);
      }
      
      void operator>>=(cdrStream&) const ;
      void operator<<=(cdrStream&) ;

      static _core_attr insertExceptionToAny    insertToAnyFn;
      static _core_attr insertExceptionToAnyNCP insertToAnyFnNCP;

      virtual ::CORBA::Exception* _NP_duplicate() const;

      static _core_attr const char* _PD_repoId;
      static _core_attr const char* _PD_typeId;

    private:
      virtual const char* _NP_typeId() const;
      virtual const char* _NP_repoId(int*) const;
      virtual void _NP_marshal(cdrStream&) const;
    };

    static _dyn_attr const ::CORBA::TypeCode_ptr _tc_ParticipatingInRelationship;

  
  };

  class _objref_Role :
    public virtual ::CORBA::Object,
    public virtual omniObjRef
  {
  public:
    ::CORBA::Object_ptr get_other_related_object(const ::CosRelationships::RelationshipHandle& rel, const char* target_name);
    Role_ptr get_other_role(const ::CosRelationships::RelationshipHandle& rel, const char* target_name);
    void get_relationships(::CORBA::ULong how_many, ::CosRelationships::RelationshipHandles_out rels, ::CosRelationships::RelationshipIterator_out iterator);
    void destroy_relationships();
    void destroy();
    ::CORBA::Boolean check_minimum_cardinality();
    void link(const ::CosRelationships::RelationshipHandle& rel, const ::CosRelationships::NamedRoles& named_roles);
    void unlink(const ::CosRelationships::RelationshipHandle& rel);
    ::CORBA::Object_ptr related_object();

    inline _objref_Role()  { _PR_setobj(0); }  // nil
    _objref_Role(omniIOR*, omniIdentity*);

  protected:
    virtual ~_objref_Role();

    
  private:
    virtual void* _ptrToObjRef(const char*);

    _objref_Role(const _objref_Role&);
    _objref_Role& operator = (const _objref_Role&);
    // not implemented

    friend class Role;
  };

  class _pof_Role : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_Role() : _OMNI_NS(proxyObjectFactory)(Role::_PD_repoId) {}
    virtual ~_pof_Role();

    virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
    virtual _CORBA_Boolean is_a(const char*) const;
  };

  class _impl_Role :
    public virtual omniServant
  {
  public:
    virtual ~_impl_Role();

    virtual ::CORBA::Object_ptr get_other_related_object(const ::CosRelationships::RelationshipHandle& rel, const char* target_name) = 0;
    virtual Role_ptr get_other_role(const ::CosRelationships::RelationshipHandle& rel, const char* target_name) = 0;
    virtual void get_relationships(::CORBA::ULong how_many, ::CosRelationships::RelationshipHandles_out rels, ::CosRelationships::RelationshipIterator_out iterator) = 0;
    virtual void destroy_relationships() = 0;
    virtual void destroy() = 0;
    virtual ::CORBA::Boolean check_minimum_cardinality() = 0;
    virtual void link(const ::CosRelationships::RelationshipHandle& rel, const ::CosRelationships::NamedRoles& named_roles) = 0;
    virtual void unlink(const ::CosRelationships::RelationshipHandle& rel) = 0;
    virtual ::CORBA::Object_ptr related_object() = 0;
    
  public:  // Really protected, workaround for xlC
    virtual _CORBA_Boolean _dispatch(omniCallHandle&);

  private:
    virtual void* _ptrToInterface(const char*);
    virtual const char* _mostDerivedRepoId();
    
  };


  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_Role;

#ifndef __CosRelationships_mRoleFactory__
#define __CosRelationships_mRoleFactory__

  class RoleFactory;
  class _objref_RoleFactory;
  class _impl_RoleFactory;
  
  typedef _objref_RoleFactory* RoleFactory_ptr;
  typedef RoleFactory_ptr RoleFactoryRef;

  class RoleFactory_Helper {
  public:
    typedef RoleFactory_ptr _ptr_type;

    static _ptr_type _nil();
    static _CORBA_Boolean is_nil(_ptr_type);
    static void release(_ptr_type);
    static void duplicate(_ptr_type);
    static void marshalObjRef(_ptr_type, cdrStream&);
    static _ptr_type unmarshalObjRef(cdrStream&);
  };

  typedef _CORBA_ObjRef_Var<_objref_RoleFactory, RoleFactory_Helper> RoleFactory_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_RoleFactory,RoleFactory_Helper > RoleFactory_out;

#endif

  // interface RoleFactory
  class RoleFactory {
  public:
    // Declarations for this interface type.
    typedef RoleFactory_ptr _ptr_type;
    typedef RoleFactory_var _var_type;

    static _ptr_type _duplicate(_ptr_type);
    static _ptr_type _narrow(::CORBA::Object_ptr);
    static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
    
    static _ptr_type _nil();

    static inline void _marshalObjRef(_ptr_type, cdrStream&);

    static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
      omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
      if (o)
        return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
      else
        return _nil();
    }

    static _core_attr const char* _PD_repoId;

    // Other IDL defined within this scope.
    class NilRelatedObject : public ::CORBA::UserException {
    public:
      
      

      inline NilRelatedObject() {
        pd_insertToAnyFn    = insertToAnyFn;
        pd_insertToAnyFnNCP = insertToAnyFnNCP;
      }
      NilRelatedObject(const NilRelatedObject&);
      
      NilRelatedObject& operator=(const NilRelatedObject&);
      virtual ~NilRelatedObject();
      virtual void _raise() const;
      static NilRelatedObject* _downcast(::CORBA::Exception*);
      static const NilRelatedObject* _downcast(const ::CORBA::Exception*);
      static inline NilRelatedObject* _narrow(::CORBA::Exception* _e) {
        return _downcast(_e);
      }
      
      inline void operator>>=(cdrStream&) const { }
      inline void operator<<=(cdrStream&) { }

      static _core_attr insertExceptionToAny    insertToAnyFn;
      static _core_attr insertExceptionToAnyNCP insertToAnyFnNCP;

      virtual ::CORBA::Exception* _NP_duplicate() const;

      static _core_attr const char* _PD_repoId;
      static _core_attr const char* _PD_typeId;

    private:
      virtual const char* _NP_typeId() const;
      virtual const char* _NP_repoId(int*) const;
      virtual void _NP_marshal(cdrStream&) const;
    };

    static _dyn_attr const ::CORBA::TypeCode_ptr _tc_NilRelatedObject;

    class RelatedObjectTypeError : public ::CORBA::UserException {
    public:
      
      

      inline RelatedObjectTypeError() {
        pd_insertToAnyFn    = insertToAnyFn;
        pd_insertToAnyFnNCP = insertToAnyFnNCP;
      }
      RelatedObjectTypeError(const RelatedObjectTypeError&);
      
      RelatedObjectTypeError& operator=(const RelatedObjectTypeError&);
      virtual ~RelatedObjectTypeError();
      virtual void _raise() const;
      static RelatedObjectTypeError* _downcast(::CORBA::Exception*);
      static const RelatedObjectTypeError* _downcast(const ::CORBA::Exception*);
      static inline RelatedObjectTypeError* _narrow(::CORBA::Exception* _e) {
        return _downcast(_e);
      }
      
      inline void operator>>=(cdrStream&) const { }
      inline void operator<<=(cdrStream&) { }

      static _core_attr insertExceptionToAny    insertToAnyFn;
      static _core_attr insertExceptionToAnyNCP insertToAnyFnNCP;

      virtual ::CORBA::Exception* _NP_duplicate() const;

      static _core_attr const char* _PD_repoId;
      static _core_attr const char* _PD_typeId;

    private:
      virtual const char* _NP_typeId() const;
      virtual const char* _NP_repoId(int*) const;
      virtual void _NP_marshal(cdrStream&) const;
    };

    static _dyn_attr const ::CORBA::TypeCode_ptr _tc_RelatedObjectTypeError;

    static _dyn_attr const ::CORBA::TypeCode_ptr _tc_InterfaceDefs;

    class InterfaceDefs_var;

    class InterfaceDefs : public _CORBA_Unbounded_Sequence_ObjRef< CORBA::_objref_InterfaceDef, _CORBA_ObjRef_Element< CORBA::_objref_InterfaceDef, CORBA::InterfaceDef_Helper> , CORBA::InterfaceDef_Helper >  {
    public:
      typedef InterfaceDefs_var _var_type;
      inline InterfaceDefs() {}
      inline InterfaceDefs(const InterfaceDefs& _s)
        : _CORBA_Unbounded_Sequence_ObjRef< CORBA::_objref_InterfaceDef, _CORBA_ObjRef_Element< CORBA::_objref_InterfaceDef, CORBA::InterfaceDef_Helper> , CORBA::InterfaceDef_Helper > (_s) {}

      inline InterfaceDefs(_CORBA_ULong _max)
        : _CORBA_Unbounded_Sequence_ObjRef< CORBA::_objref_InterfaceDef, _CORBA_ObjRef_Element< CORBA::_objref_InterfaceDef, CORBA::InterfaceDef_Helper> , CORBA::InterfaceDef_Helper > (_max) {}
      inline InterfaceDefs(_CORBA_ULong _max, _CORBA_ULong _len, CORBA::InterfaceDef_ptr* _val, _CORBA_Boolean _rel=0)
        : _CORBA_Unbounded_Sequence_ObjRef< CORBA::_objref_InterfaceDef, _CORBA_ObjRef_Element< CORBA::_objref_InterfaceDef, CORBA::InterfaceDef_Helper> , CORBA::InterfaceDef_Helper > (_max, _len, _val, _rel) {}

    

      inline InterfaceDefs& operator = (const InterfaceDefs& _s) {
        _CORBA_Unbounded_Sequence_ObjRef< CORBA::_objref_InterfaceDef, _CORBA_ObjRef_Element< CORBA::_objref_InterfaceDef, CORBA::InterfaceDef_Helper> , CORBA::InterfaceDef_Helper > ::operator=(_s);
        return *this;
      }
    };

    class InterfaceDefs_out;

    class InterfaceDefs_var {
    public:
      inline InterfaceDefs_var() : _pd_seq(0) {}
      inline InterfaceDefs_var(InterfaceDefs* _s) : _pd_seq(_s) {}
      inline InterfaceDefs_var(const InterfaceDefs_var& _s) {
        if( _s._pd_seq )  _pd_seq = new InterfaceDefs(*_s._pd_seq);
        else              _pd_seq = 0;
      }
      inline ~InterfaceDefs_var() { if( _pd_seq )  delete _pd_seq; }
        
      inline InterfaceDefs_var& operator = (InterfaceDefs* _s) {
        if( _pd_seq )  delete _pd_seq;
        _pd_seq = _s;
        return *this;
      }
      inline InterfaceDefs_var& operator = (const InterfaceDefs_var& _s) {
        if( _s._pd_seq ) {
          if( !_pd_seq )  _pd_seq = new InterfaceDefs;
          *_pd_seq = *_s._pd_seq;
        } else if( _pd_seq ) {
          delete _pd_seq;
          _pd_seq = 0;
        }
        return *this;
      }
      inline _CORBA_ObjRef_Element< CORBA::_objref_InterfaceDef, CORBA::InterfaceDef_Helper>  operator [] (_CORBA_ULong _s) {
        return (*_pd_seq)[_s];
      }

    

      inline InterfaceDefs* operator -> () { return _pd_seq; }
      inline const InterfaceDefs* operator -> () const { return _pd_seq; }
#if defined(__GNUG__)
      inline operator InterfaceDefs& () const { return *_pd_seq; }
#else
      inline operator const InterfaceDefs& () const { return *_pd_seq; }
      inline operator InterfaceDefs& () { return *_pd_seq; }
#endif
        
      inline const InterfaceDefs& in() const { return *_pd_seq; }
      inline InterfaceDefs&       inout()    { return *_pd_seq; }
      inline InterfaceDefs*&      out() {
        if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
        return _pd_seq;
      }
      inline InterfaceDefs* _retn() { InterfaceDefs* tmp = _pd_seq; _pd_seq = 0; return tmp; }
        
      friend class InterfaceDefs_out;
      
    private:
      InterfaceDefs* _pd_seq;
    };

    class InterfaceDefs_out {
    public:
      inline InterfaceDefs_out(InterfaceDefs*& _s) : _data(_s) { _data = 0; }
      inline InterfaceDefs_out(InterfaceDefs_var& _s)
        : _data(_s._pd_seq) { _s = (InterfaceDefs*) 0; }
      inline InterfaceDefs_out(const InterfaceDefs_out& _s) : _data(_s._data) {}
      inline InterfaceDefs_out& operator = (const InterfaceDefs_out& _s) {
        _data = _s._data;
        return *this;
      }
      inline InterfaceDefs_out& operator = (InterfaceDefs* _s) {
        _data = _s;
        return *this;
      }
      inline operator InterfaceDefs*&()  { return _data; }
      inline InterfaceDefs*& ptr()       { return _data; }
      inline InterfaceDefs* operator->() { return _data; }

      inline _CORBA_ObjRef_Element< CORBA::_objref_InterfaceDef, CORBA::InterfaceDef_Helper>  operator [] (_CORBA_ULong _i) {
        return (*_data)[_i];
      }

    

      InterfaceDefs*& _data;

    private:
      InterfaceDefs_out();
      InterfaceDefs_out& operator=(const InterfaceDefs_var&);
    };

  
  };

  class _objref_RoleFactory :
    public virtual ::CORBA::Object,
    public virtual omniObjRef
  {
  public:
    Role_ptr create_role(::CORBA::Object_ptr related_object);
    CORBA::InterfaceDef_ptr role_type();
    ::CORBA::ULong max_cardinality();
    ::CORBA::ULong min_cardinality();
    RoleFactory::InterfaceDefs* related_object_types();

    inline _objref_RoleFactory()  { _PR_setobj(0); }  // nil
    _objref_RoleFactory(omniIOR*, omniIdentity*);

  protected:
    virtual ~_objref_RoleFactory();

    
  private:
    virtual void* _ptrToObjRef(const char*);

    _objref_RoleFactory(const _objref_RoleFactory&);
    _objref_RoleFactory& operator = (const _objref_RoleFactory&);
    // not implemented

    friend class RoleFactory;
  };

  class _pof_RoleFactory : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_RoleFactory() : _OMNI_NS(proxyObjectFactory)(RoleFactory::_PD_repoId) {}
    virtual ~_pof_RoleFactory();

    virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
    virtual _CORBA_Boolean is_a(const char*) const;
  };

  class _impl_RoleFactory :
    public virtual omniServant
  {
  public:
    virtual ~_impl_RoleFactory();

    virtual Role_ptr create_role(::CORBA::Object_ptr related_object) = 0;
    virtual CORBA::InterfaceDef_ptr role_type() = 0;
    virtual ::CORBA::ULong max_cardinality() = 0;
    virtual ::CORBA::ULong min_cardinality() = 0;
    virtual RoleFactory::InterfaceDefs* related_object_types() = 0;
    
  public:  // Really protected, workaround for xlC
    virtual _CORBA_Boolean _dispatch(omniCallHandle&);

  private:
    virtual void* _ptrToInterface(const char*);
    virtual const char* _mostDerivedRepoId();
    
  };


  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_RoleFactory;

#ifndef __CosRelationships_mRelationshipIterator__
#define __CosRelationships_mRelationshipIterator__

  class RelationshipIterator;
  class _objref_RelationshipIterator;
  class _impl_RelationshipIterator;
  
  typedef _objref_RelationshipIterator* RelationshipIterator_ptr;
  typedef RelationshipIterator_ptr RelationshipIteratorRef;

  class RelationshipIterator_Helper {
  public:
    typedef RelationshipIterator_ptr _ptr_type;

    static _ptr_type _nil();
    static _CORBA_Boolean is_nil(_ptr_type);
    static void release(_ptr_type);
    static void duplicate(_ptr_type);
    static void marshalObjRef(_ptr_type, cdrStream&);
    static _ptr_type unmarshalObjRef(cdrStream&);
  };

  typedef _CORBA_ObjRef_Var<_objref_RelationshipIterator, RelationshipIterator_Helper> RelationshipIterator_var;
  typedef _CORBA_ObjRef_OUT_arg<_objref_RelationshipIterator,RelationshipIterator_Helper > RelationshipIterator_out;

#endif

  // interface RelationshipIterator
  class RelationshipIterator {
  public:
    // Declarations for this interface type.
    typedef RelationshipIterator_ptr _ptr_type;
    typedef RelationshipIterator_var _var_type;

    static _ptr_type _duplicate(_ptr_type);
    static _ptr_type _narrow(::CORBA::Object_ptr);
    static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
    
    static _ptr_type _nil();

    static inline void _marshalObjRef(_ptr_type, cdrStream&);

    static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
      omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
      if (o)
        return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
      else
        return _nil();
    }

    static _core_attr const char* _PD_repoId;

    // Other IDL defined within this scope.
    
  };

  class _objref_RelationshipIterator :
    public virtual ::CORBA::Object,
    public virtual omniObjRef
  {
  public:
    ::CORBA::Boolean next_one(::CosRelationships::RelationshipHandle_out rel);
    ::CORBA::Boolean next_n(::CORBA::ULong how_many, ::CosRelationships::RelationshipHandles_out rels);
    void destroy();

    inline _objref_RelationshipIterator()  { _PR_setobj(0); }  // nil
    _objref_RelationshipIterator(omniIOR*, omniIdentity*);

  protected:
    virtual ~_objref_RelationshipIterator();

    
  private:
    virtual void* _ptrToObjRef(const char*);

    _objref_RelationshipIterator(const _objref_RelationshipIterator&);
    _objref_RelationshipIterator& operator = (const _objref_RelationshipIterator&);
    // not implemented

    friend class RelationshipIterator;
  };

  class _pof_RelationshipIterator : public _OMNI_NS(proxyObjectFactory) {
  public:
    inline _pof_RelationshipIterator() : _OMNI_NS(proxyObjectFactory)(RelationshipIterator::_PD_repoId) {}
    virtual ~_pof_RelationshipIterator();

    virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
    virtual _CORBA_Boolean is_a(const char*) const;
  };

  class _impl_RelationshipIterator :
    public virtual omniServant
  {
  public:
    virtual ~_impl_RelationshipIterator();

    virtual ::CORBA::Boolean next_one(::CosRelationships::RelationshipHandle_out rel) = 0;
    virtual ::CORBA::Boolean next_n(::CORBA::ULong how_many, ::CosRelationships::RelationshipHandles_out rels) = 0;
    virtual void destroy() = 0;
    
  public:  // Really protected, workaround for xlC
    virtual _CORBA_Boolean _dispatch(omniCallHandle&);

  private:
    virtual void* _ptrToInterface(const char*);
    virtual const char* _mostDerivedRepoId();
    
  };


  _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_RelationshipIterator;

_CORBA_MODULE_END



_CORBA_MODULE POA_CosRelationships
_CORBA_MODULE_BEG

  class RelationshipFactory :
    public virtual CosRelationships::_impl_RelationshipFactory,
    public virtual ::PortableServer::ServantBase
  {
  public:
    virtual ~RelationshipFactory();

    inline ::CosRelationships::RelationshipFactory_ptr _this() {
      return (::CosRelationships::RelationshipFactory_ptr) _do_this(::CosRelationships::RelationshipFactory::_PD_repoId);
    }
  };

  class Relationship :
    public virtual CosRelationships::_impl_Relationship,
    public virtual POA_CosObjectIdentity::IdentifiableObject
  {
  public:
    virtual ~Relationship();

    inline ::CosRelationships::Relationship_ptr _this() {
      return (::CosRelationships::Relationship_ptr) _do_this(::CosRelationships::Relationship::_PD_repoId);
    }
  };

  class Role :
    public virtual CosRelationships::_impl_Role,
    public virtual ::PortableServer::ServantBase
  {
  public:
    virtual ~Role();

    inline ::CosRelationships::Role_ptr _this() {
      return (::CosRelationships::Role_ptr) _do_this(::CosRelationships::Role::_PD_repoId);
    }
  };

  class RoleFactory :
    public virtual CosRelationships::_impl_RoleFactory,
    public virtual ::PortableServer::ServantBase
  {
  public:
    virtual ~RoleFactory();

    inline ::CosRelationships::RoleFactory_ptr _this() {
      return (::CosRelationships::RoleFactory_ptr) _do_this(::CosRelationships::RoleFactory::_PD_repoId);
    }
  };

  class RelationshipIterator :
    public virtual CosRelationships::_impl_RelationshipIterator,
    public virtual ::PortableServer::ServantBase
  {
  public:
    virtual ~RelationshipIterator();

    inline ::CosRelationships::RelationshipIterator_ptr _this() {
      return (::CosRelationships::RelationshipIterator_ptr) _do_this(::CosRelationships::RelationshipIterator::_PD_repoId);
    }
  };

_CORBA_MODULE_END



_CORBA_MODULE OBV_CosRelationships
_CORBA_MODULE_BEG

_CORBA_MODULE_END





#undef _core_attr
#undef _dyn_attr

void operator<<=(::CORBA::Any& _a, const CosRelationships::Roles& _s);
void operator<<=(::CORBA::Any& _a, CosRelationships::Roles* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosRelationships::Roles*& _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::Roles*& _sp);

void operator<<=(::CORBA::Any& _a, const CosRelationships::RoleNames& _s);
void operator<<=(::CORBA::Any& _a, CosRelationships::RoleNames* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosRelationships::RoleNames*& _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::RoleNames*& _sp);

extern void operator<<=(::CORBA::Any& _a, const CosRelationships::NamedRole& _s);
extern void operator<<=(::CORBA::Any& _a, CosRelationships::NamedRole* _sp);
extern _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosRelationships::NamedRole*& _sp);
extern _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::NamedRole*& _sp);

void operator<<=(::CORBA::Any& _a, const CosRelationships::NamedRoles& _s);
void operator<<=(::CORBA::Any& _a, CosRelationships::NamedRoles* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosRelationships::NamedRoles*& _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::NamedRoles*& _sp);

extern void operator<<=(::CORBA::Any& _a, const CosRelationships::RelationshipHandle& _s);
extern void operator<<=(::CORBA::Any& _a, CosRelationships::RelationshipHandle* _sp);
extern _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosRelationships::RelationshipHandle*& _sp);
extern _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::RelationshipHandle*& _sp);

void operator<<=(::CORBA::Any& _a, const CosRelationships::RelationshipHandles& _s);
void operator<<=(::CORBA::Any& _a, CosRelationships::RelationshipHandles* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosRelationships::RelationshipHandles*& _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::RelationshipHandles*& _sp);

extern void operator<<=(::CORBA::Any& _a, const CosRelationships::RelationshipFactory::NamedRoleType& _s);
extern void operator<<=(::CORBA::Any& _a, CosRelationships::RelationshipFactory::NamedRoleType* _sp);
extern _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosRelationships::RelationshipFactory::NamedRoleType*& _sp);
extern _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::RelationshipFactory::NamedRoleType*& _sp);

void operator<<=(::CORBA::Any& _a, const CosRelationships::RelationshipFactory::NamedRoleTypes& _s);
void operator<<=(::CORBA::Any& _a, CosRelationships::RelationshipFactory::NamedRoleTypes* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosRelationships::RelationshipFactory::NamedRoleTypes*& _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::RelationshipFactory::NamedRoleTypes*& _sp);

void operator<<=(::CORBA::Any& _a, const CosRelationships::RelationshipFactory::RoleTypeError& _s);
void operator<<=(::CORBA::Any& _a, const CosRelationships::RelationshipFactory::RoleTypeError* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::RelationshipFactory::RoleTypeError*& _sp);

void operator<<=(::CORBA::Any& _a, const CosRelationships::RelationshipFactory::MaxCardinalityExceeded& _s);
void operator<<=(::CORBA::Any& _a, const CosRelationships::RelationshipFactory::MaxCardinalityExceeded* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::RelationshipFactory::MaxCardinalityExceeded*& _sp);

void operator<<=(::CORBA::Any& _a, const CosRelationships::RelationshipFactory::DegreeError& _s);
void operator<<=(::CORBA::Any& _a, const CosRelationships::RelationshipFactory::DegreeError* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::RelationshipFactory::DegreeError*& _sp);

void operator<<=(::CORBA::Any& _a, const CosRelationships::RelationshipFactory::DuplicateRoleName& _s);
void operator<<=(::CORBA::Any& _a, const CosRelationships::RelationshipFactory::DuplicateRoleName* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::RelationshipFactory::DuplicateRoleName*& _sp);

void operator<<=(::CORBA::Any& _a, const CosRelationships::RelationshipFactory::UnknownRoleName& _s);
void operator<<=(::CORBA::Any& _a, const CosRelationships::RelationshipFactory::UnknownRoleName* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::RelationshipFactory::UnknownRoleName*& _sp);

void operator<<=(::CORBA::Any& _a, CosRelationships::RelationshipFactory_ptr _s);
void operator<<=(::CORBA::Any& _a, CosRelationships::RelationshipFactory_ptr* _s);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosRelationships::RelationshipFactory_ptr& _s);

void operator<<=(::CORBA::Any& _a, const CosRelationships::Relationship::CannotUnlink& _s);
void operator<<=(::CORBA::Any& _a, const CosRelationships::Relationship::CannotUnlink* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::Relationship::CannotUnlink*& _sp);

void operator<<=(::CORBA::Any& _a, CosRelationships::Relationship_ptr _s);
void operator<<=(::CORBA::Any& _a, CosRelationships::Relationship_ptr* _s);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosRelationships::Relationship_ptr& _s);

void operator<<=(::CORBA::Any& _a, const CosRelationships::Role::UnknownRoleName& _s);
void operator<<=(::CORBA::Any& _a, const CosRelationships::Role::UnknownRoleName* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::Role::UnknownRoleName*& _sp);

void operator<<=(::CORBA::Any& _a, const CosRelationships::Role::UnknownRelationship& _s);
void operator<<=(::CORBA::Any& _a, const CosRelationships::Role::UnknownRelationship* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::Role::UnknownRelationship*& _sp);

void operator<<=(::CORBA::Any& _a, const CosRelationships::Role::RelationshipTypeError& _s);
void operator<<=(::CORBA::Any& _a, const CosRelationships::Role::RelationshipTypeError* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::Role::RelationshipTypeError*& _sp);

void operator<<=(::CORBA::Any& _a, const CosRelationships::Role::CannotDestroyRelationship& _s);
void operator<<=(::CORBA::Any& _a, const CosRelationships::Role::CannotDestroyRelationship* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::Role::CannotDestroyRelationship*& _sp);

void operator<<=(::CORBA::Any& _a, const CosRelationships::Role::ParticipatingInRelationship& _s);
void operator<<=(::CORBA::Any& _a, const CosRelationships::Role::ParticipatingInRelationship* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::Role::ParticipatingInRelationship*& _sp);

void operator<<=(::CORBA::Any& _a, CosRelationships::Role_ptr _s);
void operator<<=(::CORBA::Any& _a, CosRelationships::Role_ptr* _s);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosRelationships::Role_ptr& _s);

void operator<<=(::CORBA::Any& _a, const CosRelationships::RoleFactory::NilRelatedObject& _s);
void operator<<=(::CORBA::Any& _a, const CosRelationships::RoleFactory::NilRelatedObject* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::RoleFactory::NilRelatedObject*& _sp);

void operator<<=(::CORBA::Any& _a, const CosRelationships::RoleFactory::RelatedObjectTypeError& _s);
void operator<<=(::CORBA::Any& _a, const CosRelationships::RoleFactory::RelatedObjectTypeError* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::RoleFactory::RelatedObjectTypeError*& _sp);

void operator<<=(::CORBA::Any& _a, const CosRelationships::RoleFactory::InterfaceDefs& _s);
void operator<<=(::CORBA::Any& _a, CosRelationships::RoleFactory::InterfaceDefs* _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosRelationships::RoleFactory::InterfaceDefs*& _sp);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const CosRelationships::RoleFactory::InterfaceDefs*& _sp);

void operator<<=(::CORBA::Any& _a, CosRelationships::RoleFactory_ptr _s);
void operator<<=(::CORBA::Any& _a, CosRelationships::RoleFactory_ptr* _s);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosRelationships::RoleFactory_ptr& _s);

void operator<<=(::CORBA::Any& _a, CosRelationships::RelationshipIterator_ptr _s);
void operator<<=(::CORBA::Any& _a, CosRelationships::RelationshipIterator_ptr* _s);
_CORBA_Boolean operator>>=(const ::CORBA::Any& _a, CosRelationships::RelationshipIterator_ptr& _s);



inline void
CosRelationships::RelationshipFactory::_marshalObjRef(::CosRelationships::RelationshipFactory_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}


inline void
CosRelationships::Relationship::_marshalObjRef(::CosRelationships::Relationship_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}


inline void
CosRelationships::Role::_marshalObjRef(::CosRelationships::Role_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}


inline void
CosRelationships::RoleFactory::_marshalObjRef(::CosRelationships::RoleFactory_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}


inline void
CosRelationships::RelationshipIterator::_marshalObjRef(::CosRelationships::RelationshipIterator_ptr obj, cdrStream& s) {
  omniObjRef::_marshal(obj->_PR_getobj(),s);
}




#ifdef   USE_stub_in_nt_dll_NOT_DEFINED_CosRelationships
# undef  USE_stub_in_nt_dll
# undef  USE_stub_in_nt_dll_NOT_DEFINED_CosRelationships
#endif
#ifdef   USE_core_stub_in_nt_dll_NOT_DEFINED_CosRelationships
# undef  USE_core_stub_in_nt_dll
# undef  USE_core_stub_in_nt_dll_NOT_DEFINED_CosRelationships
#endif
#ifdef   USE_dyn_stub_in_nt_dll_NOT_DEFINED_CosRelationships
# undef  USE_dyn_stub_in_nt_dll
# undef  USE_dyn_stub_in_nt_dll_NOT_DEFINED_CosRelationships
#endif

#endif  // __CosRelationships_hh__