TAO::TypeCode::Value_Field< StringType, TypeCodeType > Struct Template Reference

Name/type/visibility tuple fields of an OMG IDL defined valuetype or eventtype. More...

#include <TypeCode_Value_Field.h>

Collaboration diagram for TAO::TypeCode::Value_Field< StringType, TypeCodeType >:

Collaboration graph
[legend]
List of all members.

Public Attributes

StringType name
 The name of the field.
TypeCodeType type
 The CORBA::TypeCode of the field.
CORBA::Visibility visibility
 The visibility of the field.

Detailed Description

template<typename StringType, typename TypeCodeType>
struct TAO::TypeCode::Value_Field< StringType, TypeCodeType >

Name/type/visibility tuple fields of an OMG IDL defined valuetype or eventtype.

A Value_Field contains the corresponding name and pointer to the CORBA::TypeCode for a given OMG IDL defined type. For example, the fields in following OMG IDL structure:

   struct Foo
   {
     long   the_number;
     string the_string;
   };

would be represented using the following statically instantiated TAO::TypeCode::Value_Field array:

   TAO::TypeCode::Value_Field<char const *> _tao_fields_Foo[] =
     {
       { "the_number", &CORBA::_tc_long },
       { "the_string", &CORBA::_tc_string },
     };

The template parameter STRING_TYPE is either char const * or CORBA::String_var. The latter is only used when creating CORBA::tk_value or CORBA::tk_event TypeCodes dynamically, such as through the TypeCodeFactory.


Member Data Documentation

template<typename StringType, typename TypeCodeType>
StringType TAO::TypeCode::Value_Field< StringType, TypeCodeType >::name

The name of the field.

template<typename StringType, typename TypeCodeType>
TypeCodeType TAO::TypeCode::Value_Field< StringType, TypeCodeType >::type

The CORBA::TypeCode of the field.

template<typename StringType, typename TypeCodeType>
CORBA::Visibility TAO::TypeCode::Value_Field< StringType, TypeCodeType >::visibility

The visibility of the field.


The documentation for this struct was generated from the following file:
Generated on Sun Jul 9 09:51:44 2006 for TAO_AnyTypeCode by  doxygen 1.4.7-1