27.4.3 Codecのメソッド
-
virtual CORBA::OctetSequence* encode(
const CORBA::Any& _data) = 0;
このメソッドは,このCodecに適用されているエンコーディング形式に基づいて,CORBA::Anyの形式で指定したデータをオクテットシーケンスに変換します。このオクテットシーケンスには,TypeCodeと型のデータの両方が格納されます。このオペレーションでは,InvalidTypeForEncoding例外が発生する場合があります。
-
_data
オクテットシーケンスに変換する,CORBA::Any形式のデータ
-
-
const CORBA::OctetSequence& _data) = 0;
このメソッドは,このCodecに適用されているエンコーディング形式に基づいて,指定したオクテットシーケンスをCORBA::Anyオブジェクトにデコードします。
オクテットシーケンスをCORBA::Anyにデコードできない場合,このメソッドは,FormatMismatch例外を出力します。
-
_data
CORBA::Anyに変換する,オクテットシーケンス形式のデータ
-
-
virtual CORBA::OctetSequence* encode_value(
const CORBA::Any& _data) = 0;
このメソッドは,このCodecに適用されているエンコーディング形式に基づいて,指定したCORBA::Anyオブジェクトをオクテットシーケンスに変換します。CORBA::Anyのデータだけをエンコードします。TypeCodeのデータはエンコードしません。
このオペレーションでは,InvalidTypeForEncoding例外が発生する場合があります。
-
_data
エンコード済みCORBA::Anyのデータを格納するオクテットシーケンス
-
-
virtual CORBA::Any* decode_value(
const CORBA::OctetSequence& _data,
CORBA::TypeCode_ptr _tc) = 0;
このメソッドは,指定したTypeCodeと,このCodecに適用されているエンコーディング形式に基づいて,指定したオクテットシーケンスをCORBA::Anyにデコードします。
オクテットシーケンスをCORBA::Anyにデコードできない場合,このメソッドは,FormatMismatch例外を出力します。
-
_data
CORBA::Anyにデコードする,オクテットシーケンス形式のデータ
-
_tc
データのデコードに使用するTypeCode
-