Interstage Application Server アプリケーション作成ガイド (CORBAサービス編)
目次 索引 前ページ次ページ

第5章 アプリケーションの開発(C++言語)> 5.5 データ型に対するマッピング

5.5.12 パラメタ受渡しで使用するデータ型

 クライアント/サーバアプリケーションでパラメタ受渡に使用するデータ型を以下に示します。

CORBAデータ型

in

out

inout

復帰

long

Long

Long&

Long&

Long

short

Short

Short&

Short&

Short

unsigned long

ULong

ULong&

ULong&

ULong

unsigned short

UShort

UShort&

UShort&

UShort

long long

LongLong

LongLong&

LongLong&

LongLong

float

Float

Float&

Float&

Float

double

Double

Double&

Double&

Double

long double

LongDouble

LongDouble&

LongDouble&

LongDouble

char

Char

Char&

Char&

Char

wchar

WChar

WChar&

WChar&

WChar

octet

Octet

Octet&

Octet&

Octet

boolean

Boolean

Boolean&

Boolean&

Boolean

enum

enum

enum&

enum&

enum

string

const Char*

Char*&

Char*&

Char*

wstring

const WChar*

WChar*&

WChar*&

WChar*

any

const any&

any*&

any&

any*

sequence

const sequence&

sequence*&

sequence&

sequence*

struct

固定長

const struct&

struct&

struct&

struct

可変長

const struct&

struct*&

struct&

struct*

union

固定長

const union&

union&

union&

union

可変長

const union&

union*&

union&

union*

array(配列)

固定長

const array

array

array

array slice*

可変長

const array

array slice*&

array

array slice*

Object

CORBA::Object_ptr

CORBA::Object_ptr&

CORBA::Object_ptr&

CORBA::Object_ptr

TypeCode

CORBA::TypeCode_ptr

CORBA::TypeCode_ptr&

CORBA::TypeCode_ptr&

CORBA::TypeCode_ptr

注意事項

(1)NULLポインタの設定について

 クライアントアプリケーションのin、inoutパラメタ、およびサーバアプリケーションのout、inoutパラメタ復帰値では、文字列型、シーケンス型、構造体、共用体、配列データ型でNULLポインタを設定することができません。


目次 索引 前ページ次ページ

All Rights Reserved, Copyright(C) 富士通株式会社 2005