Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / AnyTypeCode / TypeCodeA.cpp
blobe3ac11d2985968a39843acec5c45efd440de47a5
1 // -*- C++ -*-
2 #include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
3 #include "tao/AnyTypeCode/Null_RefCount_Policy.h"
5 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
7 namespace TAO
9 namespace TypeCode
11 // Notice that these are all statically instantiated and not
12 // exported.
14 char const tc_bounds_id[] = "IDL:omg.org/CORBA/TypeCode/Bounds:1.0";
15 char const tc_bounds_name[] = "Bounds";
16 Struct<char const *,
17 CORBA::TypeCode_ptr const *,
18 Struct_Field<char const *,
19 CORBA::TypeCode_ptr const *> const *,
20 TAO::Null_RefCount_Policy> tc_Bounds (CORBA::tk_except,
21 tc_bounds_id,
22 tc_bounds_name,
24 0);
26 char const tc_bad_kind_id[] = "IDL:omg.org/CORBA/TypeCode/BadKind:1.0";
27 char const tc_bad_kind_name[] = "BadKind";
28 Struct<char const *,
29 CORBA::TypeCode_ptr const *,
30 Struct_Field<char const *,
31 CORBA::TypeCode_ptr const *> const *,
32 TAO::Null_RefCount_Policy> tc_BadKind (CORBA::tk_except,
33 tc_bad_kind_id,
34 tc_bad_kind_name,
36 0);
41 // ------------------------------------------------------------------
42 // OMG defined TypeCode constants
43 // ------------------------------------------------------------------
45 // Notice that these are constant TypeCode references/pointers, not
46 // constant TypeCodes. TypeCodes are effectively read-only since
47 // all non-static TypeCode operations are const.
50 CORBA::TypeCode_ptr const CORBA::TypeCode::_tc_BadKind =
51 &TAO::TypeCode::tc_BadKind;
52 CORBA::TypeCode_ptr const CORBA::TypeCode::_tc_Bounds =
53 &TAO::TypeCode::tc_Bounds;
56 TAO_END_VERSIONED_NAMESPACE_DECL