00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef TAO_FIXED_TYPECODE_H
00016 #define TAO_FIXED_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 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00027
00028 namespace TAO
00029 {
00030 namespace TypeCode
00031 {
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 template <class RefCountPolicy>
00043 class Fixed
00044 : public CORBA::TypeCode
00045 , private RefCountPolicy
00046 {
00047 public:
00048
00049
00050 Fixed (CORBA::UShort digits, CORBA::UShort scale);
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061 virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const;
00062 virtual void tao_duplicate (void);
00063 virtual void tao_release (void);
00064
00065
00066 protected:
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077 virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const;
00078 virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const;
00079 virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const;
00080 virtual CORBA::UShort fixed_digits_i (void) const;
00081 virtual CORBA::UShort fixed_scale_i (void) const;
00082
00083 private:
00084
00085
00086 CORBA::UShort const digits_;
00087
00088
00089 CORBA::UShort const scale_;
00090
00091 };
00092
00093 }
00094 }
00095
00096 TAO_END_VERSIONED_NAMESPACE_DECL
00097
00098
00099 #ifdef __ACE_INLINE__
00100 # include "tao/AnyTypeCode/Fixed_TypeCode.inl"
00101 #endif
00102
00103 #ifdef ACE_TEMPLATES_REQUIRE_SOURCE
00104 # include "tao/AnyTypeCode/Fixed_TypeCode.cpp"
00105 #endif
00106
00107 #ifdef ACE_TEMPLATES_REQUIRE_PRAGMA
00108 # pragma implementation ("Fixed_TypeCode.cpp")
00109 #endif
00110
00111
00112 #include "ace/post.h"
00113
00114 #endif