Project

General

Profile

IDL Base types

The base types of IDL are boolean values, binary values, signed or unsigned integers, floating point and characters. The chapter on GenoM IDL mappings explains how they map to the actual programming language.

Integer types

They represent integer values in the range indicated below.

(71) integer-type ::=

signed-int
| unsigned-int

(72) signed-int ::=

signed-longlong-int
| signed-long-int
| signed-short-int

(73) unsigned-int ::=

unsigned-longlong-int
| unsigned-long-int
| unsigned-short-int

(79) signed-longlong-int ::=

"long" "long"

(78) signed-long-int ::=

"long"

(77) signed-short-int ::=

"short"

(76) unsigned-longlong-int ::=

"unsigned" "long" "long"

(75) unsigned-long-int ::=

"unsigned" "long"

(74) unsigned-short-int ::=

"unsigned" "short"

Table 1. Range of integer types

short

-215 .. 215-1

long

-231 .. 231-1

long long

-263 .. 263-1

unsigned short

0 .. 216-1

unsigned long

0 .. 232-1

unsigned long long

0 .. 264-1

Floating point types

They represent floating point values. The float type represents IEEE single-precision floating point numbers; the double type represents IEEE double-precision floating point numbers.

(80) floating-pt-type ::=

float-type
| double-type

(81) float-type ::=

"float"

(82) double-type ::=

"double"

Char types

A char data type that is an 8-bit quantity that encodes a single-byte character.

(83) char-type ::=

"char"

Boolean Types

The boolean data type is used to denote a data item that can only take one of the values TRUE and FALSE.

(84) boolean-type ::=

"boolean"

Octet Types

The octet type represents an 8 bit quantity.

(85) octet-type ::=

"octet"

Any Types

Caution The any type is a generic type that can contain any other type. This is not yet implemented in genom, so you must not use it.
(86) any-type ::=

"any"