00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TAO_ALIAS_TYPECODE_STATIC_H
00017 #define TAO_ALIAS_TYPECODE_STATIC_H
00018
00019 #include "ace/pre.h"
00020
00021 #include "tao/AnyTypeCode/TypeCode.h"
00022
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif
00026
00027 #include "tao/AnyTypeCode/TypeCode_Base_Attributes.h"
00028 #include "tao/AnyTypeCode/Null_RefCount_Policy.h"
00029
00030 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00031
00032 namespace TAO
00033 {
00034 namespace TypeCode
00035 {
00036 template <typename StringType,
00037 typename TypeCodeType,
00038 class RefCountPolicy> class Alias;
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 template<>
00050 class TAO_AnyTypeCode_Export Alias<char const *,
00051 CORBA::TypeCode_ptr const *,
00052 TAO::Null_RefCount_Policy>
00053 : public CORBA::TypeCode,
00054 private TAO::Null_RefCount_Policy
00055 {
00056 public:
00057
00058
00059 Alias (CORBA::TCKind kind,
00060 char const * id,
00061 char const * name,
00062 CORBA::TypeCode_ptr const * tc);
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073 virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const;
00074 virtual void tao_duplicate (void);
00075 virtual void tao_release (void);
00076
00077
00078 protected:
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089 virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const;
00090 virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const;
00091 virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const;
00092 virtual char const * id_i (void) const;
00093 virtual char const * name_i (void) const;
00094 virtual CORBA::TypeCode_ptr content_type_i (void) const;
00095
00096 private:
00097
00098
00099
00100 Base_Attributes<char const *> attributes_;
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114 CORBA::TypeCode_ptr const * content_type_;
00115
00116 };
00117
00118 }
00119 }
00120
00121 TAO_END_VERSIONED_NAMESPACE_DECL
00122
00123
00124 #ifdef __ACE_INLINE__
00125 # include "tao/AnyTypeCode/Alias_TypeCode_Static.inl"
00126 #endif
00127
00128 #include "ace/post.h"
00129
00130 #endif