Ice 3.7 C++98 API Reference
|
Go to the documentation of this file.
16 #ifndef __Ice_Version_h__
17 #define __Ice_Version_h__
31 #ifndef ICE_IGNORE_VERSION
32 # if ICE_INT_VERSION / 100 != 307
33 # error Ice version mismatch!
35 # if ICE_INT_VERSION % 100 >= 50
36 # error Beta header file detected
38 # if ICE_INT_VERSION % 100 < 10
39 # error Ice patch level mismatch!
44 # if defined(ICE_STATIC_LIBS)
46 # elif defined(ICE_API_EXPORTS)
47 # define ICE_API ICE_DECLSPEC_EXPORT
49 # define ICE_API ICE_DECLSPEC_IMPORT
53 #ifdef ICE_CPP11_MAPPING // C++11 mapping
62 struct ProtocolVersion
71 std::tuple<const ::Ice::Byte&, const ::Ice::Byte&> ice_tuple()
const
81 struct EncodingVersion
90 std::tuple<const ::Ice::Byte&, const ::Ice::Byte&> ice_tuple()
const
97 using Ice::operator<=;
99 using Ice::operator>=;
100 using Ice::operator==;
101 using Ice::operator!=;
112 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
113 static const int minWireSize = 2;
114 static const bool fixedLength =
true;
129 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
130 static const int minWireSize = 2;
131 static const bool fixedLength =
true;
146 #else // C++98 mapping
166 if(
major != rhs_.major)
170 if(
minor != rhs_.minor)
183 if(
major < rhs_.major)
187 else if(rhs_.major <
major)
191 if(
minor < rhs_.minor)
195 else if(rhs_.minor <
minor)
235 if(
major != rhs_.major)
239 if(
minor != rhs_.minor)
252 if(
major < rhs_.major)
256 else if(rhs_.major <
major)
260 if(
minor < rhs_.minor)
264 else if(rhs_.minor <
minor)
298 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
299 static const int minWireSize = 2;
300 static const bool fixedLength =
true;
306 static void write(S* ostr, const ::Ice::ProtocolVersion& v)
308 ostr->write(v.major);
309 ostr->write(v.minor);
326 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
327 static const int minWireSize = 2;
328 static const bool fixedLength =
true;
334 static void write(S* ostr, const ::Ice::EncodingVersion& v)
336 ostr->write(v.major);
337 ostr->write(v.minor);
bool operator<=(const EncodingVersion &rhs_) const
Definition: Version.h:275
::Ice::Byte major
Definition: Version.h:226
bool operator==(const EncodingVersion &rhs_) const
Definition: Version.h:229
bool operator==(const ProtocolVersion &rhs_) const
Definition: Version.h:160
bool operator>(const EncodingVersion &rhs_) const
Definition: Version.h:279
::Ice::Byte major
Definition: Version.h:157
::Ice::Byte minor
Definition: Version.h:227
A version structure for the encoding version.
Definition: Version.h:225
unsigned char Byte
The mapping for the Slice byte type.
Definition: Config.h:50
bool operator>=(const EncodingVersion &rhs_) const
Definition: Version.h:283
::Ice::Byte minor
Definition: Version.h:158
bool operator<=(const ProtocolVersion &rhs_) const
Definition: Version.h:206
bool operator<(const ProtocolVersion &rhs_) const
Definition: Version.h:177
bool operator<(const EncodingVersion &rhs_) const
Definition: Version.h:246
Definition: BuiltinSequences.h:113
bool operator!=(const EncodingVersion &rhs_) const
Definition: Version.h:271
bool operator>=(const ProtocolVersion &rhs_) const
Definition: Version.h:214
bool operator>(const ProtocolVersion &rhs_) const
Definition: Version.h:210
A version structure for the protocol version.
Definition: Version.h:156
bool operator!=(const ProtocolVersion &rhs_) const
Definition: Version.h:202