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