00001 #ifndef PROTON_DECIMAL_HPP
00002 #define PROTON_DECIMAL_HPP
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "./byte_array.hpp"
00026 #include "./internal/export.hpp"
00027 #include "./internal/comparable.hpp"
00028
00029 #include <proton/types.h>
00030
00031 #include <iosfwd>
00032
00033 namespace proton {
00034
00046
00048 class decimal32 : public byte_array<4> {};
00049
00051 class decimal64 : public byte_array<8> {};
00052
00054 class decimal128 : public byte_array<16> {};
00056
00059 PN_CPP_EXTERN std::ostream& operator<<(std::ostream&, const decimal32&);
00060 PN_CPP_EXTERN std::ostream& operator<<(std::ostream&, const decimal64&);
00061 PN_CPP_EXTERN std::ostream& operator<<(std::ostream&, const decimal128&);
00063
00064 }
00065
00066 #endif // PROTON_DECIMAL_HPP