Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef TAO_ENUM_TYPECODE_STATIC_H
00016 #define TAO_ENUM_TYPECODE_STATIC_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 #include "tao/AnyTypeCode/TypeCode_Base_Attributes.h"
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 StringType,
00036 class EnumeratorArrayType,
00037 class RefCountPolicy> class Enum;
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048 template<>
00049 class TAO_AnyTypeCode_Export Enum<char const *,
00050 char const * const *,
00051 TAO::Null_RefCount_Policy>
00052 : public CORBA::TypeCode,
00053 private TAO::Null_RefCount_Policy
00054 {
00055 public:
00056
00057
00058 Enum (char const * id,
00059 char const * name,
00060 char const * const * enumerators,
00061 CORBA::ULong nenumerators);
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 virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const;
00089 virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const;
00090 virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const;
00091 virtual char const * id_i (void) const;
00092 virtual char const * name_i (void) const;
00093 virtual CORBA::ULong member_count_i (void) const;
00094 virtual char const * member_name_i (CORBA::ULong index) const;
00095
00096
00097 private:
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113 Base_Attributes<char const *> base_attributes_;
00114
00115
00116 CORBA::ULong const nenumerators_;
00117
00118
00119
00120 char const * const * const enumerators_;
00121
00122 };
00123
00124 }
00125 }
00126
00127 TAO_END_VERSIONED_NAMESPACE_DECL
00128
00129 #ifdef __ACE_INLINE__
00130 # include "tao/AnyTypeCode/Enum_TypeCode_Static.inl"
00131 #endif
00132
00133 #include "ace/post.h"
00134
00135 #endif