00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_TYPECODEFACTORY_ADAPTER_H
00014 #define TAO_TYPECODEFACTORY_ADAPTER_H
00015
00016 #include "ace/pre.h"
00017 #include "ace/Service_Object.h"
00018
00019 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00020 # pragma once
00021 #endif
00022
00023 #include "tao/CORBA_methods.h"
00024 #include "tao/Typecode_typesC.h"
00025 #include "tao/Pseudo_VarOut_T.h"
00026
00027 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00028 template<class T> class ACE_Array_Base;
00029 ACE_END_VERSIONED_NAMESPACE_DECL
00030
00031 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00032
00033 namespace CORBA
00034 {
00035 class EnumMemberSeq;
00036 class StructMemberSeq;
00037 class UnionMemberSeq;
00038 class ValueMemberSeq;
00039
00040 typedef TAO_Pseudo_Var_T<TypeCode> TypeCode_var;
00041 typedef TAO_Pseudo_Out_T<TypeCode> TypeCode_out;
00042
00043 typedef CORBA::Short ValueModifier;
00044 }
00045
00046 namespace TAO
00047 {
00048 namespace TypeCode
00049 {
00050 template<typename StringType, typename TypeCodeType> class Case;
00051 template<typename StringType, typename TypeCodeType> struct Struct_Field;
00052 template<typename StringType, typename TypeCodeType> struct Value_Field;
00053 }
00054 }
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066 class TAO_Export TAO_TypeCodeFactory_Adapter : public ACE_Service_Object
00067 {
00068 public:
00069 virtual ~TAO_TypeCodeFactory_Adapter (void);
00070
00071 virtual CORBA::TypeCode_ptr create_struct_tc (
00072 const char *id,
00073 const char *name,
00074 const CORBA::StructMemberSeq &members) = 0;
00075
00076 virtual CORBA::TypeCode_ptr create_union_tc (
00077 const char *id,
00078 const char *name,
00079 CORBA::TypeCode_ptr discriminator_type,
00080 const CORBA::UnionMemberSeq &members) = 0;
00081
00082 virtual CORBA::TypeCode_ptr create_enum_tc (
00083 const char *id,
00084 const char *name,
00085 const CORBA::EnumMemberSeq &members) = 0;
00086
00087 virtual CORBA::TypeCode_ptr create_alias_tc (
00088 const char *id,
00089 const char *name,
00090 CORBA::TypeCode_ptr original_type) = 0;
00091
00092 virtual CORBA::TypeCode_ptr create_exception_tc (
00093 const char *id,
00094 const char *name,
00095 const CORBA::StructMemberSeq &members) = 0;
00096
00097 virtual CORBA::TypeCode_ptr create_interface_tc (
00098 const char *id,
00099 const char *name) = 0;
00100
00101 virtual CORBA::TypeCode_ptr create_string_tc (
00102 CORBA::ULong bound) = 0;
00103
00104 virtual CORBA::TypeCode_ptr create_wstring_tc (
00105 CORBA::ULong bound) = 0;
00106
00107 virtual CORBA::TypeCode_ptr create_fixed_tc (
00108 CORBA::UShort digits,
00109 CORBA::UShort scale) = 0;
00110
00111 virtual CORBA::TypeCode_ptr create_sequence_tc (
00112 CORBA::ULong bound,
00113 CORBA::TypeCode_ptr element_type) = 0;
00114
00115 virtual CORBA::TypeCode_ptr create_array_tc (
00116 CORBA::ULong length,
00117 CORBA::TypeCode_ptr element_type) = 0;
00118
00119 virtual CORBA::TypeCode_ptr create_value_tc (
00120 const char *id,
00121 const char *name,
00122 CORBA::ValueModifier type_modifier,
00123 CORBA::TypeCode_ptr concrete_base,
00124 const CORBA::ValueMemberSeq &members
00125 )
00126 = 0;
00127
00128 virtual CORBA::TypeCode_ptr create_value_box_tc (
00129 const char *id,
00130 const char *name,
00131 CORBA::TypeCode_ptr boxed_type
00132 )
00133 = 0;
00134
00135 virtual CORBA::TypeCode_ptr create_native_tc (
00136 const char *id,
00137 const char *name
00138 )
00139 = 0;
00140
00141 virtual CORBA::TypeCode_ptr create_recursive_tc (
00142 const char *id)
00143 = 0;
00144
00145 virtual CORBA::TypeCode_ptr create_abstract_interface_tc (
00146 const char *id,
00147 const char *name)
00148 = 0;
00149
00150 virtual CORBA::TypeCode_ptr create_local_interface_tc (
00151 const char *id,
00152 const char *name)
00153 = 0;
00154
00155 virtual CORBA::TypeCode_ptr create_component_tc (
00156 const char *id,
00157 const char *name)
00158 = 0;
00159
00160 virtual CORBA::TypeCode_ptr create_home_tc (
00161 const char *id,
00162 const char *name)
00163 = 0;
00164
00165 virtual CORBA::TypeCode_ptr create_event_tc (
00166 const char *id,
00167 const char *name,
00168 CORBA::ValueModifier type_modifier,
00169 CORBA::TypeCode_ptr concrete_base,
00170 const CORBA::ValueMemberSeq &members)
00171 = 0;
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183 virtual CORBA::TypeCode_ptr create_enum_tc (
00184 char const * id,
00185 char const * name,
00186 ACE_Array_Base<CORBA::String_var> const & enumerators,
00187 CORBA::ULong ncases
00188 ) = 0;
00189
00190
00191 virtual CORBA::TypeCode_ptr create_struct_except_tc (
00192 CORBA::TCKind,
00193 char const * id,
00194 char const * name,
00195 ACE_Array_Base<
00196 TAO::TypeCode::Struct_Field<CORBA::String_var,
00197 CORBA::TypeCode_var> > const & fields,
00198 CORBA::ULong nfields
00199 ) = 0;
00200
00201
00202 virtual CORBA::TypeCode_ptr create_union_tc (
00203 char const * id,
00204 char const * name,
00205 CORBA::TypeCode_ptr discriminant_type,
00206 ACE_Array_Base<TAO::TypeCode::Case<CORBA::String_var,
00207 CORBA::TypeCode_var> > const & cases,
00208 CORBA::ULong ncases,
00209 CORBA::Long default_index,
00210 char const * default_case_name,
00211 CORBA::TypeCode_ptr default_case_type
00212 ) = 0;
00213
00214
00215 virtual CORBA::TypeCode_ptr create_value_event_tc (
00216 CORBA::TCKind,
00217 char const * id,
00218 char const * name,
00219 CORBA::ValueModifier modifier,
00220 CORBA::TypeCode_ptr concrete_base,
00221 ACE_Array_Base<
00222 TAO::TypeCode::Value_Field<CORBA::String_var,
00223 CORBA::TypeCode_var> > const & fields,
00224 CORBA::ULong nfields
00225 ) = 0;
00226
00227
00228 };
00229
00230 TAO_END_VERSIONED_NAMESPACE_DECL
00231
00232 #include "ace/post.h"
00233
00234 #endif