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