00001
00002
00003 #include "tao/AnyTypeCode/AnyTypeCode_methods.h"
00004 #include "tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.h"
00005 #include "tao/TypeCodeFactory/TypeCodeFactory_i.h"
00006
00007 #include "tao/ORB_Core.h"
00008
00009
00010 ACE_RCSID (TypeCodeFactory,
00011 TypeCodeFactory_Adapter_Impl,
00012 "$Id: TypeCodeFactory_Adapter_Impl.cpp 76995 2007-02-11 12:51:42Z johnnyw $")
00013
00014
00015 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00016
00017 TAO_TypeCodeFactory_Adapter_Impl::~TAO_TypeCodeFactory_Adapter_Impl (void)
00018 {
00019 }
00020
00021 CORBA::TypeCode_ptr
00022 TAO_TypeCodeFactory_Adapter_Impl::create_struct_tc (
00023 const char * id,
00024 const char * name,
00025 const CORBA::StructMemberSeq & members)
00026 {
00027 TAO_TypeCodeFactory_i tcf;
00028
00029 return tcf.create_struct_tc (id, name, members);
00030 }
00031
00032 CORBA::TypeCode_ptr
00033 TAO_TypeCodeFactory_Adapter_Impl::create_union_tc (
00034 const char * id,
00035 const char * name,
00036 CORBA::TypeCode_ptr discriminator_type,
00037 const CORBA::UnionMemberSeq & members)
00038 {
00039 TAO_TypeCodeFactory_i tcf;
00040
00041 return tcf.create_union_tc (id, name, discriminator_type, members);
00042 }
00043
00044 CORBA::TypeCode_ptr
00045 TAO_TypeCodeFactory_Adapter_Impl::create_enum_tc (
00046 const char * id,
00047 const char * name,
00048 const CORBA::EnumMemberSeq & members)
00049 {
00050 TAO_TypeCodeFactory_i tcf;
00051
00052 return tcf.create_enum_tc (id, name, members);
00053 }
00054
00055 CORBA::TypeCode_ptr
00056 TAO_TypeCodeFactory_Adapter_Impl::create_alias_tc (
00057 const char * id,
00058 const char * name,
00059 CORBA::TypeCode_ptr original_type)
00060 {
00061 TAO_TypeCodeFactory_i tcf;
00062
00063 return tcf.create_alias_tc (id, name, original_type);
00064 }
00065
00066 CORBA::TypeCode_ptr
00067 TAO_TypeCodeFactory_Adapter_Impl::create_exception_tc (
00068 const char * id,
00069 const char * name,
00070 const CORBA::StructMemberSeq & members)
00071 {
00072 TAO_TypeCodeFactory_i tcf;
00073
00074 return tcf.create_exception_tc (id, name, members);
00075 }
00076
00077 CORBA::TypeCode_ptr
00078 TAO_TypeCodeFactory_Adapter_Impl::create_interface_tc (
00079 const char * id,
00080 const char * name)
00081 {
00082 TAO_TypeCodeFactory_i tcf;
00083
00084 return tcf.create_interface_tc (id, name);
00085 }
00086
00087 CORBA::TypeCode_ptr
00088 TAO_TypeCodeFactory_Adapter_Impl::create_string_tc (CORBA::ULong bound)
00089 {
00090 TAO_TypeCodeFactory_i tcf;
00091
00092 return tcf.create_string_tc (bound);
00093 }
00094
00095 CORBA::TypeCode_ptr
00096 TAO_TypeCodeFactory_Adapter_Impl::create_wstring_tc (CORBA::ULong bound)
00097 {
00098 TAO_TypeCodeFactory_i tcf;
00099
00100 return tcf.create_wstring_tc (bound);
00101 }
00102
00103 CORBA::TypeCode_ptr
00104 TAO_TypeCodeFactory_Adapter_Impl::create_fixed_tc (
00105 CORBA::UShort digits,
00106 CORBA::UShort scale)
00107 {
00108 TAO_TypeCodeFactory_i tcf;
00109
00110 return tcf.create_fixed_tc (digits, scale);
00111 }
00112
00113 CORBA::TypeCode_ptr
00114 TAO_TypeCodeFactory_Adapter_Impl::create_sequence_tc (
00115 CORBA::ULong bound,
00116 CORBA::TypeCode_ptr element_type)
00117 {
00118 TAO_TypeCodeFactory_i tcf;
00119
00120 return tcf.create_sequence_tc (bound, element_type);
00121 }
00122
00123 CORBA::TypeCode_ptr
00124 TAO_TypeCodeFactory_Adapter_Impl::create_array_tc (
00125 CORBA::ULong length,
00126 CORBA::TypeCode_ptr element_type)
00127 {
00128 TAO_TypeCodeFactory_i tcf;
00129
00130 return tcf.create_array_tc (length, element_type);
00131 }
00132
00133 CORBA::TypeCode_ptr
00134 TAO_TypeCodeFactory_Adapter_Impl::create_value_tc (
00135 const char * id,
00136 const char * name,
00137 CORBA::ValueModifier type_modifier,
00138 CORBA::TypeCode_ptr concrete_base,
00139 const CORBA::ValueMemberSeq & members)
00140 {
00141 TAO_TypeCodeFactory_i tcf;
00142
00143 return tcf.create_value_tc (id, name, type_modifier, concrete_base, members);
00144 }
00145
00146 CORBA::TypeCode_ptr
00147 TAO_TypeCodeFactory_Adapter_Impl::create_value_box_tc (
00148 const char * id,
00149 const char * name,
00150 CORBA::TypeCode_ptr boxed_type)
00151 {
00152 TAO_TypeCodeFactory_i tcf;
00153
00154 return tcf.create_value_box_tc (id, name, boxed_type);
00155 }
00156
00157 CORBA::TypeCode_ptr
00158 TAO_TypeCodeFactory_Adapter_Impl::create_native_tc (
00159 const char * id,
00160 const char * name)
00161 {
00162 TAO_TypeCodeFactory_i tcf;
00163
00164 return tcf.create_native_tc (id, name);
00165 }
00166
00167 CORBA::TypeCode_ptr
00168 TAO_TypeCodeFactory_Adapter_Impl::create_recursive_tc (const char * id)
00169 {
00170 TAO_TypeCodeFactory_i tcf;
00171
00172 return tcf.create_recursive_tc (id);
00173 }
00174
00175 CORBA::TypeCode_ptr
00176 TAO_TypeCodeFactory_Adapter_Impl::create_abstract_interface_tc (
00177 const char * id,
00178 const char * name)
00179 {
00180 TAO_TypeCodeFactory_i tcf;
00181
00182 return tcf.create_abstract_interface_tc (id, name);
00183 }
00184
00185 CORBA::TypeCode_ptr
00186 TAO_TypeCodeFactory_Adapter_Impl::create_local_interface_tc (
00187 const char * id,
00188 const char * name)
00189 {
00190 TAO_TypeCodeFactory_i tcf;
00191
00192 return tcf.create_local_interface_tc (id, name);
00193 }
00194
00195 CORBA::TypeCode_ptr
00196 TAO_TypeCodeFactory_Adapter_Impl::create_component_tc (
00197 const char *id,
00198 const char *name)
00199 {
00200 TAO_TypeCodeFactory_i tcf;
00201
00202 return tcf.create_component_tc (id, name);
00203 }
00204
00205 CORBA::TypeCode_ptr
00206 TAO_TypeCodeFactory_Adapter_Impl::create_home_tc (
00207 const char *id,
00208 const char *name)
00209 {
00210 TAO_TypeCodeFactory_i tcf;
00211
00212 return tcf.create_home_tc (id, name);
00213 }
00214
00215 CORBA::TypeCode_ptr
00216 TAO_TypeCodeFactory_Adapter_Impl::create_event_tc (
00217 const char *id,
00218 const char *name,
00219 CORBA::ValueModifier type_modifier,
00220 CORBA::TypeCode_ptr concrete_base,
00221 const CORBA::ValueMemberSeq &members)
00222 {
00223 TAO_TypeCodeFactory_i tcf;
00224
00225 return tcf.create_event_tc (id, name, type_modifier, concrete_base, members);
00226 }
00227
00228
00229
00230 CORBA::TypeCode_ptr
00231 TAO_TypeCodeFactory_Adapter_Impl::create_enum_tc (
00232 char const * ,
00233 char const * ,
00234 ACE_Array_Base<CORBA::String_var> const & ,
00235 CORBA::ULong
00236 )
00237 {
00238 throw ::CORBA::NO_IMPLEMENT ();
00239 }
00240
00241 CORBA::TypeCode_ptr
00242 TAO_TypeCodeFactory_Adapter_Impl::create_struct_except_tc (
00243 CORBA::TCKind ,
00244 char const * ,
00245 char const * ,
00246 ACE_Array_Base<
00247 TAO::TypeCode::Struct_Field<CORBA::String_var,
00248 CORBA::TypeCode_var> > const & ,
00249 CORBA::ULong
00250 )
00251 {
00252 throw ::CORBA::NO_IMPLEMENT ();
00253 }
00254
00255 CORBA::TypeCode_ptr
00256 TAO_TypeCodeFactory_Adapter_Impl::create_union_tc (
00257 char const * ,
00258 char const * ,
00259 CORBA::TypeCode_ptr ,
00260 ACE_Array_Base<TAO::TypeCode::Case<CORBA::String_var,
00261 CORBA::TypeCode_var> > const & ,
00262 CORBA::ULong ,
00263 CORBA::Long ,
00264 char const * ,
00265 CORBA::TypeCode_ptr
00266 )
00267 {
00268 throw ::CORBA::NO_IMPLEMENT ();
00269 }
00270
00271 CORBA::TypeCode_ptr
00272 TAO_TypeCodeFactory_Adapter_Impl::create_value_event_tc (
00273 CORBA::TCKind ,
00274 char const * ,
00275 char const * ,
00276 CORBA::ValueModifier ,
00277 CORBA::TypeCode_ptr ,
00278 ACE_Array_Base<
00279 TAO::TypeCode::Value_Field<CORBA::String_var,
00280 CORBA::TypeCode_var> > const & ,
00281 CORBA::ULong
00282 )
00283 {
00284 throw ::CORBA::NO_IMPLEMENT ();
00285 }
00286
00287
00288
00289
00290
00291 int
00292 TAO_TypeCodeFactory_Adapter_Impl::Initializer (void)
00293 {
00294 TAO_ORB_Core::typecodefactory_adapter_name ("Concrete_TypeCodeFactory_Adapter");
00295
00296 return ACE_Service_Config::process_directive (ace_svc_desc_TAO_TypeCodeFactory_Adapter_Impl);
00297 }
00298
00299 TAO_END_VERSIONED_NAMESPACE_DECL
00300
00301 ACE_STATIC_SVC_DEFINE (
00302 TAO_TypeCodeFactory_Adapter_Impl,
00303 ACE_TEXT ("Concrete_TypeCodeFactory_Adapter"),
00304 ACE_SVC_OBJ_T,
00305 &ACE_SVC_NAME (TAO_TypeCodeFactory_Adapter_Impl),
00306 ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
00307 0
00308 )
00309
00310 ACE_FACTORY_DEFINE (TAO_TypeCodeFactory, TAO_TypeCodeFactory_Adapter_Impl)