bea ホーム | 製品 | dev2dev | support | askBEA |
![]() |
![]() |
|
![]() |
e-docs > Tuxedo > Tuxedo CORBA プログラミング・リファレンス > CORBA API |
Tuxedo CORBA プログラミング・リファレンス
|
CORBA API
この章では、C++ と拡張 C++ でのコア・メンバ関数の BEA Tuxedo インプリメンテーションについて説明します。また、擬似オブジェクトとその C++ クラスとの関係についても説明します。擬似オブジェクトとは、ネットワーク経由で転送不可能なオブジェクト・リファレンスのことです。擬似オブジェクトはその他のオブジェクトと似ていますが、ORB によって所有されるため拡張ができません。
注記 この章の一部の情報は、Object Management Group (OMG) の「Common Object Request Broker: Architecture and Specification, Revision 2.4.2」(2001 年 2 月) から、OMG の許可を得て転載しています。
グローバル・クラス
次の BEA Tuxedo クラスは、スコープ内においてグローバルです。
上記のクラスには、BEA Tuxedo の開発で使用する定義済みの型、クラス、および関数が含まれています。
CORBA クラスには、CORBA で定義されている、オブジェクト・リクエスト・ブローカ (ORB) を使用する際に不可欠なクラス、データ型、およびメンバ関数があります。BEA Tuxedo の CORBA への拡張は、Tobj C++ クラスに含まれています。Tobj クラスには、BEA Tuxedo で CORBA への拡張として用意されているデータ型、入れ子になったクラス、およびメンバ関数があります。
BEA Tuxedo 製品で CORBA のデータ型とメンバ関数を使用するには、CORBA:: 接頭辞が必要です。たとえば、Long の場合は CORBA::Long となります。同様に、BEA Tuxedo 製品で Tobj の入れ子になったクラスとメンバ関数を使用するには、Tobj:: 接頭辞が必要です。たとえば、FactoryFinder の場合は Tobj::FactoryFinder となります。
擬似オブジェクト
擬似オブジェクトは、CORBA クラス内部にあるローカル・クラスとして表されます。擬似オブジェクトおよび対応するメンバ関数の名前は、入れ子になったクラス構造で付けます。たとえば、ORB オブジェクトの場合は CORBA::ORB、Current オブジェクトの場合は CORBA::Current となります。
Any クラスのメンバ関数
ここでは、Any クラスの各メンバ関数について説明します。
ExceptionList メンバ関数の C++ へのマッピングは次のとおりです。
class CORBA
{
class Any
{
public:
Any ();
Any (const Any&);
Any (TypeCode_ptr tc, void *value, Boolean release =
CORBA_ FALSE);
~Any ();
Any & operator=(const Any&);
void operator<<=(Short);
void operator<<=(UShort);
void operator<<=(Long);
void operator<<=(ULong);
void operator<<=(Float);
void operator<<=(Double);
void operator<<=(const Any&);
void operator<<=(const char*);
void operator<<=(Object_ptr);
void operator<<=(from_boolean);
void operator<<=(from_char);
void operator<<=(from_octet);
void operator<<=(from_string);
Boolean operator>>=(Short&) const;
Boolean operator>>=(UShort&) const;
Boolean operator>>=(Long&) const;
Boolean operator>>=(ULong&) const;
Boolean operator>>=(Float&) const;
Boolean operator>>=(Double&) const;
Boolean operator>>=(Any&) const;
Boolean operator>>=(char*&) const;
Boolean operator>>=(Object_ptr&) const;
Boolean operator>>=(to_boolean) const;
Boolean operator>>=(to_char) const;
Boolean operator>>=(to_octet) const;
Boolean operator>>=(to_object) const;
Boolean operator>>=(to_string) const;
TypeCode_ptr type()const;
void replace(TypeCode_ptr, void *, Boolean);
void replace(TypeCode_ptr, void *);
const void * value() const;
};
}; //CORBA
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |