00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef TAO_TYPECODE_CASE_ENUM_T_H
00016 #define TAO_TYPECODE_CASE_ENUM_T_H
00017
00018 #include "ace/pre.h"
00019
00020 #include "ace/config-all.h"
00021
00022 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00023 # pragma once
00024 #endif
00025
00026 #include "tao/AnyTypeCode/TypeCode_Case_Base_T.h"
00027
00028 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00029
00030 namespace TAO
00031 {
00032 namespace TypeCode
00033 {
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 template <typename StringType,
00048 typename TypeCodeType>
00049 class Case_Enum_T : public Case<StringType, TypeCodeType>
00050 {
00051 public:
00052
00053
00054 Case_Enum_T (CORBA::TypeCode_ptr discriminator_tc,
00055 CORBA::ULong member_label,
00056 char const * member_name,
00057 TypeCodeType member_type);
00058
00059
00060
00061
00062
00063
00064 Case_Enum_T (CORBA::TypeCode_ptr discriminator_tc,
00065 CORBA::ULong member_label);
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076 Case<StringType, TypeCodeType> * clone (void) const;
00077 virtual CORBA::Any * label (void) const;
00078 virtual bool marshal_label (TAO_OutputCDR & cdr) const;
00079 virtual bool equal_label (CORBA::ULong index,
00080 CORBA::TypeCode_ptr tc
00081 ) const;
00082
00083
00084 private:
00085
00086
00087 ::CORBA::ULong const label_;
00088
00089
00090 CORBA::TypeCode_var discriminator_tc_;
00091 };
00092
00093 }
00094 }
00095
00096 TAO_END_VERSIONED_NAMESPACE_DECL
00097
00098
00099 #ifdef __ACE_INLINE__
00100 # include "tao/AnyTypeCode/TypeCode_Case_Enum_T.inl"
00101 #endif
00102
00103 #ifdef ACE_TEMPLATES_REQUIRE_SOURCE
00104 # include "tao/AnyTypeCode/TypeCode_Case_Enum_T.cpp"
00105 #endif
00106
00107 #ifdef ACE_TEMPLATES_REQUIRE_PRAGMA
00108 # pragma implementation ("TypeCode_Case_Enum_T.cpp")
00109 #endif
00110
00111 #include "ace/post.h"
00112
00113 #endif