00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef COH_OCTET_HPP
00017 #define COH_OCTET_HPP
00018
00019 #include "coherence/lang/compatibility.hpp"
00020
00021 #include "coherence/lang/Primitive.hpp"
00022 #include "coherence/lang/TypedHandle.hpp"
00023
00024 COH_OPEN_NAMESPACE2(coherence,lang)
00025
00026
00027
00028
00029
00030
00031
00032 class COH_EXPORT Octet
00033 : public cloneable_spec<Octet,
00034 extends<Primitive<octet_t> >,
00035 implements<Comparable> >
00036 {
00037 friend class factory<Octet>;
00038
00039
00040
00041 private:
00042
00043
00044
00045
00046
00047
00048
00049 Octet(octet_t b);
00050
00051
00052
00053
00054 Octet(const Octet& that);
00055
00056
00057
00058
00059 public:
00060
00061
00062
00063 virtual int32_t compareTo(Object::View v) const;
00064
00065
00066
00067
00068 public:
00069
00070
00071
00072
00073
00074
00075
00076
00077 static Handle valueOf(octet_t b);
00078
00079
00080
00081
00082 public:
00083
00084
00085
00086 static const octet_t MIN_VALUE = 0x0;
00087
00088
00089
00090
00091 static const octet_t MAX_VALUE = 0xFF;
00092 };
00093
00094 COH_CLOSE_NAMESPACE2
00095
00096 #endif // COH_OCTET_HPP
Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.