summaryrefslogtreecommitdiff
path: root/TAO/tao/AnyTypeCode/TypeCodeA.cpp
blob: ca3156f5d15d8644d12d4f71958867a673712ef2 (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
// $Id$

#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"


ACE_RCSID (AnyTypeCode,
           TypeCode,
           "$Id$")


TAO_BEGIN_VERSIONED_NAMESPACE_DECL

namespace TAO
{
  namespace TypeCode
  {
    // Notice that these are all statically instantiated and not
    // exported.

    char const tc_bounds_id[]   = "IDL:omg.org/CORBA/TypeCode/Bounds:1.0";
    char const tc_bounds_name[] = "Bounds";
    Struct<char const *,
           CORBA::TypeCode_ptr const *,
           Struct_Field<char const *,
                        CORBA::TypeCode_ptr const *> const *,
           TAO::Null_RefCount_Policy> tc_Bounds (CORBA::tk_except,
                                                 tc_bounds_id,
                                                 tc_bounds_name,
                                                 0,
                                                 0);

    char const tc_bad_kind_id[]   = "IDL:omg.org/CORBA/TypeCode/BadKind:1.0";
    char const tc_bad_kind_name[] = "BadKind";
    Struct<char const *,
           CORBA::TypeCode_ptr const *,
           Struct_Field<char const *,
                        CORBA::TypeCode_ptr const *> const *,
           TAO::Null_RefCount_Policy> tc_BadKind (CORBA::tk_except,
                                                  tc_bad_kind_id,
                                                  tc_bad_kind_name,
                                                  0,
                                                  0);
  }
}


// ------------------------------------------------------------------
// OMG defined TypeCode constants
// ------------------------------------------------------------------

// Notice that these are constant TypeCode references/pointers, not
// constant TypeCodes.  TypeCodes are effectively read-only since
// all non-static TypeCode operations are const.


CORBA::TypeCode_ptr const CORBA::TypeCode::_tc_BadKind =
  &TAO::TypeCode::tc_BadKind;
CORBA::TypeCode_ptr const CORBA::TypeCode::_tc_Bounds =
  &TAO::TypeCode::tc_Bounds;


TAO_END_VERSIONED_NAMESPACE_DECL