Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / be / be_visitor_constant / constant.cpp
blobf339edfc8c4f3d79b3b368565a772afe3cfe4165
1 #include "constant.h"
3 const char *exprtype_to_cpp_corba_type (AST_Expression::ExprType et)
5 switch (et)
7 case AST_Expression::EV_short:
8 return "CORBA::Short";
9 case AST_Expression::EV_ushort:
10 return "CORBA::UShort";
11 case AST_Expression::EV_long:
12 return "CORBA::Long";
13 case AST_Expression::EV_ulong:
14 return "CORBA::ULong";
15 case AST_Expression::EV_float:
16 return "CORBA::Float";
17 case AST_Expression::EV_double:
18 return "CORBA::Double";
19 case AST_Expression::EV_char:
20 return "CORBA::Char";
21 case AST_Expression::EV_octet:
22 return "CORBA::Octet";
23 case AST_Expression::EV_bool:
24 return "CORBA::Boolean";
25 case AST_Expression::EV_string:
26 return "char *const";
27 case AST_Expression::EV_void:
28 return "void";
29 case AST_Expression::EV_none:
30 return "none";
31 case AST_Expression::EV_longlong:
32 return "CORBA::LongLong";
33 case AST_Expression::EV_ulonglong:
34 return "CORBA::ULongLong";
35 case AST_Expression::EV_wchar:
36 return "CORBA::WChar";
37 case AST_Expression::EV_wstring:
38 return "CORBA::WChar *const";
39 case AST_Expression::EV_fixed:
40 return "Fixed";
41 case AST_Expression::EV_int8:
42 return "CORBA::Int8";
43 case AST_Expression::EV_uint8:
44 return "CORBA::UInt8";
45 default:
46 return 0;
49 return 0;