summaryrefslogtreecommitdiff
path: root/TAO/tao/POAC.h
blob: 0fd14aea708ebc7023f1983587c1c3f32df5d108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
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
// $Id$
//
// ============================================================================
//
// = LIBRARY
//    TAO
//
// = FILENAME
//    POAC.h
//
// = DESCRIPTION
//
//    POA stubs. This code generated by the The ACE ORB (TAO) IDL
//    Compiler and is not meant to be read.
//
// ============================================================================

#if !defined (TAO_IDL_POAC_H)
#define TAO_IDL_POAC_H

class TAO_ServantBase;
class TAO_Local_ServantBase;
class TAO_DynamicImplementation;

class TAO_Export PortableServer{
public:

  typedef TAO_ServantBase ServantBase;
  typedef ServantBase *Servant;

  typedef TAO_Local_ServantBase LocalServantBase;
  typedef TAO_DynamicImplementation DynamicImplementation;


  class POA;

#if !defined (_PORTABLESERVER_POA___PTR_CH_)
#define _PORTABLESERVER_POA___PTR_CH_

  typedef POA *POA_ptr;

#endif /* end #if !defined */


#if !defined (_PORTABLESERVER_POA___VAR_CH_)
#define _PORTABLESERVER_POA___VAR_CH_

  class TAO_Export POA_var
  {
  public:
    POA_var (void); // default constructor
    POA_var (POA_ptr);
    POA_var (const POA_var &); // copy constructor
    ~POA_var (void); // destructor

    POA_var &operator= (POA_ptr);
    POA_var &operator= (const POA_var &);
    POA_ptr operator-> (void) const;

    operator const POA_ptr &() const;
    operator POA_ptr &();
    // in, inout, out, _retn
    POA_ptr in (void) const;
    POA_ptr &inout (void);
    POA_ptr &out (void);
    POA_ptr _retn (void);
    POA_ptr ptr (void) const;

  private:
    POA_ptr ptr_;
  };


#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA___OUT_CH_)
#define _PORTABLESERVER_POA___OUT_CH_

  class TAO_Export POA_out
  {
  public:
    POA_out (POA_ptr &);
    POA_out (POA_var &);
    POA_out (POA_out &);
    POA_out &operator= (POA_out &);
    POA_out &operator= (const POA_var &);
    POA_out &operator= (POA_ptr);
    operator POA_ptr &();
    POA_ptr &ptr (void);
    POA_ptr operator-> (void);

  private:
    POA_ptr &ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER__TAO_SEQ_OCTET_CH_)
#define _PORTABLESERVER__TAO_SEQ_OCTET_CH_

  // *************************************************************
  // _tao_seq_Octet
  // *************************************************************

  typedef TAO_Unbounded_Sequence<CORBA::Octet > _tao_seq_Octet;
  typedef _tao_seq_Octet* _tao_seq_Octet_ptr;
  static CORBA::TypeCode_ptr _tc__tao_seq_Octet;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER__TAO_SEQ_OCTET___VAR_CH_)
#define _PORTABLESERVER__TAO_SEQ_OCTET___VAR_CH_

  // *************************************************************
  // class PortableServer::_tao_seq_Octet_var
  // *************************************************************

  class TAO_Export _tao_seq_Octet_var
  {
  public:
    _tao_seq_Octet_var (void); // default constructor
    _tao_seq_Octet_var (_tao_seq_Octet *);
    _tao_seq_Octet_var (const _tao_seq_Octet_var &); // copy constructor
    ~_tao_seq_Octet_var (void); // destructor

    _tao_seq_Octet_var &operator= (_tao_seq_Octet *);
    _tao_seq_Octet_var &operator= (const _tao_seq_Octet_var &);
    _tao_seq_Octet *operator-> (void);
    const _tao_seq_Octet *operator-> (void) const;

    operator const _tao_seq_Octet &() const;
    operator _tao_seq_Octet &();
    operator _tao_seq_Octet &() const;
    CORBA::Octet &operator[] (CORBA::ULong index);
    // in, inout, out, _retn
    const _tao_seq_Octet &in (void) const;
    _tao_seq_Octet &inout (void);
    _tao_seq_Octet *&out (void);
    _tao_seq_Octet *_retn (void);
    _tao_seq_Octet *ptr (void) const;

  private:
    _tao_seq_Octet *ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER__TAO_SEQ_OCTET___OUT_CH_)
#define _PORTABLESERVER__TAO_SEQ_OCTET___OUT_CH_

  class TAO_Export _tao_seq_Octet_out
  {
  public:
    _tao_seq_Octet_out (_tao_seq_Octet *&);
    _tao_seq_Octet_out (_tao_seq_Octet_var &);
    _tao_seq_Octet_out (_tao_seq_Octet_out &);
    _tao_seq_Octet_out &operator= (_tao_seq_Octet_out &);
    _tao_seq_Octet_out &operator= (_tao_seq_Octet *);
    operator _tao_seq_Octet *&();
    _tao_seq_Octet *&ptr (void);
    _tao_seq_Octet *operator-> (void);
    CORBA::Octet &operator[] (CORBA::ULong index);

  private:
    _tao_seq_Octet *&ptr_;
    // assignment from T_var not allowed
    void operator= (const _tao_seq_Octet_var &);
  };

#endif /* end #if !defined */

  typedef _tao_seq_Octet ObjectId;
  typedef _tao_seq_Octet_var ObjectId_var;
  typedef _tao_seq_Octet_out ObjectId_out;

  static CORBA::TypeCode_ptr _tc_ObjectId;


#if !defined (_PORTABLESERVER_FORWARDREQUEST___PTR_CH_)
#define _PORTABLESERVER_FORWARDREQUEST___PTR_CH_

  class ForwardRequest;
  typedef ForwardRequest *ForwardRequest_ptr;

#endif /* end #if !defined */


#if !defined (_PORTABLESERVER_FORWARDREQUEST_CH_)
#define _PORTABLESERVER_FORWARDREQUEST_CH_

  class TAO_Export ForwardRequest : public CORBA_SystemException
  {
  public:
    ForwardRequest (void); // default ctor
    ForwardRequest (const ForwardRequest &); // copy ctor
    ~ForwardRequest (void); // dtor
    ForwardRequest &operator= (const ForwardRequest &);
    virtual void _raise (void);

    static ForwardRequest *_narrow (CORBA::Exception *);

    ForwardRequest(
        const CORBA::Object_ptr  _tao_forward_reference
      );

    CORBA::Object_var forward_reference;

    // = TAO extension
    static CORBA::Exception *_alloc (void);
  }; // exception PortableServer::ForwardRequest

  friend void operator<<= (CORBA::Any &, const ForwardRequest &); // copying version
  friend void operator<<= (CORBA::Any &, ForwardRequest*); // noncopying version
  friend CORBA::Boolean operator>>= (const CORBA::Any &, ForwardRequest *&);
  static CORBA::TypeCode_ptr _tc_ForwardRequest;


#endif /* end #if !defined */

  enum ThreadPolicyValue
  {
    ORB_CTRL_MODEL,
    SINGLE_THREAD_MODEL
  };
  typedef ThreadPolicyValue &ThreadPolicyValue_out;
  static CORBA::TypeCode_ptr _tc_ThreadPolicyValue;


#if !defined (_PORTABLESERVER_THREADPOLICY___PTR_CH_)
#define _PORTABLESERVER_THREADPOLICY___PTR_CH_

  class ThreadPolicy;
  typedef ThreadPolicy *ThreadPolicy_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_THREADPOLICY___VAR_CH_)
#define _PORTABLESERVER_THREADPOLICY___VAR_CH_

  class TAO_Export ThreadPolicy_var
  {
  public:
    ThreadPolicy_var (void); // default constructor
    ThreadPolicy_var (ThreadPolicy_ptr);
    ThreadPolicy_var (const ThreadPolicy_var &); // copy constructor
    ~ThreadPolicy_var (void); // destructor

    ThreadPolicy_var &operator= (ThreadPolicy_ptr);
    ThreadPolicy_var &operator= (const ThreadPolicy_var &);
    ThreadPolicy_ptr operator-> (void) const;

    operator const ThreadPolicy_ptr &() const;
    operator ThreadPolicy_ptr &();
    // in, inout, out, _retn
    ThreadPolicy_ptr in (void) const;
    ThreadPolicy_ptr &inout (void);
    ThreadPolicy_ptr &out (void);
    ThreadPolicy_ptr _retn (void);
    ThreadPolicy_ptr ptr (void) const;

  private:
    ThreadPolicy_ptr ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_THREADPOLICY___OUT_CH_)
#define _PORTABLESERVER_THREADPOLICY___OUT_CH_

  class TAO_Export ThreadPolicy_out
  {
  public:
    ThreadPolicy_out (ThreadPolicy_ptr &);
    ThreadPolicy_out (ThreadPolicy_var &);
    ThreadPolicy_out (ThreadPolicy_out &);
    ThreadPolicy_out &operator= (ThreadPolicy_out &);
    ThreadPolicy_out &operator= (const ThreadPolicy_var &);
    ThreadPolicy_out &operator= (ThreadPolicy_ptr);
    operator ThreadPolicy_ptr &();
    ThreadPolicy_ptr &ptr (void);
    ThreadPolicy_ptr operator-> (void);

  private:
    ThreadPolicy_ptr &ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_THREADPOLICY_CH_)
#define _PORTABLESERVER_THREADPOLICY_CH_

  class TAO_Export ThreadPolicy: public virtual ACE_CORBA_1(Policy)
  {
  public:
    // the static operations
    static ThreadPolicy_ptr _duplicate (ThreadPolicy_ptr obj);
    static ThreadPolicy_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &_env = CORBA_Environment::default_environment ());
    static ThreadPolicy_ptr _nil (void);

    virtual ThreadPolicyValue value (CORBA_Environment &_env = CORBA_Environment::default_environment ());
    virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &_env = CORBA_Environment::default_environment ());
  protected:
    ThreadPolicy (STUB_Object *objref = 0,
                  TAO_ServantBase *servant = 0,
                  CORBA::Boolean collocated = CORBA::B_FALSE);
  public:
    virtual ~ThreadPolicy (void);
  private:
    ThreadPolicy (const ThreadPolicy&);
    void operator= (const ThreadPolicy&);
  };

#endif /* end #if !defined */

  static CORBA::TypeCode_ptr _tc_ThreadPolicy;

  enum LifespanPolicyValue
  {
    TRANSIENT,
    PERSISTENT
  };
  typedef LifespanPolicyValue &LifespanPolicyValue_out;
  static CORBA::TypeCode_ptr _tc_LifespanPolicyValue;


#if !defined (_PORTABLESERVER_LIFESPANPOLICY___PTR_CH_)
#define _PORTABLESERVER_LIFESPANPOLICY___PTR_CH_

  class LifespanPolicy;
  typedef LifespanPolicy *LifespanPolicy_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_LIFESPANPOLICY___VAR_CH_)
#define _PORTABLESERVER_LIFESPANPOLICY___VAR_CH_

  class TAO_Export LifespanPolicy_var
  {
  public:
    LifespanPolicy_var (void); // default constructor
    LifespanPolicy_var (LifespanPolicy_ptr);
    LifespanPolicy_var (const LifespanPolicy_var &); // copy constructor
    ~LifespanPolicy_var (void); // destructor

    LifespanPolicy_var &operator= (LifespanPolicy_ptr);
    LifespanPolicy_var &operator= (const LifespanPolicy_var &);
    LifespanPolicy_ptr operator-> (void) const;

    operator const LifespanPolicy_ptr &() const;
    operator LifespanPolicy_ptr &();
    // in, inout, out, _retn
    LifespanPolicy_ptr in (void) const;
    LifespanPolicy_ptr &inout (void);
    LifespanPolicy_ptr &out (void);
    LifespanPolicy_ptr _retn (void);
    LifespanPolicy_ptr ptr (void) const;

  private:
    LifespanPolicy_ptr ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_LIFESPANPOLICY___OUT_CH_)
#define _PORTABLESERVER_LIFESPANPOLICY___OUT_CH_

  class TAO_Export LifespanPolicy_out
  {
  public:
    LifespanPolicy_out (LifespanPolicy_ptr &);
    LifespanPolicy_out (LifespanPolicy_var &);
    LifespanPolicy_out (LifespanPolicy_out &);
    LifespanPolicy_out &operator= (LifespanPolicy_out &);
    LifespanPolicy_out &operator= (const LifespanPolicy_var &);
    LifespanPolicy_out &operator= (LifespanPolicy_ptr);
    operator LifespanPolicy_ptr &();
    LifespanPolicy_ptr &ptr (void);
    LifespanPolicy_ptr operator-> (void);

  private:
    LifespanPolicy_ptr &ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_LIFESPANPOLICY_CH_)
#define _PORTABLESERVER_LIFESPANPOLICY_CH_

  class TAO_Export LifespanPolicy: public virtual ACE_CORBA_1(Policy)
  {
  public:
    // the static operations
    static LifespanPolicy_ptr _duplicate (LifespanPolicy_ptr obj);
    static LifespanPolicy_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &_env = CORBA_Environment::default_environment ());
    static LifespanPolicy_ptr _nil (void);

    virtual LifespanPolicyValue value (CORBA_Environment &_env = CORBA_Environment::default_environment ());
    virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &_env = CORBA_Environment::default_environment ());
  protected:
    LifespanPolicy (
                    STUB_Object *objref = 0,
                    TAO_ServantBase *servant = 0,
                    CORBA::Boolean collocated = CORBA::B_FALSE
                    );
  public:
    virtual ~LifespanPolicy (void);
  private:
    LifespanPolicy (const LifespanPolicy&);
    void operator= (const LifespanPolicy&);
  };

#endif /* end #if !defined */

  static CORBA::TypeCode_ptr _tc_LifespanPolicy;

  enum IdUniquenessPolicyValue
  {
    UNIQUE_ID,
    MULTIPLE_ID
  };
  typedef IdUniquenessPolicyValue &IdUniquenessPolicyValue_out;
  static CORBA::TypeCode_ptr _tc_IdUniquenessPolicyValue;


#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY___PTR_CH_)
#define _PORTABLESERVER_IDUNIQUENESSPOLICY___PTR_CH_

  class IdUniquenessPolicy;
  typedef IdUniquenessPolicy *IdUniquenessPolicy_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY___VAR_CH_)
#define _PORTABLESERVER_IDUNIQUENESSPOLICY___VAR_CH_

  class TAO_Export IdUniquenessPolicy_var
  {
  public:
    IdUniquenessPolicy_var (void); // default constructor
    IdUniquenessPolicy_var (IdUniquenessPolicy_ptr);
    IdUniquenessPolicy_var (const IdUniquenessPolicy_var &); // copy constructor
    ~IdUniquenessPolicy_var (void); // destructor

    IdUniquenessPolicy_var &operator= (IdUniquenessPolicy_ptr);
    IdUniquenessPolicy_var &operator= (const IdUniquenessPolicy_var &);
    IdUniquenessPolicy_ptr operator-> (void) const;

    operator const IdUniquenessPolicy_ptr &() const;
    operator IdUniquenessPolicy_ptr &();
    // in, inout, out, _retn
    IdUniquenessPolicy_ptr in (void) const;
    IdUniquenessPolicy_ptr &inout (void);
    IdUniquenessPolicy_ptr &out (void);
    IdUniquenessPolicy_ptr _retn (void);
    IdUniquenessPolicy_ptr ptr (void) const;

  private:
    IdUniquenessPolicy_ptr ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY___OUT_CH_)
#define _PORTABLESERVER_IDUNIQUENESSPOLICY___OUT_CH_

  class TAO_Export IdUniquenessPolicy_out
  {
  public:
    IdUniquenessPolicy_out (IdUniquenessPolicy_ptr &);
    IdUniquenessPolicy_out (IdUniquenessPolicy_var &);
    IdUniquenessPolicy_out (IdUniquenessPolicy_out &);
    IdUniquenessPolicy_out &operator= (IdUniquenessPolicy_out &);
    IdUniquenessPolicy_out &operator= (const IdUniquenessPolicy_var &);
    IdUniquenessPolicy_out &operator= (IdUniquenessPolicy_ptr);
    operator IdUniquenessPolicy_ptr &();
    IdUniquenessPolicy_ptr &ptr (void);
    IdUniquenessPolicy_ptr operator-> (void);

  private:
    IdUniquenessPolicy_ptr &ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_IDUNIQUENESSPOLICY_CH_)
#define _PORTABLESERVER_IDUNIQUENESSPOLICY_CH_

  class TAO_Export IdUniquenessPolicy: public virtual ACE_CORBA_1(Policy)
  {
  public:
    // the static operations
    static IdUniquenessPolicy_ptr _duplicate (IdUniquenessPolicy_ptr obj);
    static IdUniquenessPolicy_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &_env = CORBA_Environment::default_environment ());
    static IdUniquenessPolicy_ptr _nil (void);

    virtual IdUniquenessPolicyValue value (CORBA_Environment &_env = CORBA_Environment::default_environment ());
    virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &_env = CORBA_Environment::default_environment ());
  protected:
    IdUniquenessPolicy (
                        STUB_Object *objref = 0,
                        TAO_ServantBase *servant = 0,
                        CORBA::Boolean collocated = CORBA::B_FALSE
                        );
  public:
    virtual ~IdUniquenessPolicy (void);
  private:
    IdUniquenessPolicy (const IdUniquenessPolicy&);
    void operator= (const IdUniquenessPolicy&);
  };

#endif /* end #if !defined */

  static CORBA::TypeCode_ptr _tc_IdUniquenessPolicy;

  enum IdAssignmentPolicyValue
  {
    USER_ID,
    SYSTEM_ID
  };
  typedef IdAssignmentPolicyValue &IdAssignmentPolicyValue_out;
  static CORBA::TypeCode_ptr _tc_IdAssignmentPolicyValue;


#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY___PTR_CH_)
#define _PORTABLESERVER_IDASSIGNMENTPOLICY___PTR_CH_

  class IdAssignmentPolicy;
  typedef IdAssignmentPolicy *IdAssignmentPolicy_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY___VAR_CH_)
#define _PORTABLESERVER_IDASSIGNMENTPOLICY___VAR_CH_

  class TAO_Export IdAssignmentPolicy_var
  {
  public:
    IdAssignmentPolicy_var (void); // default constructor
    IdAssignmentPolicy_var (IdAssignmentPolicy_ptr);
    IdAssignmentPolicy_var (const IdAssignmentPolicy_var &); // copy constructor
    ~IdAssignmentPolicy_var (void); // destructor

    IdAssignmentPolicy_var &operator= (IdAssignmentPolicy_ptr);
    IdAssignmentPolicy_var &operator= (const IdAssignmentPolicy_var &);
    IdAssignmentPolicy_ptr operator-> (void) const;

    operator const IdAssignmentPolicy_ptr &() const;
    operator IdAssignmentPolicy_ptr &();
    // in, inout, out, _retn
    IdAssignmentPolicy_ptr in (void) const;
    IdAssignmentPolicy_ptr &inout (void);
    IdAssignmentPolicy_ptr &out (void);
    IdAssignmentPolicy_ptr _retn (void);
    IdAssignmentPolicy_ptr ptr (void) const;

  private:
    IdAssignmentPolicy_ptr ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY___OUT_CH_)
#define _PORTABLESERVER_IDASSIGNMENTPOLICY___OUT_CH_

  class TAO_Export IdAssignmentPolicy_out
  {
  public:
    IdAssignmentPolicy_out (IdAssignmentPolicy_ptr &);
    IdAssignmentPolicy_out (IdAssignmentPolicy_var &);
    IdAssignmentPolicy_out (IdAssignmentPolicy_out &);
    IdAssignmentPolicy_out &operator= (IdAssignmentPolicy_out &);
    IdAssignmentPolicy_out &operator= (const IdAssignmentPolicy_var &);
    IdAssignmentPolicy_out &operator= (IdAssignmentPolicy_ptr);
    operator IdAssignmentPolicy_ptr &();
    IdAssignmentPolicy_ptr &ptr (void);
    IdAssignmentPolicy_ptr operator-> (void);

  private:
    IdAssignmentPolicy_ptr &ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_IDASSIGNMENTPOLICY_CH_)
#define _PORTABLESERVER_IDASSIGNMENTPOLICY_CH_

  class TAO_Export IdAssignmentPolicy: public virtual ACE_CORBA_1(Policy)
  {
  public:
    // the static operations
    static IdAssignmentPolicy_ptr _duplicate (IdAssignmentPolicy_ptr obj);
    static IdAssignmentPolicy_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &_env = CORBA_Environment::default_environment ());
    static IdAssignmentPolicy_ptr _nil (void);

    virtual IdAssignmentPolicyValue value (CORBA_Environment &_env = CORBA_Environment::default_environment ());
    virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &_env = CORBA_Environment::default_environment ());
  protected:
    IdAssignmentPolicy (
                        STUB_Object *objref = 0,
                        TAO_ServantBase *servant = 0,
                        CORBA::Boolean collocated = CORBA::B_FALSE
                        );
  public:
    virtual ~IdAssignmentPolicy (void);
  private:
    IdAssignmentPolicy (const IdAssignmentPolicy&);
    void operator= (const IdAssignmentPolicy&);
  };

#endif /* end #if !defined */

  static CORBA::TypeCode_ptr _tc_IdAssignmentPolicy;

  enum ImplicitActivationPolicyValue
  {
    IMPLICIT_ACTIVATION,
    NO_IMPLICIT_ACTIVATION
  };
  typedef ImplicitActivationPolicyValue &ImplicitActivationPolicyValue_out;
  static CORBA::TypeCode_ptr _tc_ImplicitActivationPolicyValue;


#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY___PTR_CH_)
#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY___PTR_CH_

  class ImplicitActivationPolicy;
  typedef ImplicitActivationPolicy *ImplicitActivationPolicy_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY___VAR_CH_)
#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY___VAR_CH_

  class TAO_Export ImplicitActivationPolicy_var
  {
  public:
    ImplicitActivationPolicy_var (void); // default constructor
    ImplicitActivationPolicy_var (ImplicitActivationPolicy_ptr);
    ImplicitActivationPolicy_var (const ImplicitActivationPolicy_var &); // copy constructor
    ~ImplicitActivationPolicy_var (void); // destructor

    ImplicitActivationPolicy_var &operator= (ImplicitActivationPolicy_ptr);
    ImplicitActivationPolicy_var &operator= (const ImplicitActivationPolicy_var &);
    ImplicitActivationPolicy_ptr operator-> (void) const;

    operator const ImplicitActivationPolicy_ptr &() const;
    operator ImplicitActivationPolicy_ptr &();
    // in, inout, out, _retn
    ImplicitActivationPolicy_ptr in (void) const;
    ImplicitActivationPolicy_ptr &inout (void);
    ImplicitActivationPolicy_ptr &out (void);
    ImplicitActivationPolicy_ptr _retn (void);
    ImplicitActivationPolicy_ptr ptr (void) const;

  private:
    ImplicitActivationPolicy_ptr ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY___OUT_CH_)
#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY___OUT_CH_

  class TAO_Export ImplicitActivationPolicy_out
  {
  public:
    ImplicitActivationPolicy_out (ImplicitActivationPolicy_ptr &);
    ImplicitActivationPolicy_out (ImplicitActivationPolicy_var &);
    ImplicitActivationPolicy_out (ImplicitActivationPolicy_out &);
    ImplicitActivationPolicy_out &operator= (ImplicitActivationPolicy_out &);
    ImplicitActivationPolicy_out &operator= (const ImplicitActivationPolicy_var &);
    ImplicitActivationPolicy_out &operator= (ImplicitActivationPolicy_ptr);
    operator ImplicitActivationPolicy_ptr &();
    ImplicitActivationPolicy_ptr &ptr (void);
    ImplicitActivationPolicy_ptr operator-> (void);

  private:
    ImplicitActivationPolicy_ptr &ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_IMPLICITACTIVATIONPOLICY_CH_)
#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY_CH_

  class TAO_Export ImplicitActivationPolicy: public virtual ACE_CORBA_1(Policy)
  {
  public:
    // the static operations
    static ImplicitActivationPolicy_ptr _duplicate (ImplicitActivationPolicy_ptr obj);
    static ImplicitActivationPolicy_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &_env = CORBA_Environment::default_environment ());
    static ImplicitActivationPolicy_ptr _nil (void);

    virtual ImplicitActivationPolicyValue value (CORBA_Environment &_env = CORBA_Environment::default_environment ());
    virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &_env = CORBA_Environment::default_environment ());
  protected:
    ImplicitActivationPolicy (
                              STUB_Object *objref = 0,
                              TAO_ServantBase *servant = 0,
                              CORBA::Boolean collocated = CORBA::B_FALSE
                              );
  public:
    virtual ~ImplicitActivationPolicy (void);
  private:
    ImplicitActivationPolicy (const ImplicitActivationPolicy&);
    void operator= (const ImplicitActivationPolicy&);
  };

#endif /* end #if !defined */

  static CORBA::TypeCode_ptr _tc_ImplicitActivationPolicy;

  enum ServantRetentionPolicyValue
  {
    RETAIN,
    NON_RETAIN
  };
  typedef ServantRetentionPolicyValue &ServantRetentionPolicyValue_out;
  static CORBA::TypeCode_ptr _tc_ServantRetentionPolicyValue;


#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY___PTR_CH_)
#define _PORTABLESERVER_SERVANTRETENTIONPOLICY___PTR_CH_

  class ServantRetentionPolicy;
  typedef ServantRetentionPolicy *ServantRetentionPolicy_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY___VAR_CH_)
#define _PORTABLESERVER_SERVANTRETENTIONPOLICY___VAR_CH_

  class TAO_Export ServantRetentionPolicy_var
  {
  public:
    ServantRetentionPolicy_var (void); // default constructor
    ServantRetentionPolicy_var (ServantRetentionPolicy_ptr);
    ServantRetentionPolicy_var (const ServantRetentionPolicy_var &); // copy constructor
    ~ServantRetentionPolicy_var (void); // destructor

    ServantRetentionPolicy_var &operator= (ServantRetentionPolicy_ptr);
    ServantRetentionPolicy_var &operator= (const ServantRetentionPolicy_var &);
    ServantRetentionPolicy_ptr operator-> (void) const;

    operator const ServantRetentionPolicy_ptr &() const;
    operator ServantRetentionPolicy_ptr &();
    // in, inout, out, _retn
    ServantRetentionPolicy_ptr in (void) const;
    ServantRetentionPolicy_ptr &inout (void);
    ServantRetentionPolicy_ptr &out (void);
    ServantRetentionPolicy_ptr _retn (void);
    ServantRetentionPolicy_ptr ptr (void) const;

  private:
    ServantRetentionPolicy_ptr ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY___OUT_CH_)
#define _PORTABLESERVER_SERVANTRETENTIONPOLICY___OUT_CH_

  class TAO_Export ServantRetentionPolicy_out
  {
  public:
    ServantRetentionPolicy_out (ServantRetentionPolicy_ptr &);
    ServantRetentionPolicy_out (ServantRetentionPolicy_var &);
    ServantRetentionPolicy_out (ServantRetentionPolicy_out &);
    ServantRetentionPolicy_out &operator= (ServantRetentionPolicy_out &);
    ServantRetentionPolicy_out &operator= (const ServantRetentionPolicy_var &);
    ServantRetentionPolicy_out &operator= (ServantRetentionPolicy_ptr);
    operator ServantRetentionPolicy_ptr &();
    ServantRetentionPolicy_ptr &ptr (void);
    ServantRetentionPolicy_ptr operator-> (void);

  private:
    ServantRetentionPolicy_ptr &ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_SERVANTRETENTIONPOLICY_CH_)
#define _PORTABLESERVER_SERVANTRETENTIONPOLICY_CH_

  class TAO_Export ServantRetentionPolicy: public virtual ACE_CORBA_1(Policy)
  {
  public:
    // the static operations
    static ServantRetentionPolicy_ptr _duplicate (ServantRetentionPolicy_ptr obj);
    static ServantRetentionPolicy_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &_env = CORBA_Environment::default_environment ());
    static ServantRetentionPolicy_ptr _nil (void);

    virtual ServantRetentionPolicyValue value (CORBA_Environment &_env = CORBA_Environment::default_environment ());
    virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &_env = CORBA_Environment::default_environment ());
  protected:
    ServantRetentionPolicy (
                            STUB_Object *objref = 0,
                            TAO_ServantBase *servant = 0,
                            CORBA::Boolean collocated = CORBA::B_FALSE
                            );
  public:
    virtual ~ServantRetentionPolicy (void);
  private:
    ServantRetentionPolicy (const ServantRetentionPolicy&);
    void operator= (const ServantRetentionPolicy&);
  };

#endif /* end #if !defined */

  static CORBA::TypeCode_ptr _tc_ServantRetentionPolicy;

  enum RequestProcessingPolicyValue
  {
    USE_ACTIVE_OBJECT_MAP_ONLY,
    USE_DEFAULT_SERVANT,
    USE_SERVANT_MANAGER
  };
  typedef RequestProcessingPolicyValue &RequestProcessingPolicyValue_out;
  static CORBA::TypeCode_ptr _tc_RequestProcessingPolicyValue;


#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY___PTR_CH_)
#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY___PTR_CH_

  class RequestProcessingPolicy;
  typedef RequestProcessingPolicy *RequestProcessingPolicy_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY___VAR_CH_)
#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY___VAR_CH_

  class TAO_Export RequestProcessingPolicy_var
  {
  public:
    RequestProcessingPolicy_var (void); // default constructor
    RequestProcessingPolicy_var (RequestProcessingPolicy_ptr);
    RequestProcessingPolicy_var (const RequestProcessingPolicy_var &); // copy constructor
    ~RequestProcessingPolicy_var (void); // destructor

    RequestProcessingPolicy_var &operator= (RequestProcessingPolicy_ptr);
    RequestProcessingPolicy_var &operator= (const RequestProcessingPolicy_var &);
    RequestProcessingPolicy_ptr operator-> (void) const;

    operator const RequestProcessingPolicy_ptr &() const;
    operator RequestProcessingPolicy_ptr &();
    // in, inout, out, _retn
    RequestProcessingPolicy_ptr in (void) const;
    RequestProcessingPolicy_ptr &inout (void);
    RequestProcessingPolicy_ptr &out (void);
    RequestProcessingPolicy_ptr _retn (void);
    RequestProcessingPolicy_ptr ptr (void) const;

  private:
    RequestProcessingPolicy_ptr ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY___OUT_CH_)
#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY___OUT_CH_

  class TAO_Export RequestProcessingPolicy_out
  {
  public:
    RequestProcessingPolicy_out (RequestProcessingPolicy_ptr &);
    RequestProcessingPolicy_out (RequestProcessingPolicy_var &);
    RequestProcessingPolicy_out (RequestProcessingPolicy_out &);
    RequestProcessingPolicy_out &operator= (RequestProcessingPolicy_out &);
    RequestProcessingPolicy_out &operator= (const RequestProcessingPolicy_var &);
    RequestProcessingPolicy_out &operator= (RequestProcessingPolicy_ptr);
    operator RequestProcessingPolicy_ptr &();
    RequestProcessingPolicy_ptr &ptr (void);
    RequestProcessingPolicy_ptr operator-> (void);

  private:
    RequestProcessingPolicy_ptr &ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_REQUESTPROCESSINGPOLICY_CH_)
#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY_CH_

  class TAO_Export RequestProcessingPolicy: public virtual ACE_CORBA_1(Policy)
  {
  public:
    // the static operations
    static RequestProcessingPolicy_ptr _duplicate (RequestProcessingPolicy_ptr obj);
    static RequestProcessingPolicy_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &_env = CORBA_Environment::default_environment ());
    static RequestProcessingPolicy_ptr _nil (void);

    virtual RequestProcessingPolicyValue value (CORBA_Environment &_env = CORBA_Environment::default_environment ());
    virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &_env = CORBA_Environment::default_environment ());
  protected:
    RequestProcessingPolicy (
                             STUB_Object *objref = 0,
                             TAO_ServantBase *servant = 0,
                             CORBA::Boolean collocated = CORBA::B_FALSE
                             );
  public:
    virtual ~RequestProcessingPolicy (void);
  private:
    RequestProcessingPolicy (const RequestProcessingPolicy&);
    void operator= (const RequestProcessingPolicy&);
  };

#endif /* end #if !defined */

  static CORBA::TypeCode_ptr _tc_RequestProcessingPolicy;

  // **************************************************
  //
  // TAO spcific POA locking policy (non-standard)
  //
  // **************************************************

  enum SynchronizationPolicyValue 
  {
    DEFAULT_LOCK,
    NULL_LOCK,
    THREAD_LOCK
  };
  typedef SynchronizationPolicyValue &SynchronizationPolicyValue_out;
  static CORBA::TypeCode_ptr _tc_SynchronizationPolicyValue;


#if !defined (_PORTABLESERVER_SYNCHRONIZATIONPOLICY___PTR_CH_)
#define _PORTABLESERVER_SYNCHRONIZATIONPOLICY___PTR_CH_

  class SynchronizationPolicy;
  typedef SynchronizationPolicy *SynchronizationPolicy_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_SYNCHRONIZATIONPOLICY___VAR_CH_)
#define _PORTABLESERVER_SYNCHRONIZATIONPOLICY___VAR_CH_

  class TAO_Export SynchronizationPolicy_var
  {
  public:
    SynchronizationPolicy_var (void); // default constructor
    SynchronizationPolicy_var (SynchronizationPolicy_ptr);
    SynchronizationPolicy_var (const SynchronizationPolicy_var &); // copy constructor
    ~SynchronizationPolicy_var (void); // destructor

    SynchronizationPolicy_var &operator= (SynchronizationPolicy_ptr);
    SynchronizationPolicy_var &operator= (const SynchronizationPolicy_var &);
    SynchronizationPolicy_ptr operator-> (void) const;

    operator const SynchronizationPolicy_ptr &() const;
    operator SynchronizationPolicy_ptr &();
    // in, inout, out, _retn
    SynchronizationPolicy_ptr in (void) const;
    SynchronizationPolicy_ptr &inout (void);
    SynchronizationPolicy_ptr &out (void);
    SynchronizationPolicy_ptr _retn (void);
    SynchronizationPolicy_ptr ptr (void) const;

  private:
    SynchronizationPolicy_ptr ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_SYNCHRONIZATIONPOLICY___OUT_CH_)
#define _PORTABLESERVER_SYNCHRONIZATIONPOLICY___OUT_CH_

  class TAO_Export SynchronizationPolicy_out
  {
  public:
    SynchronizationPolicy_out (SynchronizationPolicy_ptr &);
    SynchronizationPolicy_out (SynchronizationPolicy_var &);
    SynchronizationPolicy_out (SynchronizationPolicy_out &);
    SynchronizationPolicy_out &operator= (SynchronizationPolicy_out &);
    SynchronizationPolicy_out &operator= (const SynchronizationPolicy_var &);
    SynchronizationPolicy_out &operator= (SynchronizationPolicy_ptr);
    operator SynchronizationPolicy_ptr &();
    SynchronizationPolicy_ptr &ptr (void);
    SynchronizationPolicy_ptr operator-> (void);

  private:
    SynchronizationPolicy_ptr &ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_SYNCHRONIZATIONPOLICY_CH_)
#define _PORTABLESERVER_SYNCHRONIZATIONPOLICY_CH_

  class TAO_Export SynchronizationPolicy: public virtual ACE_CORBA_1 (Policy)
  {
  public:
    // the static operations
    static SynchronizationPolicy_ptr _duplicate (SynchronizationPolicy_ptr obj);
    static SynchronizationPolicy_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &_env = CORBA_Environment::default_environment ());
    static SynchronizationPolicy_ptr _nil (void);

    virtual SynchronizationPolicyValue value (CORBA_Environment &_env = CORBA_Environment::default_environment ());
    virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &_env = CORBA_Environment::default_environment ());
  protected:
    SynchronizationPolicy (
                           STUB_Object *objref = 0,
                           TAO_ServantBase *servant = 0,
                           CORBA::Boolean collocated = CORBA::B_FALSE
                           );
  public:
    virtual ~SynchronizationPolicy (void);
  private:
    SynchronizationPolicy (const SynchronizationPolicy&);
    void operator= (const SynchronizationPolicy&);
  };

#endif /* end #if !defined */

  static CORBA::TypeCode_ptr _tc_SynchronizationPolicy;


#if !defined (_PORTABLESERVER_POAMANAGER___PTR_CH_)
#define _PORTABLESERVER_POAMANAGER___PTR_CH_

  class POAManager;
  typedef POAManager *POAManager_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POAMANAGER___VAR_CH_)
#define _PORTABLESERVER_POAMANAGER___VAR_CH_

  class TAO_Export POAManager_var
  {
  public:
    POAManager_var (void); // default constructor
    POAManager_var (POAManager_ptr);
    POAManager_var (const POAManager_var &); // copy constructor
    ~POAManager_var (void); // destructor

    POAManager_var &operator= (POAManager_ptr);
    POAManager_var &operator= (const POAManager_var &);
    POAManager_ptr operator-> (void) const;

    operator const POAManager_ptr &() const;
    operator POAManager_ptr &();
    // in, inout, out, _retn
    POAManager_ptr in (void) const;
    POAManager_ptr &inout (void);
    POAManager_ptr &out (void);
    POAManager_ptr _retn (void);
    POAManager_ptr ptr (void) const;

  private:
    POAManager_ptr ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POAMANAGER___OUT_CH_)
#define _PORTABLESERVER_POAMANAGER___OUT_CH_

  class TAO_Export POAManager_out
  {
  public:
    POAManager_out (POAManager_ptr &);
    POAManager_out (POAManager_var &);
    POAManager_out (POAManager_out &);
    POAManager_out &operator= (POAManager_out &);
    POAManager_out &operator= (const POAManager_var &);
    POAManager_out &operator= (POAManager_ptr);
    operator POAManager_ptr &();
    POAManager_ptr &ptr (void);
    POAManager_ptr operator-> (void);

  private:
    POAManager_ptr &ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POAMANAGER_CH_)
#define _PORTABLESERVER_POAMANAGER_CH_

  class TAO_Export POAManager: public virtual ACE_CORBA_1 (Object)
  {
  public:
    // the static operations
    static POAManager_ptr _duplicate (POAManager_ptr obj);
    static POAManager_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &_env = CORBA_Environment::default_environment ());
    static POAManager_ptr _nil (void);


#if !defined (_PORTABLESERVER_POAMANAGER_ADAPTERINACTIVE___PTR_CH_)
#define _PORTABLESERVER_POAMANAGER_ADAPTERINACTIVE___PTR_CH_

    class AdapterInactive;
    typedef AdapterInactive *AdapterInactive_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POAMANAGER_ADAPTERINACTIVE_CH_)
#define _PORTABLESERVER_POAMANAGER_ADAPTERINACTIVE_CH_

    class TAO_Export AdapterInactive : public CORBA_SystemException
    {
    public:
      AdapterInactive (void); // default ctor
      AdapterInactive (const AdapterInactive &); // copy ctor
      ~AdapterInactive (void); // dtor
      AdapterInactive &operator= (const AdapterInactive &);
      virtual void _raise (void);
      static AdapterInactive *_narrow (CORBA::Exception *);

      // = TAO extension
      static CORBA::Exception *_alloc (void);
    }; // exception PortableServer::POAManager::AdapterInactive

    friend void operator<<= (CORBA::Any &, const AdapterInactive &); // copying version
    friend void operator<<= (CORBA::Any &, AdapterInactive*); // noncopying version
    friend CORBA::Boolean operator>>= (const CORBA::Any &, AdapterInactive *&);
    static CORBA::TypeCode_ptr _tc_AdapterInactive;

#endif /* end #if !defined */

    virtual void  activate (CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual void  hold_requests (CORBA::Boolean wait_for_completion, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual void  discard_requests (CORBA::Boolean wait_for_completion, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual void  deactivate (CORBA::Boolean etherealize_objects, CORBA::Boolean wait_for_completion, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &_env = CORBA_Environment::default_environment ());
  protected:
    POAManager (
                STUB_Object *objref = 0,
                TAO_ServantBase *servant = 0,
                CORBA::Boolean collocated = CORBA::B_FALSE
                );
  public:
    virtual ~POAManager (void);
  private:
    POAManager (const POAManager&);
    void operator= (const POAManager&);
  };

#endif /* end #if !defined */

  static CORBA::TypeCode_ptr _tc_POAManager;


#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR___PTR_CH_)
#define _PORTABLESERVER_ADAPTERACTIVATOR___PTR_CH_

  class AdapterActivator;
  typedef AdapterActivator *AdapterActivator_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR___VAR_CH_)
#define _PORTABLESERVER_ADAPTERACTIVATOR___VAR_CH_

  class TAO_Export AdapterActivator_var
  {
  public:
    AdapterActivator_var (void); // default constructor
    AdapterActivator_var (AdapterActivator_ptr);
    AdapterActivator_var (const AdapterActivator_var &); // copy constructor
    ~AdapterActivator_var (void); // destructor

    AdapterActivator_var &operator= (AdapterActivator_ptr);
    AdapterActivator_var &operator= (const AdapterActivator_var &);
    AdapterActivator_ptr operator-> (void) const;

    operator const AdapterActivator_ptr &() const;
    operator AdapterActivator_ptr &();
    // in, inout, out, _retn
    AdapterActivator_ptr in (void) const;
    AdapterActivator_ptr &inout (void);
    AdapterActivator_ptr &out (void);
    AdapterActivator_ptr _retn (void);
    AdapterActivator_ptr ptr (void) const;

  private:
    AdapterActivator_ptr ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR___OUT_CH_)
#define _PORTABLESERVER_ADAPTERACTIVATOR___OUT_CH_

  class TAO_Export AdapterActivator_out
  {
  public:
    AdapterActivator_out (AdapterActivator_ptr &);
    AdapterActivator_out (AdapterActivator_var &);
    AdapterActivator_out (AdapterActivator_out &);
    AdapterActivator_out &operator= (AdapterActivator_out &);
    AdapterActivator_out &operator= (const AdapterActivator_var &);
    AdapterActivator_out &operator= (AdapterActivator_ptr);
    operator AdapterActivator_ptr &();
    AdapterActivator_ptr &ptr (void);
    AdapterActivator_ptr operator-> (void);

  private:
    AdapterActivator_ptr &ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_ADAPTERACTIVATOR_CH_)
#define _PORTABLESERVER_ADAPTERACTIVATOR_CH_

  class TAO_Export AdapterActivator: public virtual ACE_CORBA_1 (Object)
  {
  public:
    // the static operations
    static AdapterActivator_ptr _duplicate (AdapterActivator_ptr obj);
    static AdapterActivator_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &_env = CORBA_Environment::default_environment ());
    static AdapterActivator_ptr _nil (void);

    virtual CORBA::Boolean  unknown_adapter (POA_ptr parent, const char *name, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &_env = CORBA_Environment::default_environment ());
  protected:
    AdapterActivator (
                      STUB_Object *objref = 0,
                      TAO_ServantBase *servant = 0,
                      CORBA::Boolean collocated = CORBA::B_FALSE
                      );
  public:
    virtual ~AdapterActivator (void);
  private:
    AdapterActivator (const AdapterActivator&);
    void operator= (const AdapterActivator&);
  };

#endif /* end #if !defined */

  static CORBA::TypeCode_ptr _tc_AdapterActivator;


#if !defined (_PORTABLESERVER_SERVANTMANAGER___PTR_CH_)
#define _PORTABLESERVER_SERVANTMANAGER___PTR_CH_

  class ServantManager;
  typedef ServantManager *ServantManager_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_SERVANTMANAGER___VAR_CH_)
#define _PORTABLESERVER_SERVANTMANAGER___VAR_CH_

  class TAO_Export ServantManager_var
  {
  public:
    ServantManager_var (void); // default constructor
    ServantManager_var (ServantManager_ptr);
    ServantManager_var (const ServantManager_var &); // copy constructor
    ~ServantManager_var (void); // destructor

    ServantManager_var &operator= (ServantManager_ptr);
    ServantManager_var &operator= (const ServantManager_var &);
    ServantManager_ptr operator-> (void) const;

    operator const ServantManager_ptr &() const;
    operator ServantManager_ptr &();
    // in, inout, out, _retn
    ServantManager_ptr in (void) const;
    ServantManager_ptr &inout (void);
    ServantManager_ptr &out (void);
    ServantManager_ptr _retn (void);
    ServantManager_ptr ptr (void) const;

  private:
    ServantManager_ptr ptr_;
  };

#endif /* end #if !defined */


#if !defined (_PORTABLESERVER_SERVANTMANAGER___OUT_CH_)
#define _PORTABLESERVER_SERVANTMANAGER___OUT_CH_

  class TAO_Export ServantManager_out
  {
  public:
    ServantManager_out (ServantManager_ptr &);
    ServantManager_out (ServantManager_var &);
    ServantManager_out (ServantManager_out &);
    ServantManager_out &operator= (ServantManager_out &);
    ServantManager_out &operator= (const ServantManager_var &);
    ServantManager_out &operator= (ServantManager_ptr);
    operator ServantManager_ptr &();
    ServantManager_ptr &ptr (void);
    ServantManager_ptr operator-> (void);

  private:
    ServantManager_ptr &ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_SERVANTMANAGER_CH_)
#define _PORTABLESERVER_SERVANTMANAGER_CH_

  class TAO_Export ServantManager: public virtual ACE_CORBA_1 (Object)
  {
  public:
    // the static operations
    static ServantManager_ptr _duplicate (ServantManager_ptr obj);
    static ServantManager_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &_env = CORBA_Environment::default_environment ());
    static ServantManager_ptr _nil (void);

    virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &_env = CORBA_Environment::default_environment ());
  protected:
    ServantManager (
                    STUB_Object *objref = 0,
                    TAO_ServantBase *servant = 0,
                    CORBA::Boolean collocated = CORBA::B_FALSE
                    );
  public:
    virtual ~ServantManager (void);
  private:
    ServantManager (const ServantManager&);
    void operator= (const ServantManager&);
  };

#endif /* end #if !defined */

  static CORBA::TypeCode_ptr _tc_ServantManager;


#if !defined (_PORTABLESERVER_SERVANTACTIVATOR___PTR_CH_)
#define _PORTABLESERVER_SERVANTACTIVATOR___PTR_CH_

  class ServantActivator;
  typedef ServantActivator *ServantActivator_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_SERVANTACTIVATOR___VAR_CH_)
#define _PORTABLESERVER_SERVANTACTIVATOR___VAR_CH_

  class TAO_Export ServantActivator_var
  {
  public:
    ServantActivator_var (void); // default constructor
    ServantActivator_var (ServantActivator_ptr);
    ServantActivator_var (const ServantActivator_var &); // copy constructor
    ~ServantActivator_var (void); // destructor

    ServantActivator_var &operator= (ServantActivator_ptr);
    ServantActivator_var &operator= (const ServantActivator_var &);
    ServantActivator_ptr operator-> (void) const;

    operator const ServantActivator_ptr &() const;
    operator ServantActivator_ptr &();
    // in, inout, out, _retn
    ServantActivator_ptr in (void) const;
    ServantActivator_ptr &inout (void);
    ServantActivator_ptr &out (void);
    ServantActivator_ptr _retn (void);
    ServantActivator_ptr ptr (void) const;

  private:
    ServantActivator_ptr ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_SERVANTACTIVATOR___OUT_CH_)
#define _PORTABLESERVER_SERVANTACTIVATOR___OUT_CH_

  class TAO_Export ServantActivator_out
  {
  public:
    ServantActivator_out (ServantActivator_ptr &);
    ServantActivator_out (ServantActivator_var &);
    ServantActivator_out (ServantActivator_out &);
    ServantActivator_out &operator= (ServantActivator_out &);
    ServantActivator_out &operator= (const ServantActivator_var &);
    ServantActivator_out &operator= (ServantActivator_ptr);
    operator ServantActivator_ptr &();
    ServantActivator_ptr &ptr (void);
    ServantActivator_ptr operator-> (void);

  private:
    ServantActivator_ptr &ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_SERVANTACTIVATOR_CH_)
#define _PORTABLESERVER_SERVANTACTIVATOR_CH_

  class TAO_Export ServantActivator: public virtual ServantManager
  {
  public:
    // the static operations
    static ServantActivator_ptr _duplicate (ServantActivator_ptr obj);
    static ServantActivator_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &_env = CORBA_Environment::default_environment ());
    static ServantActivator_ptr _nil (void);

    virtual Servant  incarnate (const ObjectId &oid, POA_ptr adapter, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual void  etherealize (const ObjectId &oid, POA_ptr adapter, Servant serv, CORBA::Boolean cleanup_in_progress, CORBA::Boolean remaining_activations, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &_env = CORBA_Environment::default_environment ());
  protected:
    ServantActivator (
                      STUB_Object *objref = 0,
                      TAO_ServantBase *servant = 0,
                      CORBA::Boolean collocated = CORBA::B_FALSE
                      );
  public:
    virtual ~ServantActivator (void);
  private:
    ServantActivator (const ServantActivator&);
    void operator= (const ServantActivator&);
  };

#endif /* end #if !defined */

  static CORBA::TypeCode_ptr _tc_ServantActivator;


#if !defined (_PORTABLESERVER_SERVANTLOCATOR___PTR_CH_)
#define _PORTABLESERVER_SERVANTLOCATOR___PTR_CH_

  class ServantLocator;
  typedef ServantLocator *ServantLocator_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_SERVANTLOCATOR___VAR_CH_)
#define _PORTABLESERVER_SERVANTLOCATOR___VAR_CH_

  class TAO_Export ServantLocator_var
  {
  public:
    ServantLocator_var (void); // default constructor
    ServantLocator_var (ServantLocator_ptr);
    ServantLocator_var (const ServantLocator_var &); // copy constructor
    ~ServantLocator_var (void); // destructor

    ServantLocator_var &operator= (ServantLocator_ptr);
    ServantLocator_var &operator= (const ServantLocator_var &);
    ServantLocator_ptr operator-> (void) const;

    operator const ServantLocator_ptr &() const;
    operator ServantLocator_ptr &();
    // in, inout, out, _retn
    ServantLocator_ptr in (void) const;
    ServantLocator_ptr &inout (void);
    ServantLocator_ptr &out (void);
    ServantLocator_ptr _retn (void);
    ServantLocator_ptr ptr (void) const;

  private:
    ServantLocator_ptr ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_SERVANTLOCATOR___OUT_CH_)
#define _PORTABLESERVER_SERVANTLOCATOR___OUT_CH_

  class TAO_Export ServantLocator_out
  {
  public:
    ServantLocator_out (ServantLocator_ptr &);
    ServantLocator_out (ServantLocator_var &);
    ServantLocator_out (ServantLocator_out &);
    ServantLocator_out &operator= (ServantLocator_out &);
    ServantLocator_out &operator= (const ServantLocator_var &);
    ServantLocator_out &operator= (ServantLocator_ptr);
    operator ServantLocator_ptr &();
    ServantLocator_ptr &ptr (void);
    ServantLocator_ptr operator-> (void);

  private:
    ServantLocator_ptr &ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_SERVANTLOCATOR_CH_)
#define _PORTABLESERVER_SERVANTLOCATOR_CH_

  class TAO_Export ServantLocator: public virtual ServantManager
  {
  public:

    typedef void *Cookie;

    // the static operations
    static ServantLocator_ptr _duplicate (ServantLocator_ptr obj);
    static ServantLocator_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &_env = CORBA_Environment::default_environment ());
    static ServantLocator_ptr _nil (void);

    virtual Servant  preinvoke (const ObjectId &oid, POA_ptr adapter, const char *operation, Cookie & the_cookie, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual void  postinvoke (const ObjectId &oid, POA_ptr adapter, const char *operation, Cookie the_cookie, Servant the_servant, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &_env = CORBA_Environment::default_environment ());
  protected:
    ServantLocator (
                    STUB_Object *objref = 0,
                    TAO_ServantBase *servant = 0,
                    CORBA::Boolean collocated = CORBA::B_FALSE
                    );
  public:
    virtual ~ServantLocator (void);
  private:
    ServantLocator (const ServantLocator&);
    void operator= (const ServantLocator&);
  };

#endif /* end #if !defined */

  static CORBA::TypeCode_ptr _tc_ServantLocator;


#if !defined (_PORTABLESERVER_POA___PTR_CH_)
#define _PORTABLESERVER_POA___PTR_CH_

  class POA;
  typedef POA *POA_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA___VAR_CH_)
#define _PORTABLESERVER_POA___VAR_CH_

  class TAO_Export POA_var
  {
  public:
    POA_var (void); // default constructor
    POA_var (POA_ptr);
    POA_var (const POA_var &); // copy constructor
    ~POA_var (void); // destructor

    POA_var &operator= (POA_ptr);
    POA_var &operator= (const POA_var &);
    POA_ptr operator-> (void) const;

    operator const POA_ptr &() const;
    operator POA_ptr &();
    // in, inout, out, _retn
    POA_ptr in (void) const;
    POA_ptr &inout (void);
    POA_ptr &out (void);
    POA_ptr _retn (void);
    POA_ptr ptr (void) const;

  private:
    POA_ptr ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA___OUT_CH_)
#define _PORTABLESERVER_POA___OUT_CH_

  class TAO_Export POA_out
  {
  public:
    POA_out (POA_ptr &);
    POA_out (POA_var &);
    POA_out (POA_out &);
    POA_out &operator= (POA_out &);
    POA_out &operator= (const POA_var &);
    POA_out &operator= (POA_ptr);
    operator POA_ptr &();
    POA_ptr &ptr (void);
    POA_ptr operator-> (void);

  private:
    POA_ptr &ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_CH_)
#define _PORTABLESERVER_POA_CH_

  class TAO_Export POA: public virtual ACE_CORBA_1 (Object)
  {
  public:
    // the static operations
    static POA_ptr _duplicate (POA_ptr obj);
    static POA_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &_env = CORBA_Environment::default_environment ());
    static POA_ptr _nil (void);


#if !defined (_PORTABLESERVER_POA_ADAPTERALREADYEXISTS___PTR_CH_)
#define _PORTABLESERVER_POA_ADAPTERALREADYEXISTS___PTR_CH_

    class AdapterAlreadyExists;
    typedef AdapterAlreadyExists *AdapterAlreadyExists_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_ADAPTERALREADYEXISTS_CH_)
#define _PORTABLESERVER_POA_ADAPTERALREADYEXISTS_CH_

    class TAO_Export AdapterAlreadyExists : public CORBA_SystemException
    {
    public:
      AdapterAlreadyExists (void); // default ctor
      AdapterAlreadyExists (const AdapterAlreadyExists &); // copy ctor
      ~AdapterAlreadyExists (void); // dtor
      AdapterAlreadyExists &operator= (const AdapterAlreadyExists &);
      virtual void _raise (void);
      static AdapterAlreadyExists *_narrow (CORBA::Exception *);

      // = TAO extension
      static CORBA::Exception *_alloc (void);
    }; // exception PortableServer::POA::AdapterAlreadyExists

    friend void operator<<= (CORBA::Any &, const AdapterAlreadyExists &); // copying version
    friend void operator<<= (CORBA::Any &, AdapterAlreadyExists*); // noncopying version
    friend CORBA::Boolean operator>>= (const CORBA::Any &, AdapterAlreadyExists *&);
    static CORBA::TypeCode_ptr _tc_AdapterAlreadyExists;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_ADAPTERINACTIVE___PTR_CH_)
#define _PORTABLESERVER_POA_ADAPTERINACTIVE___PTR_CH_

    class AdapterInactive;
    typedef AdapterInactive *AdapterInactive_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_ADAPTERINACTIVE_CH_)
#define _PORTABLESERVER_POA_ADAPTERINACTIVE_CH_

    class TAO_Export AdapterInactive : public CORBA_SystemException
    {
    public:
      AdapterInactive (void); // default ctor
      AdapterInactive (const AdapterInactive &); // copy ctor
      ~AdapterInactive (void); // dtor
      AdapterInactive &operator= (const AdapterInactive &);
      virtual void _raise (void);
      static AdapterInactive *_narrow (CORBA::Exception *);

      // = TAO extension
      static CORBA::Exception *_alloc (void);
    }; // exception PortableServer::POA::AdapterInactive

    friend void operator<<= (CORBA::Any &, const AdapterInactive &); // copying version
    friend void operator<<= (CORBA::Any &, AdapterInactive*); // noncopying version
    friend CORBA::Boolean operator>>= (const CORBA::Any &, AdapterInactive *&);
    static CORBA::TypeCode_ptr _tc_AdapterInactive;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_ADAPTERNONEXISTENT___PTR_CH_)
#define _PORTABLESERVER_POA_ADAPTERNONEXISTENT___PTR_CH_

    class AdapterNonExistent;
    typedef AdapterNonExistent *AdapterNonExistent_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_ADAPTERNONEXISTENT_CH_)
#define _PORTABLESERVER_POA_ADAPTERNONEXISTENT_CH_

    class TAO_Export AdapterNonExistent : public CORBA_SystemException
    {
    public:
      AdapterNonExistent (void); // default ctor
      AdapterNonExistent (const AdapterNonExistent &); // copy ctor
      ~AdapterNonExistent (void); // dtor
      AdapterNonExistent &operator= (const AdapterNonExistent &);
      virtual void _raise (void);
      static AdapterNonExistent *_narrow (CORBA::Exception *);

      // = TAO extension
      static CORBA::Exception *_alloc (void);
    }; // exception PortableServer::POA::AdapterNonExistent

    friend void operator<<= (CORBA::Any &, const AdapterNonExistent &); // copying version
    friend void operator<<= (CORBA::Any &, AdapterNonExistent*); // noncopying version
    friend CORBA::Boolean operator>>= (const CORBA::Any &, AdapterNonExistent *&);
    static CORBA::TypeCode_ptr _tc_AdapterNonExistent;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_INVALIDPOLICY___PTR_CH_)
#define _PORTABLESERVER_POA_INVALIDPOLICY___PTR_CH_

    class InvalidPolicy;
    typedef InvalidPolicy *InvalidPolicy_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_INVALIDPOLICY_CH_)
#define _PORTABLESERVER_POA_INVALIDPOLICY_CH_

    class TAO_Export InvalidPolicy : public CORBA_SystemException
    {
    public:
      InvalidPolicy (void); // default ctor
      InvalidPolicy (const InvalidPolicy &); // copy ctor
      ~InvalidPolicy (void); // dtor
      InvalidPolicy &operator= (const InvalidPolicy &);
      virtual void _raise (void);
      static InvalidPolicy *_narrow (CORBA::Exception *);

      InvalidPolicy(
          CORBA::UShort _tao_index
        );

      CORBA::UShort index;

      // = TAO extension
      static CORBA::Exception *_alloc (void);
    }; // exception PortableServer::POA::InvalidPolicy

    friend void operator<<= (CORBA::Any &, const InvalidPolicy &); // copying version
    friend void operator<<= (CORBA::Any &, InvalidPolicy*); // noncopying version
    friend CORBA::Boolean operator>>= (const CORBA::Any &, InvalidPolicy *&);
    static CORBA::TypeCode_ptr _tc_InvalidPolicy;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_NOSERVANT___PTR_CH_)
#define _PORTABLESERVER_POA_NOSERVANT___PTR_CH_

    class NoServant;
    typedef NoServant *NoServant_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_NOSERVANT_CH_)
#define _PORTABLESERVER_POA_NOSERVANT_CH_

    class TAO_Export NoServant : public CORBA_SystemException
    {
    public:
      NoServant (void); // default ctor
      NoServant (const NoServant &); // copy ctor
      ~NoServant (void); // dtor
      NoServant &operator= (const NoServant &);
      virtual void _raise (void);
      static NoServant *_narrow (CORBA::Exception *);

      // = TAO extension
      static CORBA::Exception *_alloc (void);
    }; // exception PortableServer::POA::NoServant

    friend void operator<<= (CORBA::Any &, const NoServant &); // copying version
    friend void operator<<= (CORBA::Any &, NoServant*); // noncopying version
    friend CORBA::Boolean operator>>= (const CORBA::Any &, NoServant *&);
    static CORBA::TypeCode_ptr _tc_NoServant;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_OBJECTALREADYACTIVE___PTR_CH_)
#define _PORTABLESERVER_POA_OBJECTALREADYACTIVE___PTR_CH_

    class ObjectAlreadyActive;
    typedef ObjectAlreadyActive *ObjectAlreadyActive_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_OBJECTALREADYACTIVE_CH_)
#define _PORTABLESERVER_POA_OBJECTALREADYACTIVE_CH_

    class TAO_Export ObjectAlreadyActive : public CORBA_SystemException
    {
    public:
      ObjectAlreadyActive (void); // default ctor
      ObjectAlreadyActive (const ObjectAlreadyActive &); // copy ctor
      ~ObjectAlreadyActive (void); // dtor
      ObjectAlreadyActive &operator= (const ObjectAlreadyActive &);
      virtual void _raise (void);
      static ObjectAlreadyActive *_narrow (CORBA::Exception *);

      // = TAO extension
      static CORBA::Exception *_alloc (void);
    }; // exception PortableServer::POA::ObjectAlreadyActive

    friend void operator<<= (CORBA::Any &, const ObjectAlreadyActive &); // copying version
    friend void operator<<= (CORBA::Any &, ObjectAlreadyActive*); // noncopying version
    friend CORBA::Boolean operator>>= (const CORBA::Any &, ObjectAlreadyActive *&);
    static CORBA::TypeCode_ptr _tc_ObjectAlreadyActive;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_OBJECTNOTACTIVE___PTR_CH_)
#define _PORTABLESERVER_POA_OBJECTNOTACTIVE___PTR_CH_

    class ObjectNotActive;
    typedef ObjectNotActive *ObjectNotActive_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_OBJECTNOTACTIVE_CH_)
#define _PORTABLESERVER_POA_OBJECTNOTACTIVE_CH_

    class TAO_Export ObjectNotActive : public CORBA_SystemException
    {
    public:
      ObjectNotActive (void); // default ctor
      ObjectNotActive (const ObjectNotActive &); // copy ctor
      ~ObjectNotActive (void); // dtor
      ObjectNotActive &operator= (const ObjectNotActive &);
      virtual void _raise (void);
      static ObjectNotActive *_narrow (CORBA::Exception *);

      // = TAO extension
      static CORBA::Exception *_alloc (void);
    }; // exception PortableServer::POA::ObjectNotActive

    friend void operator<<= (CORBA::Any &, const ObjectNotActive &); // copying version
    friend void operator<<= (CORBA::Any &, ObjectNotActive*); // noncopying version
    friend CORBA::Boolean operator>>= (const CORBA::Any &, ObjectNotActive *&);
    static CORBA::TypeCode_ptr _tc_ObjectNotActive;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_SERVANTALREADYACTIVE___PTR_CH_)
#define _PORTABLESERVER_POA_SERVANTALREADYACTIVE___PTR_CH_

    class ServantAlreadyActive;
    typedef ServantAlreadyActive *ServantAlreadyActive_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_SERVANTALREADYACTIVE_CH_)
#define _PORTABLESERVER_POA_SERVANTALREADYACTIVE_CH_

    class TAO_Export ServantAlreadyActive : public CORBA_SystemException
    {
    public:
      ServantAlreadyActive (void); // default ctor
      ServantAlreadyActive (const ServantAlreadyActive &); // copy ctor
      ~ServantAlreadyActive (void); // dtor
      ServantAlreadyActive &operator= (const ServantAlreadyActive &);
      virtual void _raise (void);
      static ServantAlreadyActive *_narrow (CORBA::Exception *);

      // = TAO extension
      static CORBA::Exception *_alloc (void);
    }; // exception PortableServer::POA::ServantAlreadyActive

    friend void operator<<= (CORBA::Any &, const ServantAlreadyActive &); // copying version
    friend void operator<<= (CORBA::Any &, ServantAlreadyActive*); // noncopying version
    friend CORBA::Boolean operator>>= (const CORBA::Any &, ServantAlreadyActive *&);
    static CORBA::TypeCode_ptr _tc_ServantAlreadyActive;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_SERVANTNOTACTIVE___PTR_CH_)
#define _PORTABLESERVER_POA_SERVANTNOTACTIVE___PTR_CH_

    class ServantNotActive;
    typedef ServantNotActive *ServantNotActive_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_SERVANTNOTACTIVE_CH_)
#define _PORTABLESERVER_POA_SERVANTNOTACTIVE_CH_

    class TAO_Export ServantNotActive : public CORBA_SystemException
    {
    public:
      ServantNotActive (void); // default ctor
      ServantNotActive (const ServantNotActive &); // copy ctor
      ~ServantNotActive (void); // dtor
      ServantNotActive &operator= (const ServantNotActive &);
      virtual void _raise (void);
      static ServantNotActive *_narrow (CORBA::Exception *);

      // = TAO extension
      static CORBA::Exception *_alloc (void);
    }; // exception PortableServer::POA::ServantNotActive

    friend void operator<<= (CORBA::Any &, const ServantNotActive &); // copying version
    friend void operator<<= (CORBA::Any &, ServantNotActive*); // noncopying version
    friend CORBA::Boolean operator>>= (const CORBA::Any &, ServantNotActive *&);
    static CORBA::TypeCode_ptr _tc_ServantNotActive;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_WRONGADAPTER___PTR_CH_)
#define _PORTABLESERVER_POA_WRONGADAPTER___PTR_CH_

    class WrongAdapter;
    typedef WrongAdapter *WrongAdapter_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_WRONGADAPTER_CH_)
#define _PORTABLESERVER_POA_WRONGADAPTER_CH_

    class TAO_Export WrongAdapter : public CORBA_SystemException
    {
    public:
      WrongAdapter (void); // default ctor
      WrongAdapter (const WrongAdapter &); // copy ctor
      ~WrongAdapter (void); // dtor
      WrongAdapter &operator= (const WrongAdapter &);
      virtual void _raise (void);
      static WrongAdapter *_narrow (CORBA::Exception *);

      // = TAO extension
      static CORBA::Exception *_alloc (void);
    }; // exception PortableServer::POA::WrongAdapter

    friend void operator<<= (CORBA::Any &, const WrongAdapter &); // copying version
    friend void operator<<= (CORBA::Any &, WrongAdapter*); // noncopying version
    friend CORBA::Boolean operator>>= (const CORBA::Any &, WrongAdapter *&);
    static CORBA::TypeCode_ptr _tc_WrongAdapter;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_WRONGPOLICY___PTR_CH_)
#define _PORTABLESERVER_POA_WRONGPOLICY___PTR_CH_

    class WrongPolicy;
    typedef WrongPolicy *WrongPolicy_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_POA_WRONGPOLICY_CH_)
#define _PORTABLESERVER_POA_WRONGPOLICY_CH_

    class TAO_Export WrongPolicy : public CORBA_SystemException
    {
    public:
      WrongPolicy (void); // default ctor
      WrongPolicy (const WrongPolicy &); // copy ctor
      ~WrongPolicy (void); // dtor
      WrongPolicy &operator= (const WrongPolicy &);
      virtual void _raise (void);
      static WrongPolicy *_narrow (CORBA::Exception *);

      // = TAO extension
      static CORBA::Exception *_alloc (void);
    }; // exception PortableServer::POA::WrongPolicy

    friend void operator<<= (CORBA::Any &, const WrongPolicy &); // copying version
    friend void operator<<= (CORBA::Any &, WrongPolicy*); // noncopying version
    friend CORBA::Boolean operator>>= (const CORBA::Any &, WrongPolicy *&);
    static CORBA::TypeCode_ptr _tc_WrongPolicy;

#endif /* end #if !defined */

    virtual POA_ptr  create_POA (const char *adapter_name, POAManager_ptr a_POAManager, const CORBA::PolicyList &policies, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual POA_ptr  find_POA (const char *adapter_name, CORBA::Boolean activate_it, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual void  destroy (CORBA::Boolean etherealize_objects, CORBA::Boolean wait_for_completion, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual ThreadPolicy_ptr  create_thread_policy (ThreadPolicyValue value, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual LifespanPolicy_ptr  create_lifespan_policy (LifespanPolicyValue value, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual IdUniquenessPolicy_ptr  create_id_uniqueness_policy (IdUniquenessPolicyValue value, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual IdAssignmentPolicy_ptr  create_id_assignment_policy (IdAssignmentPolicyValue value, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual ImplicitActivationPolicy_ptr  create_implicit_activation_policy (ImplicitActivationPolicyValue value, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual ServantRetentionPolicy_ptr  create_servant_retention_policy (ServantRetentionPolicyValue value, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual RequestProcessingPolicy_ptr  create_request_processing_policy (RequestProcessingPolicyValue value, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;

    // **************************************************
    //
    // TAO spcific POA locking policy (non-standard)
    //
    // **************************************************

    virtual SynchronizationPolicy_ptr  create_synchronization_policy (SynchronizationPolicyValue value, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;

    virtual char * the_name (CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual POA_ptr  the_parent (CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual POAManager_ptr  the_POAManager (CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual AdapterActivator_ptr  the_activator (CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual void the_activator(AdapterActivator_ptr the_activator, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual ServantManager_ptr  get_servant_manager (CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual void  set_servant_manager (ServantManager_ptr imgr, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual Servant  get_servant (CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual void  set_servant (Servant p_servant, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual ObjectId * activate_object (Servant p_servant, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual void  activate_object_with_id (const ObjectId &id, Servant p_servant, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual void  deactivate_object (const ObjectId &oid, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual CORBA::Object_ptr  create_reference (const char *intf, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual CORBA::Object_ptr  create_reference_with_id (const ObjectId &oid, const char *intf, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual ObjectId * servant_to_id (Servant p_servant, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual CORBA::Object_ptr  servant_to_reference (Servant p_servant, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual Servant  reference_to_servant (CORBA::Object_ptr reference, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual ObjectId * reference_to_id (CORBA::Object_ptr reference, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual Servant  id_to_servant (const ObjectId &oid, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual CORBA::Object_ptr  id_to_reference (const ObjectId &oid, CORBA_Environment &_env = CORBA_Environment::default_environment ()) = 0;
    virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &_env = CORBA_Environment::default_environment ());
  protected:
    POA (
         STUB_Object *objref = 0,
         TAO_ServantBase *servant = 0,
         CORBA::Boolean collocated = CORBA::B_FALSE
         );
  public:
    virtual ~POA (void);
  private:
    POA (const POA&);
    void operator= (const POA&);
  };

#endif /* end #if !defined */

  static CORBA::TypeCode_ptr _tc_POA;


#if !defined (_PORTABLESERVER_CURRENT___PTR_CH_)
#define _PORTABLESERVER_CURRENT___PTR_CH_

  class Current;
  typedef Current *Current_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_CURRENT___VAR_CH_)
#define _PORTABLESERVER_CURRENT___VAR_CH_

  class TAO_Export Current_var
  {
  public:
    Current_var (void); // default constructor
    Current_var (Current_ptr);
    Current_var (const Current_var &); // copy constructor
    ~Current_var (void); // destructor

    Current_var &operator= (Current_ptr);
    Current_var &operator= (const Current_var &);
    Current_ptr operator-> (void) const;

    operator const Current_ptr &() const;
    operator Current_ptr &();
    // in, inout, out, _retn
    Current_ptr in (void) const;
    Current_ptr &inout (void);
    Current_ptr &out (void);
    Current_ptr _retn (void);
    Current_ptr ptr (void) const;

  private:
    Current_ptr ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_CURRENT___OUT_CH_)
#define _PORTABLESERVER_CURRENT___OUT_CH_

  class TAO_Export Current_out
  {
  public:
    Current_out (Current_ptr &);
    Current_out (Current_var &);
    Current_out (Current_out &);
    Current_out &operator= (Current_out &);
    Current_out &operator= (const Current_var &);
    Current_out &operator= (Current_ptr);
    operator Current_ptr &();
    Current_ptr &ptr (void);
    Current_ptr operator-> (void);

  private:
    Current_ptr &ptr_;
  };

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_CURRENT_CH_)
#define _PORTABLESERVER_CURRENT_CH_

  class TAO_Export Current: public virtual ACE_CORBA_1(Current)
  {
  public:
    // the static operations
    static Current_ptr _duplicate (Current_ptr obj);
    static Current_ptr _narrow (CORBA::Object_ptr obj, CORBA_Environment &_env = CORBA_Environment::default_environment ());
    static Current_ptr _nil (void);


#if !defined (_PORTABLESERVER_CURRENT_NOCONTEXT___PTR_CH_)
#define _PORTABLESERVER_CURRENT_NOCONTEXT___PTR_CH_

    class NoContext;
    typedef NoContext *NoContext_ptr;

#endif /* end #if !defined */

#if !defined (_PORTABLESERVER_CURRENT_NOCONTEXT_CH_)
#define _PORTABLESERVER_CURRENT_NOCONTEXT_CH_

    class TAO_Export NoContext : public CORBA_SystemException
    {
    public:
      NoContext (void); // default ctor
      NoContext (const NoContext &); // copy ctor
      ~NoContext (void); // dtor
      NoContext &operator= (const NoContext &);
      virtual void _raise (void);
      static NoContext *_narrow (CORBA::Exception *);

      // = TAO extension
      static CORBA::Exception *_alloc (void);
    }; // exception PortableServer::Current::NoContext

    friend void operator<<= (CORBA::Any &, const NoContext &); // copying version
    friend void operator<<= (CORBA::Any &, NoContext*); // noncopying version
    friend CORBA::Boolean operator>>= (const CORBA::Any &, NoContext *&);
    static CORBA::TypeCode_ptr _tc_NoContext;

#endif /* end #if !defined */

    virtual POA_ptr  get_POA (CORBA_Environment &_env = CORBA_Environment::default_environment ());
    virtual ObjectId * get_object_id (CORBA_Environment &_env = CORBA_Environment::default_environment ());
    virtual CORBA::Boolean _is_a (const CORBA::Char *type_id, CORBA_Environment &_env = CORBA_Environment::default_environment ());
  protected:
    Current (
             STUB_Object *objref = 0,
             TAO_ServantBase *servant = 0,
             CORBA::Boolean collocated = CORBA::B_FALSE
             );
  public:
    virtual ~Current (void);
  private:
    Current (const Current&);
    void operator= (const Current&);
  };

#endif /* end #if !defined */

  static CORBA::TypeCode_ptr _tc_Current;

  static char *ObjectId_to_string (const PortableServer::ObjectId &id);
  static CORBA::WChar *ObjectId_to_wstring (const PortableServer::ObjectId &id);
  static PortableServer::ObjectId *string_to_ObjectId (const char *id);
  static PortableServer::ObjectId *wstring_to_ObjectId (const CORBA::WChar *id);

};

#if defined (__ACE_INLINE__)
#include "POAC.i"
#endif /* defined INLINE */

#endif /* TAO_IDL_POAC_H */