Ice 3.7 C++11 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
71 std::tuple<const ::Ice::Byte&, const ::Ice::Byte&>
ice_tuple()
const
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
155 struct ProtocolVersion
160 bool operator==(
const ProtocolVersion& rhs_)
const
166 if(
major != rhs_.major)
170 if(
minor != rhs_.minor)
177 bool operator<(
const ProtocolVersion& rhs_)
const
183 if(
major < rhs_.major)
187 else if(rhs_.major <
major)
191 if(
minor < rhs_.minor)
195 else if(rhs_.minor <
minor)
202 bool operator!=(
const ProtocolVersion& rhs_)
const
206 bool operator<=(
const ProtocolVersion& rhs_)
const
210 bool operator>(
const ProtocolVersion& rhs_)
const
214 bool operator>=(
const ProtocolVersion& rhs_)
const
224 struct EncodingVersion
229 bool operator==(
const EncodingVersion& rhs_)
const
235 if(
major != rhs_.major)
239 if(
minor != rhs_.minor)
246 bool operator<(
const EncodingVersion& rhs_)
const
252 if(
major < rhs_.major)
256 else if(rhs_.major <
major)
260 if(
minor < rhs_.minor)
264 else if(rhs_.minor <
minor)
271 bool operator!=(
const EncodingVersion& rhs_)
const
275 bool operator<=(
const EncodingVersion& rhs_)
const
279 bool operator>(
const EncodingVersion& rhs_)
const
283 bool operator>=(
const EncodingVersion& rhs_)
const
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 C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:196
::Ice::Byte major
Definition: Version.h:83
::Ice::Byte major
Definition: Version.h:64
bool operator==(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:184
::Ice::Byte minor
Definition: Version.h:84
std::tuple< const ::Ice::Byte &, const ::Ice::Byte & > ice_tuple() const
Obtains a tuple containing all of the struct's data members.
Definition: Version.h:90
A version structure for the encoding version.
Definition: Version.h:82
bool operator<=(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:148
unsigned char Byte
The mapping for the Slice byte type.
Definition: Config.h:50
std::tuple< const ::Ice::Byte &, const ::Ice::Byte & > ice_tuple() const
Obtains a tuple containing all of the struct's data members.
Definition: Version.h:71
bool operator>=(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:172
::Ice::Byte minor
Definition: Version.h:65
bool operator<(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:136
bool operator>(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:160
Definition: BuiltinSequences.h:56
A version structure for the protocol version.
Definition: Version.h:63