TAO_AnyTypeCode 4.0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType > Class Template Reference

Representation of an OMG IDL defined union case for unions with Enum discriminators. More...

#include <TypeCode_Case_Enum_T.h>

Inheritance diagram for TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >:
Inheritance graph
[legend]
Collaboration diagram for TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >:
Collaboration graph
[legend]

Public Member Functions

 Case_Enum_T (CORBA::TypeCode_ptr discriminator_tc, CORBA::ULong member_label, char const *member_name, TypeCodeType member_type)
 Constructor.
 
 Case_Enum_T (CORBA::TypeCode_ptr discriminator_tc, CORBA::ULong member_label)
 Constructor.
 
- Public Member Functions inherited from TAO::TypeCode::Case< StringType, TypeCodeType >
 Case (char const *name, TypeCodeType tc)
 Constructor.
 
 Case ()
 Constructor.
 
virtual ~Case ()
 Destructor.
 
char const * name () const
 Get the name of the union case/member.
 
void name (char const *the_name)
 Set the name of the union case/member.
 
CORBA::TypeCode_ptr type () const
 Get the CORBA::TypeCode of the union case/member.
 
void type (CORBA::TypeCode_ptr tc)
 Set the CORBA::TypeCode of the union case/member.
 
bool marshal (TAO_OutputCDR &cdr, CORBA::ULong offset) const
 
bool equal (CORBA::ULong index, CORBA::TypeCode_ptr tc) const
 
bool equivalent (CORBA::ULong index, CORBA::TypeCode_ptr tc) const
 

@c TAO::TypeCode::Case Methods

Methods required by the TAO::TypeCode::Case abstract base class.

See also
TAO::TypeCode::Case
::CORBA::ULong const label_
 IDL union case/member label value.
 
CORBA::TypeCode_var discriminator_tc_
 IDL union discriminator typecode.
 
Case< StringType, TypeCodeType > * clone () const
 IDL union case/member label value.
 
virtual CORBA::Anylabel () const
 IDL union case/member label value.
 
virtual bool marshal_label (TAO_OutputCDR &cdr) const
 IDL union case/member label value.
 
virtual bool equal_label (CORBA::ULong index, CORBA::TypeCode_ptr tc) const
 IDL union case/member label value.
 

Additional Inherited Members

Detailed Description

template<typename StringType, typename TypeCodeType>
class TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >

Representation of an OMG IDL defined union case for unions with Enum discriminators.

When dynamically creating a union type with a enum discriminator, there is not way that the template parameter DiscriminatorType can be specified at runtime.

Since enums are encoded as ULongs, DiscriminatorType has been replaced with CORBA::ULong.

Constructor & Destructor Documentation

◆ Case_Enum_T() [1/2]

template<typename StringType , typename TypeCodeType >
TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >::Case_Enum_T ( CORBA::TypeCode_ptr discriminator_tc,
CORBA::ULong member_label,
char const * member_name,
TypeCodeType member_type )

Constructor.

◆ Case_Enum_T() [2/2]

template<typename StringType , typename TypeCodeType >
TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >::Case_Enum_T ( CORBA::TypeCode_ptr discriminator_tc,
CORBA::ULong member_label )

Constructor.

Constructor only used in the dynamically constructed union TypeCode case.

Member Function Documentation

◆ clone()

template<typename StringType , typename TypeCodeType >
TAO::TypeCode::Case< StringType, TypeCodeType > * TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >::clone ( ) const
virtual

IDL union case/member label value.

Implements TAO::TypeCode::Case< StringType, TypeCodeType >.

◆ equal_label()

template<typename StringType , typename TypeCodeType >
bool TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >::equal_label ( CORBA::ULong index,
CORBA::TypeCode_ptr tc ) const
virtual

IDL union case/member label value.

Implements TAO::TypeCode::Case< StringType, TypeCodeType >.

◆ label()

template<typename StringType , typename TypeCodeType >
CORBA::Any * TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >::label ( ) const
virtual

IDL union case/member label value.

Implements TAO::TypeCode::Case< StringType, TypeCodeType >.

◆ marshal_label()

template<typename StringType , typename TypeCodeType >
bool TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >::marshal_label ( TAO_OutputCDR & cdr) const
virtual

IDL union case/member label value.

Implements TAO::TypeCode::Case< StringType, TypeCodeType >.

Member Data Documentation

◆ discriminator_tc_

template<typename StringType , typename TypeCodeType >
CORBA::TypeCode_var TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >::discriminator_tc_
private

IDL union discriminator typecode.

◆ label_

template<typename StringType , typename TypeCodeType >
::CORBA::ULong const TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >::label_
private

IDL union case/member label value.


The documentation for this class was generated from the following files: