00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef TAO_OBJREF_TYPECODE_H
00023 #define TAO_OBJREF_TYPECODE_H
00024
00025 #include "ace/pre.h"
00026
00027 #include "tao/AnyTypeCode/TypeCode.h"
00028
00029 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00030 # pragma once
00031 #endif
00032
00033 #include "tao/AnyTypeCode/TypeCode_Base_Attributes.h"
00034
00035 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00036
00037 namespace TAO
00038 {
00039 namespace TypeCode
00040 {
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051 template <typename StringType, class RefCountPolicy>
00052 class Objref
00053 : public CORBA::TypeCode,
00054 private RefCountPolicy
00055 {
00056 public:
00057
00058
00059 Objref (CORBA::TCKind kind,
00060 char const * id,
00061 char const * name);
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072 virtual bool tao_marshal (TAO_OutputCDR & cdr,
00073 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
00090 virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc
00091 ) const;
00092 virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc
00093 ) const;
00094 virtual CORBA::TypeCode_ptr get_compact_typecode_i (
00095 void) const;
00096 virtual char const * id_i (void) const;
00097 virtual char const * name_i (void) const;
00098
00099 protected:
00100
00101
00102 Base_Attributes<StringType> attributes_;
00103
00104 };
00105
00106 }
00107 }
00108
00109 TAO_END_VERSIONED_NAMESPACE_DECL
00110
00111 #ifdef __ACE_INLINE__
00112 # include "tao/AnyTypeCode/Objref_TypeCode.inl"
00113 #endif
00114
00115 #ifdef ACE_TEMPLATES_REQUIRE_SOURCE
00116 # include "tao/AnyTypeCode/Objref_TypeCode.cpp"
00117 #endif
00118
00119 #ifdef ACE_TEMPLATES_REQUIRE_PRAGMA
00120 # pragma implementation ("Objref_TypeCode.cpp")
00121 #endif
00122
00123 #include "ace/post.h"
00124
00125 #endif