23.10.2 DynUnionのメソッド
-
DynamicAny::DynAny_ptr get_discriminator();
このメソッドは,unionの識別子を格納するDynAnyオブジェクトを返します。
-
CORBA::TCKind discriminator_kind();
このメソッドは,unionの識別子のタイプコードを返します。
-
DynamicAny::DynAny_ptr member();
このメソッドは,unionのメンバであるカレントコンポーネントのDynAnyオブジェクトを返します。
-
このメソッドは,unionのメンバであるカレントコンポーネントのタイプコードを返します。
-
CORBA::FieldName member_name();
このメソッドは,カレントコンポーネントのメンバ名を返します。
-
DynamicAny::DynAny_ptr value);
このメソッドは,DynUnionのディスクリミネータを,指定した値に設定します。
-
このメソッドは,ディスクリミネータを,unionのデフォルト値と一致する値に設定します。
-
void set_to_no_active_member();
このメソッドは,ディスクリミネータを,どのunionのケースラベルにも対応しない値に設定します。
-
boolean has_no_active_member();
このメソッドは,unionにアクティブなメンバがない場合,つまり,ディスクリミネータの値が明示的なケースラベルとしてリストされていないため,unionの値がディスクリミネータだけで構成されている場合,TRUEを返します。