16#ifndef __IcePatch2_FileInfo_h__
17#define __IcePatch2_FileInfo_h__
33#ifndef ICE_IGNORE_VERSION
34# if ICE_INT_VERSION / 100 != 307
35# error Ice version mismatch!
37# if ICE_INT_VERSION % 100 >= 50
38# error Beta header file detected
40# if ICE_INT_VERSION % 100 < 11
41# error Ice patch level mismatch!
46# if defined(ICE_STATIC_LIBS)
48# elif defined(ICEPATCH2_API_EXPORTS)
49# define ICEPATCH2_API ICE_DECLSPEC_EXPORT
51# define ICEPATCH2_API ICE_DECLSPEC_IMPORT
55#ifdef ICE_CPP11_MAPPING
87 std::tuple<const ::std::string&, const ::Ice::ByteSeq&, const int&, const bool&> ice_tuple()
const
89 return std::tie(path, checksum, size, executable);
96using FileInfoSeq = ::std::vector<FileInfo>;
125 std::tuple<const ::std::string&, const ::Ice::ByteSeq&, const long long int&, const bool&> ice_tuple()
const
127 return std::tie(path, checksum, size, executable);
134using LargeFileInfoSeq = ::std::vector<LargeFileInfo>;
137using Ice::operator<=;
139using Ice::operator>=;
140using Ice::operator==;
141using Ice::operator!=;
150struct StreamableTraits<::IcePatch2::FileInfo>
152 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
153 static const int minWireSize = 7;
154 static const bool fixedLength =
false;
158struct StreamReader<::IcePatch2::FileInfo, S>
160 static void read(S* istr, ::IcePatch2::FileInfo& v)
162 istr->readAll(v.path, v.checksum, v.size, v.executable);
167struct StreamableTraits<::IcePatch2::LargeFileInfo>
169 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
170 static const int minWireSize = 11;
171 static const bool fixedLength =
false;
175struct StreamReader<::IcePatch2::LargeFileInfo, S>
177 static void read(S* istr, ::IcePatch2::LargeFileInfo& v)
179 istr->readAll(v.path, v.checksum, v.size, v.executable);
218typedef ::std::vector<FileInfo> FileInfoSeq;
247typedef ::std::vector<LargeFileInfo> LargeFileInfoSeq;
256struct StreamableTraits< ::IcePatch2::FileInfo>
258 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
259 static const int minWireSize = 7;
260 static const bool fixedLength =
false;
264struct StreamWriter< ::IcePatch2::FileInfo, S>
266 static void write(S* ostr, const ::IcePatch2::FileInfo& v)
269 ostr->write(v.checksum);
271 ostr->write(v.executable);
276struct StreamReader< ::IcePatch2::FileInfo, S>
278 static void read(S* istr, ::IcePatch2::FileInfo& v)
281 istr->read(v.checksum);
283 istr->read(v.executable);
288struct StreamableTraits< ::IcePatch2::LargeFileInfo>
290 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
291 static const int minWireSize = 11;
292 static const bool fixedLength =
false;
296struct StreamWriter< ::IcePatch2::LargeFileInfo, S>
298 static void write(S* ostr, const ::IcePatch2::LargeFileInfo& v)
301 ostr->write(v.checksum);
303 ostr->write(v.executable);
308struct StreamReader< ::IcePatch2::LargeFileInfo, S>
310 static void read(S* istr, ::IcePatch2::LargeFileInfo& v)
313 istr->read(v.checksum);
315 istr->read(v.executable);
Definition BuiltinSequences.h:113
int Int
The mapping for the Slice int type.
Definition Config.h:54
IceUtil::Int64 Long
The mapping for the Slice long type.
Definition Config.h:60
::std::vector< Byte > ByteSeq
A sequence of bytes.
Definition BuiltinSequences.h:123