00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TAO_SEQUENCE_TYPECODE_STATIC_H
00017 #define TAO_SEQUENCE_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/Null_RefCount_Policy.h"
00028
00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00030
00031 namespace TAO
00032 {
00033 namespace TypeCode
00034 {
00035 template <typename TypeCodeType, class RefCountPolicy> class Sequence;
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 template<>
00047 class TAO_AnyTypeCode_Export Sequence<CORBA::TypeCode_ptr const *,
00048 TAO::Null_RefCount_Policy>
00049 : public CORBA::TypeCode
00050 , private TAO::Null_RefCount_Policy
00051 {
00052 public:
00053
00054
00055 Sequence (CORBA::TCKind kind,
00056 CORBA::TypeCode_ptr const * content_type,
00057 CORBA::ULong length);
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068 virtual bool tao_marshal (TAO_OutputCDR & cdr,
00069 CORBA::ULong offset) const;
00070 virtual void tao_duplicate (void);
00071 virtual void tao_release (void);
00072
00073
00074 protected:
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085 virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc
00086 ) const;
00087 virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc
00088 ) const;
00089 virtual CORBA::TypeCode_ptr get_compact_typecode_i (
00090 void) const;
00091 virtual CORBA::ULong length_i (void) const;
00092 virtual CORBA::TypeCode_ptr content_type_i (
00093 void) const;
00094
00095 private:
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108 CORBA::TypeCode_ptr const * const content_type_;
00109
00110
00111
00112 CORBA::ULong const length_;
00113
00114 };
00115
00116 }
00117 }
00118
00119 TAO_END_VERSIONED_NAMESPACE_DECL
00120
00121 #ifdef __ACE_INLINE__
00122 # include "tao/AnyTypeCode/Sequence_TypeCode_Static.inl"
00123 #endif
00124
00125 #include "ace/post.h"
00126
00127 #endif