source: trunk/ORBit2-2.14.0/test/everything/constants.h

Last change on this file was 92, checked in by cinc, 19 years ago

Orbit2 modified for use with NOM

File size: 4.4 KB
Line 
1/*
2 * CORBA C language mapping tests
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2, or (at your option) any
7 * later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 *
18 * Author: Phil Dawes <philipd@users.sourceforge.net>
19 */
20
21#ifndef EVERYTHING_CONSTANTS_H
22#define EVERYTHING_CONSTANTS_H
23
24#include "everything.h"
25
26const CORBA_char * constants_STRING_IN="In string";
27const CORBA_char * constants_STRING_INOUT_IN="Inout in string";
28const CORBA_char * constants_STRING_INOUT_OUT="Inout out string";
29const CORBA_char * constants_STRING_OUT="Out string";
30const CORBA_char * constants_STRING_RETN="Retn String";
31
32
33#define constants_LONG_IN 0x12345678
34#define constants_LONG_INOUT_IN 0x34567812
35#define constants_LONG_INOUT_OUT 0x56781234
36#define constants_LONG_OUT 0x78123456
37#define constants_LONG_RETN 0xAABBCCDD
38
39#define constants_LONG_LONG_IN constants_LONG_IN
40#define constants_LONG_LONG_INOUT_IN constants_LONG_INOUT_IN
41#define constants_LONG_LONG_INOUT_OUT constants_LONG_INOUT_OUT
42#define constants_LONG_LONG_OUT constants_LONG_OUT
43#define constants_LONG_LONG_RETN constants_LONG_RETN
44
45#define constants_FLOAT_IN ((CORBA_float) 127.13534)
46#define constants_FLOAT_INOUT_IN ((CORBA_float) 124.89432)
47#define constants_FLOAT_INOUT_OUT ((CORBA_float) 975.12694)
48#define constants_FLOAT_OUT ((CORBA_float) 112.54575)
49#define constants_FLOAT_RETN ((CORBA_float) 354.23535)
50
51#define constants_DOUBLE_IN ((CORBA_double) 127.13534)
52#define constants_DOUBLE_INOUT_IN ((CORBA_double) 124.89432)
53#define constants_DOUBLE_INOUT_OUT ((CORBA_double) 975.12694)
54#define constants_DOUBLE_OUT ((CORBA_double) 112.54575)
55#define constants_DOUBLE_RETN ((CORBA_double) 354.23535)
56
57#define constants_LONG_DOUBLE_IN ((CORBA_long_double) 127.13534)
58#define constants_LONG_DOUBLE_INOUT_IN ((CORBA_long_double) 124.89432)
59#define constants_LONG_DOUBLE_INOUT_OUT ((CORBA_long_double) 975.12694)
60#define constants_LONG_DOUBLE_OUT ((CORBA_long_double) 112.54575)
61#define constants_LONG_DOUBLE_RETN ((CORBA_long_double) 354.23535)
62
63const CORBA_char constants_CHAR_IN=0x23;
64const CORBA_char constants_CHAR_INOUT_IN=0x45;
65const CORBA_char constants_CHAR_INOUT_OUT=0x67;
66const CORBA_char constants_CHAR_OUT=0x89;
67const CORBA_char constants_CHAR_RETN=0xAC;
68
69const CORBA_octet constants_OCTET_IN=0x13;
70const CORBA_octet constants_OCTET_INOUT_IN=0x35;
71const CORBA_octet constants_OCTET_INOUT_OUT=0x57;
72const CORBA_octet constants_OCTET_OUT=0x79;
73const CORBA_octet constants_OCTET_RETN=0xBD;
74
75const CORBA_short constants_SHORT_IN=0x1234;
76const CORBA_short constants_SHORT_INOUT_IN=0x3456;
77const CORBA_short constants_SHORT_INOUT_OUT=0x5678;
78const CORBA_short constants_SHORT_OUT=0x7812;
79const CORBA_short constants_SHORT_RETN=0xAABB;
80
81
82const CORBA_char * constants_SEQ_STRING_IN[] = { "in1","in2","in3","in4" };
83const CORBA_char * constants_SEQ_STRING_OUT[] = { "out1","out2","out3","out4" };
84const CORBA_char * constants_SEQ_STRING_INOUT_IN[] = { "inout1","inout2","inout3","inout4" };
85const CORBA_char * constants_SEQ_STRING_INOUT_OUT[] = { "inout21","inout22","inout23","inout24" };
86const CORBA_char * constants_SEQ_STRING_RETN[] = { "retn1","retn2","retn3","retn4" };
87
88const CORBA_long constants_SEQ_LONG_IN[] = { constants_LONG_IN,constants_LONG_INOUT_IN,15,7 };
89const CORBA_long constants_SEQ_LONG_OUT[] = { constants_LONG_INOUT_IN, constants_LONG_INOUT_OUT,15,7 };
90const CORBA_long constants_SEQ_LONG_INOUT_IN[] = { constants_LONG_INOUT_OUT, constants_LONG_OUT,7,15 };
91const CORBA_long constants_SEQ_LONG_INOUT_OUT[] = { constants_LONG_OUT, constants_LONG_RETN,8,9 };
92const CORBA_long constants_SEQ_LONG_RETN[] = { constants_LONG_RETN, constants_LONG_IN,2,3 };
93
94const CORBA_long constants_SEQ_OCTET_IN[] = { 1, 3, 5, 7 };
95const CORBA_long constants_SEQ_OCTET_OUT[] = { 2, 7, 9, 255 };
96const CORBA_long constants_SEQ_OCTET_INOUT_IN[] = { 1, 15, 8, 0 };
97const CORBA_long constants_SEQ_OCTET_INOUT_OUT[] = { 73, 128, 173, 15 };
98const CORBA_long constants_SEQ_OCTET_RETN[] = { 1, 3, 5, 7 };
99
100#endif
Note: See TracBrowser for help on using the repository browser.