Ice 3.7 C++98 API Reference
Loading...
Searching...
No Matches
FileServer.h
Go to the documentation of this file.
1//
2// Copyright (c) ZeroC, Inc. All rights reserved.
3//
4//
5// Ice version 3.7.11
6//
7// <auto-generated>
8//
9// Generated from file `FileServer.ice'
10//
11// Warning: do not edit this file.
12//
13// </auto-generated>
14//
15
16#ifndef __IcePatch2_FileServer_h__
17#define __IcePatch2_FileServer_h__
18
20#include <Ice/ProxyF.h>
21#include <Ice/ObjectF.h>
22#include <Ice/ValueF.h>
23#include <Ice/Exception.h>
24#include <Ice/LocalObject.h>
25#include <Ice/StreamHelpers.h>
26#include <Ice/Comparable.h>
27#include <Ice/Proxy.h>
28#include <Ice/Object.h>
29#include <Ice/GCObject.h>
30#include <Ice/Value.h>
31#include <Ice/Incoming.h>
32#include <Ice/IncomingAsync.h>
34#include <IceUtil/ScopedArray.h>
35#include <Ice/Optional.h>
37#include <IcePatch2/FileInfo.h>
39#include <IcePatch2/Config.h>
40
41#ifndef ICE_IGNORE_VERSION
42# if ICE_INT_VERSION / 100 != 307
43# error Ice version mismatch!
44# endif
45# if ICE_INT_VERSION % 100 >= 50
46# error Beta header file detected
47# endif
48# if ICE_INT_VERSION % 100 < 11
49# error Ice patch level mismatch!
50# endif
51#endif
52
53#ifndef ICEPATCH2_API
54# if defined(ICE_STATIC_LIBS)
55# define ICEPATCH2_API /**/
56# elif defined(ICEPATCH2_API_EXPORTS)
57# define ICEPATCH2_API ICE_DECLSPEC_EXPORT
58# else
59# define ICEPATCH2_API ICE_DECLSPEC_IMPORT
60# endif
61#endif
62
63#ifdef ICE_CPP11_MAPPING // C++11 mapping
64
65namespace IcePatch2
66{
67
68class FileServer;
69class FileServerPrx;
70
71}
72
73namespace IcePatch2
74{
75
80using ByteSeqSeq = ::std::vector<::Ice::ByteSeq>;
81
86class ICE_CLASS(ICEPATCH2_API) PartitionOutOfRangeException : public ::Ice::UserExceptionHelper<PartitionOutOfRangeException, ::Ice::UserException>
87{
88public:
89
90 ICE_MEMBER(ICEPATCH2_API) virtual ~PartitionOutOfRangeException();
91
92 PartitionOutOfRangeException(const PartitionOutOfRangeException&) = default;
93
94 PartitionOutOfRangeException() = default;
95
100 std::tuple<> ice_tuple() const
101 {
102 return std::tie();
103 }
104
109 ICE_MEMBER(ICEPATCH2_API) static const ::std::string& ice_staticId();
110};
111
113static PartitionOutOfRangeException _iceS_PartitionOutOfRangeException_init;
115
120class ICE_CLASS(ICEPATCH2_API) FileAccessException : public ::Ice::UserExceptionHelper<FileAccessException, ::Ice::UserException>
121{
122public:
123
124 ICE_MEMBER(ICEPATCH2_API) virtual ~FileAccessException();
125
126 FileAccessException(const FileAccessException&) = default;
127
128 FileAccessException() = default;
129
134 FileAccessException(const ::std::string& reason) :
135 reason(reason)
136 {
137 }
138
143 std::tuple<const ::std::string&> ice_tuple() const
144 {
145 return std::tie(reason);
146 }
147
152 ICE_MEMBER(ICEPATCH2_API) static const ::std::string& ice_staticId();
153
157 ::std::string reason;
158};
159
165class ICE_CLASS(ICEPATCH2_API) FileSizeRangeException : public ::Ice::UserExceptionHelper<FileSizeRangeException, FileAccessException>
166{
167public:
168
169 ICE_MEMBER(ICEPATCH2_API) virtual ~FileSizeRangeException();
170
171 FileSizeRangeException(const FileSizeRangeException&) = default;
172
173 FileSizeRangeException() = default;
174
179 FileSizeRangeException(const ::std::string& reason) :
180 ::Ice::UserExceptionHelper<FileSizeRangeException, FileAccessException>(reason)
181 {
182 }
183
188 std::tuple<const ::std::string&> ice_tuple() const
189 {
190 return std::tie(reason);
191 }
192
197 ICE_MEMBER(ICEPATCH2_API) static const ::std::string& ice_staticId();
198};
199
200}
201
202namespace IcePatch2
203{
204
209class ICEPATCH2_API FileServer : public virtual ::Ice::Object
210{
211public:
212
213 using ProxyType = FileServerPrx;
214
221 virtual bool ice_isA(::std::string id, const ::Ice::Current& current) const override;
222
228 virtual ::std::vector<::std::string> ice_ids(const ::Ice::Current& current) const override;
229
235 virtual ::std::string ice_id(const ::Ice::Current& current) const override;
236
241 static const ::std::string& ice_staticId();
242
257 ICE_DEPRECATED_API("getFileInfoSeq() is deprecated, use getLargeFileInfoSeq() instead.") virtual FileInfoSeq getFileInfoSeq(int partition, const ::Ice::Current& current) const = 0;
259 bool _iceD_getFileInfoSeq(::IceInternal::Incoming&, const ::Ice::Current&) const;
261
270 virtual LargeFileInfoSeq getLargeFileInfoSeq(int partition, const ::Ice::Current& current) const = 0;
272 bool _iceD_getLargeFileInfoSeq(::IceInternal::Incoming&, const ::Ice::Current&) const;
274
284 virtual ByteSeqSeq getChecksumSeq(const ::Ice::Current& current) const = 0;
286 bool _iceD_getChecksumSeq(::IceInternal::Incoming&, const ::Ice::Current&) const;
288
295 virtual ::Ice::ByteSeq getChecksum(const ::Ice::Current& current) const = 0;
297 bool _iceD_getChecksum(::IceInternal::Incoming&, const ::Ice::Current&) const;
299
318 ICE_DEPRECATED_API("getFileCompressed() is deprecated, use getLargeFileCompressed() instead.") virtual void getFileCompressedAsync(::std::string path, int pos, int num, ::std::function<void(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& returnValue)> response, ::std::function<void(::std::exception_ptr)> exception, const ::Ice::Current& current) const = 0;
320 bool _iceD_getFileCompressed(::IceInternal::Incoming&, const ::Ice::Current&) const;
322
335 virtual void getLargeFileCompressedAsync(::std::string path, long long int pos, int num, ::std::function<void(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& returnValue)> response, ::std::function<void(::std::exception_ptr)> exception, const ::Ice::Current& current) const = 0;
337 bool _iceD_getLargeFileCompressed(::IceInternal::Incoming&, const ::Ice::Current&) const;
339
341 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&) override;
343};
344
345}
346
347namespace IcePatch2
348{
349
354class ICE_CLASS(ICEPATCH2_API) FileServerPrx : public virtual ::Ice::Proxy<FileServerPrx, ::Ice::ObjectPrx>
355{
356public:
357
372 ICE_DEPRECATED_API("getFileInfoSeq() is deprecated, use getLargeFileInfoSeq() instead.") FileInfoSeq getFileInfoSeq(int partition, const ::Ice::Context& context = ::Ice::noExplicitContext)
373 {
374 return _makePromiseOutgoing<::IcePatch2::FileInfoSeq>(true, this, &FileServerPrx::_iceI_getFileInfoSeq, partition, context).get();
375 }
376
388 template<template<typename> class P = ::std::promise>
389 ICE_DEPRECATED_API("getFileInfoSeq() is deprecated, use getLargeFileInfoSeq() instead.") auto getFileInfoSeqAsync(int partition, const ::Ice::Context& context = ::Ice::noExplicitContext)
390 -> decltype(::std::declval<P<::IcePatch2::FileInfoSeq>>().get_future())
391 {
392 return _makePromiseOutgoing<::IcePatch2::FileInfoSeq, P>(false, this, &FileServerPrx::_iceI_getFileInfoSeq, partition, context);
393 }
394
409 ::std::function<void()>
410 getFileInfoSeqAsync(int partition,
411 ::std::function<void(::IcePatch2::FileInfoSeq)> response,
412 ::std::function<void(::std::exception_ptr)> ex = nullptr,
413 ::std::function<void(bool)> sent = nullptr,
414 const ::Ice::Context& context = ::Ice::noExplicitContext)
415 {
416 return _makeLambdaOutgoing<::IcePatch2::FileInfoSeq>(std::move(response), std::move(ex), std::move(sent), this, &IcePatch2::FileServerPrx::_iceI_getFileInfoSeq, partition, context);
417 }
418
420 ICE_MEMBER(ICEPATCH2_API) void _iceI_getFileInfoSeq(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::IcePatch2::FileInfoSeq>>&, int, const ::Ice::Context&);
422
431 LargeFileInfoSeq getLargeFileInfoSeq(int partition, const ::Ice::Context& context = ::Ice::noExplicitContext)
432 {
433 return _makePromiseOutgoing<::IcePatch2::LargeFileInfoSeq>(true, this, &FileServerPrx::_iceI_getLargeFileInfoSeq, partition, context).get();
434 }
435
442 template<template<typename> class P = ::std::promise>
443 auto getLargeFileInfoSeqAsync(int partition, const ::Ice::Context& context = ::Ice::noExplicitContext)
444 -> decltype(::std::declval<P<::IcePatch2::LargeFileInfoSeq>>().get_future())
445 {
446 return _makePromiseOutgoing<::IcePatch2::LargeFileInfoSeq, P>(false, this, &FileServerPrx::_iceI_getLargeFileInfoSeq, partition, context);
447 }
448
458 ::std::function<void()>
459 getLargeFileInfoSeqAsync(int partition,
460 ::std::function<void(::IcePatch2::LargeFileInfoSeq)> response,
461 ::std::function<void(::std::exception_ptr)> ex = nullptr,
462 ::std::function<void(bool)> sent = nullptr,
463 const ::Ice::Context& context = ::Ice::noExplicitContext)
464 {
465 return _makeLambdaOutgoing<::IcePatch2::LargeFileInfoSeq>(std::move(response), std::move(ex), std::move(sent), this, &IcePatch2::FileServerPrx::_iceI_getLargeFileInfoSeq, partition, context);
466 }
467
469 ICE_MEMBER(ICEPATCH2_API) void _iceI_getLargeFileInfoSeq(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::IcePatch2::LargeFileInfoSeq>>&, int, const ::Ice::Context&);
471
481 ByteSeqSeq getChecksumSeq(const ::Ice::Context& context = ::Ice::noExplicitContext)
482 {
483 return _makePromiseOutgoing<::IcePatch2::ByteSeqSeq>(true, this, &FileServerPrx::_iceI_getChecksumSeq, context).get();
484 }
485
491 template<template<typename> class P = ::std::promise>
492 auto getChecksumSeqAsync(const ::Ice::Context& context = ::Ice::noExplicitContext)
493 -> decltype(::std::declval<P<::IcePatch2::ByteSeqSeq>>().get_future())
494 {
495 return _makePromiseOutgoing<::IcePatch2::ByteSeqSeq, P>(false, this, &FileServerPrx::_iceI_getChecksumSeq, context);
496 }
497
506 ::std::function<void()>
507 getChecksumSeqAsync(::std::function<void(::IcePatch2::ByteSeqSeq)> response,
508 ::std::function<void(::std::exception_ptr)> ex = nullptr,
509 ::std::function<void(bool)> sent = nullptr,
510 const ::Ice::Context& context = ::Ice::noExplicitContext)
511 {
512 return _makeLambdaOutgoing<::IcePatch2::ByteSeqSeq>(std::move(response), std::move(ex), std::move(sent), this, &IcePatch2::FileServerPrx::_iceI_getChecksumSeq, context);
513 }
514
516 ICE_MEMBER(ICEPATCH2_API) void _iceI_getChecksumSeq(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::IcePatch2::ByteSeqSeq>>&, const ::Ice::Context&);
518
525 ::Ice::ByteSeq getChecksum(const ::Ice::Context& context = ::Ice::noExplicitContext)
526 {
527 return _makePromiseOutgoing<::Ice::ByteSeq>(true, this, &FileServerPrx::_iceI_getChecksum, context).get();
528 }
529
536 template<template<typename> class P = ::std::promise>
537 auto getChecksumAsync(const ::Ice::Context& context = ::Ice::noExplicitContext)
538 -> decltype(::std::declval<P<::Ice::ByteSeq>>().get_future())
539 {
540 return _makePromiseOutgoing<::Ice::ByteSeq, P>(false, this, &FileServerPrx::_iceI_getChecksum, context);
541 }
542
552 ::std::function<void()>
553 getChecksumAsync(::std::function<void(::Ice::ByteSeq)> response,
554 ::std::function<void(::std::exception_ptr)> ex = nullptr,
555 ::std::function<void(bool)> sent = nullptr,
556 const ::Ice::Context& context = ::Ice::noExplicitContext)
557 {
558 return _makeLambdaOutgoing<::Ice::ByteSeq>(std::move(response), std::move(ex), std::move(sent), this, &IcePatch2::FileServerPrx::_iceI_getChecksum, context);
559 }
560
562 ICE_MEMBER(ICEPATCH2_API) void _iceI_getChecksum(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::Ice::ByteSeq>>&, const ::Ice::Context&);
564
582 ICE_DEPRECATED_API("getFileCompressed() is deprecated, use getLargeFileCompressed() instead.") ::Ice::ByteSeq getFileCompressed(const ::std::string& path, int pos, int num, const ::Ice::Context& context = ::Ice::noExplicitContext)
583 {
584 return _makePromiseOutgoing<::Ice::ByteSeq>(true, this, &FileServerPrx::_iceI_getFileCompressed, path, pos, num, context).get();
585 }
586
602 template<template<typename> class P = ::std::promise>
603 ICE_DEPRECATED_API("getFileCompressed() is deprecated, use getLargeFileCompressed() instead.") auto getFileCompressedAsync(const ::std::string& path, int pos, int num, const ::Ice::Context& context = ::Ice::noExplicitContext)
604 -> decltype(::std::declval<P<::Ice::ByteSeq>>().get_future())
605 {
606 return _makePromiseOutgoing<::Ice::ByteSeq, P>(false, this, &FileServerPrx::_iceI_getFileCompressed, path, pos, num, context);
607 }
608
627 ICE_MEMBER(ICEPATCH2_API) ::std::function<void()>
628 getFileCompressedAsync(const ::std::string& path, int pos, int num,
629 ::std::function<void(::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>)> response,
630 ::std::function<void(::std::exception_ptr)> ex = nullptr,
631 ::std::function<void(bool)> sent = nullptr,
632 const ::Ice::Context& context = ::Ice::noExplicitContext);
633
635 ICE_MEMBER(ICEPATCH2_API) void _iceI_getFileCompressed(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::Ice::ByteSeq>>&, const ::std::string&, int, int, const ::Ice::Context&);
637
649 ::Ice::ByteSeq getLargeFileCompressed(const ::std::string& path, long long int pos, int num, const ::Ice::Context& context = ::Ice::noExplicitContext)
650 {
651 return _makePromiseOutgoing<::Ice::ByteSeq>(true, this, &FileServerPrx::_iceI_getLargeFileCompressed, path, pos, num, context).get();
652 }
653
664 template<template<typename> class P = ::std::promise>
665 auto getLargeFileCompressedAsync(const ::std::string& path, long long int pos, int num, const ::Ice::Context& context = ::Ice::noExplicitContext)
666 -> decltype(::std::declval<P<::Ice::ByteSeq>>().get_future())
667 {
668 return _makePromiseOutgoing<::Ice::ByteSeq, P>(false, this, &FileServerPrx::_iceI_getLargeFileCompressed, path, pos, num, context);
669 }
670
684 ICE_MEMBER(ICEPATCH2_API) ::std::function<void()>
685 getLargeFileCompressedAsync(const ::std::string& path, long long int pos, int num,
686 ::std::function<void(::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>)> response,
687 ::std::function<void(::std::exception_ptr)> ex = nullptr,
688 ::std::function<void(bool)> sent = nullptr,
689 const ::Ice::Context& context = ::Ice::noExplicitContext);
690
692 ICE_MEMBER(ICEPATCH2_API) void _iceI_getLargeFileCompressed(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::Ice::ByteSeq>>&, const ::std::string&, long long int, int, const ::Ice::Context&);
694
699 ICE_MEMBER(ICEPATCH2_API) static const ::std::string& ice_staticId();
700
701protected:
702
704 FileServerPrx() = default;
705 friend ::std::shared_ptr<FileServerPrx> IceInternal::createProxy<FileServerPrx>();
706
707 ICE_MEMBER(ICEPATCH2_API) virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance() const override;
709};
710
711}
712
714namespace Ice
715{
716
717template<typename S>
718struct StreamReader<::IcePatch2::FileAccessException, S>
719{
720 static void read(S* istr, ::IcePatch2::FileAccessException& v)
721 {
722 istr->readAll(v.reason);
723 }
724};
725
726template<typename S>
727struct StreamWriter<::IcePatch2::FileSizeRangeException, S>
728{
729 static void write(S*, const ::IcePatch2::FileSizeRangeException&)
730 {
731 }
732};
733
734template<typename S>
735struct StreamReader<::IcePatch2::FileSizeRangeException, S>
736{
737 static void read(S*, ::IcePatch2::FileSizeRangeException&)
738 {
739 }
740};
741
742}
744
746namespace IcePatch2
747{
748
749using FileServerPtr = ::std::shared_ptr<FileServer>;
750using FileServerPrxPtr = ::std::shared_ptr<FileServerPrx>;
751
752}
754
755#else // C++98 mapping
756
757namespace IceProxy
758{
759
760namespace IcePatch2
761{
762
763class FileServer;
765ICEPATCH2_API void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< FileServer>&);
766ICEPATCH2_API ::IceProxy::Ice::Object* upCast(FileServer*);
768
769}
770
771}
772
773namespace IcePatch2
774{
775
776class FileServer;
778ICEPATCH2_API ::Ice::Object* upCast(FileServer*);
780typedef ::IceInternal::Handle< FileServer> FileServerPtr;
781typedef ::IceInternal::ProxyHandle< ::IceProxy::IcePatch2::FileServer> FileServerPrx;
782typedef FileServerPrx FileServerPrxPtr;
784ICEPATCH2_API void _icePatchObjectPtr(FileServerPtr&, const ::Ice::ObjectPtr&);
786
787}
788
789namespace IcePatch2
790{
791
796typedef ::std::vector< ::Ice::ByteSeq> ByteSeqSeq;
797
802class ICEPATCH2_API PartitionOutOfRangeException : public ::Ice::UserException
803{
804public:
805
806 PartitionOutOfRangeException() {}
807
808#ifdef ICE_CPP11_COMPILER
809 PartitionOutOfRangeException(const PartitionOutOfRangeException&) = default;
810 virtual ~PartitionOutOfRangeException();
811#else
812 virtual ~PartitionOutOfRangeException() throw();
813#endif
814
819 virtual ::std::string ice_id() const;
824 virtual PartitionOutOfRangeException* ice_clone() const;
828 virtual void ice_throw() const;
829
830protected:
831
833 virtual void _writeImpl(::Ice::OutputStream*) const;
834 virtual void _readImpl(::Ice::InputStream*);
836};
837
839static PartitionOutOfRangeException _iceS_PartitionOutOfRangeException_init;
841
846class ICEPATCH2_API FileAccessException : public ::Ice::UserException
847{
848public:
849
850 FileAccessException() {}
855 explicit FileAccessException(const ::std::string& reason);
856
857#ifdef ICE_CPP11_COMPILER
858 FileAccessException(const FileAccessException&) = default;
859 virtual ~FileAccessException();
860#else
861 virtual ~FileAccessException() throw();
862#endif
863
868 virtual ::std::string ice_id() const;
873 virtual FileAccessException* ice_clone() const;
877 virtual void ice_throw() const;
878
882 ::std::string reason;
883
884protected:
885
887 virtual void _writeImpl(::Ice::OutputStream*) const;
888 virtual void _readImpl(::Ice::InputStream*);
890};
891
897class ICEPATCH2_API FileSizeRangeException : public FileAccessException
898{
899public:
900
901 FileSizeRangeException() {}
906 explicit FileSizeRangeException(const ::std::string& reason);
907
908#ifdef ICE_CPP11_COMPILER
909 FileSizeRangeException(const FileSizeRangeException&) = default;
910 virtual ~FileSizeRangeException();
911#else
912 virtual ~FileSizeRangeException() throw();
913#endif
914
919 virtual ::std::string ice_id() const;
924 virtual FileSizeRangeException* ice_clone() const;
928 virtual void ice_throw() const;
929
930protected:
931
933 virtual void _writeImpl(::Ice::OutputStream*) const;
934 virtual void _readImpl(::Ice::InputStream*);
936};
937
938}
939
940namespace IcePatch2
941{
942
948class ICEPATCH2_API AMD_FileServer_getFileCompressed : public virtual ::Ice::AMDCallback
949{
950public:
951
952 virtual ~AMD_FileServer_getFileCompressed();
953
958 virtual void ice_response(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& result) = 0;
959};
960
961typedef ::IceUtil::Handle< ::IcePatch2::AMD_FileServer_getFileCompressed> AMD_FileServer_getFileCompressedPtr;
962
968class ICEPATCH2_API AMD_FileServer_getLargeFileCompressed : public virtual ::Ice::AMDCallback
969{
970public:
971
972 virtual ~AMD_FileServer_getLargeFileCompressed();
973
978 virtual void ice_response(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& result) = 0;
979};
980
981typedef ::IceUtil::Handle< ::IcePatch2::AMD_FileServer_getLargeFileCompressed> AMD_FileServer_getLargeFileCompressedPtr;
982
983}
984
986namespace IceAsync
987{
988
989namespace IcePatch2
990{
991
992#if defined(_MSC_VER) && (_MSC_VER >= 1900)
993# pragma warning(push)
994# pragma warning(disable:4239)
995#endif
996
997class ICEPATCH2_API AMD_FileServer_getFileCompressed : public ::IcePatch2::AMD_FileServer_getFileCompressed, public ::IceInternal::IncomingAsync
998{
999public:
1000
1001 AMD_FileServer_getFileCompressed(::IceInternal::Incoming&);
1002
1003 virtual void ice_response(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&);
1004};
1005
1006#if defined(_MSC_VER) && (_MSC_VER >= 1900)
1007# pragma warning(pop)
1008#endif
1009
1010#if defined(_MSC_VER) && (_MSC_VER >= 1900)
1011# pragma warning(push)
1012# pragma warning(disable:4239)
1013#endif
1014
1015class ICEPATCH2_API AMD_FileServer_getLargeFileCompressed : public ::IcePatch2::AMD_FileServer_getLargeFileCompressed, public ::IceInternal::IncomingAsync
1016{
1017public:
1018
1019 AMD_FileServer_getLargeFileCompressed(::IceInternal::Incoming&);
1020
1021 virtual void ice_response(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&);
1022};
1023
1024#if defined(_MSC_VER) && (_MSC_VER >= 1900)
1025# pragma warning(pop)
1026#endif
1027
1028}
1029
1030}
1032
1033namespace IcePatch2
1034{
1035
1041class Callback_FileServer_getFileInfoSeq_Base : public virtual ::IceInternal::CallbackBase { };
1042typedef ::IceUtil::Handle< Callback_FileServer_getFileInfoSeq_Base> Callback_FileServer_getFileInfoSeqPtr;
1043
1049class Callback_FileServer_getLargeFileInfoSeq_Base : public virtual ::IceInternal::CallbackBase { };
1050typedef ::IceUtil::Handle< Callback_FileServer_getLargeFileInfoSeq_Base> Callback_FileServer_getLargeFileInfoSeqPtr;
1051
1057class Callback_FileServer_getChecksumSeq_Base : public virtual ::IceInternal::CallbackBase { };
1058typedef ::IceUtil::Handle< Callback_FileServer_getChecksumSeq_Base> Callback_FileServer_getChecksumSeqPtr;
1059
1065class Callback_FileServer_getChecksum_Base : public virtual ::IceInternal::CallbackBase { };
1066typedef ::IceUtil::Handle< Callback_FileServer_getChecksum_Base> Callback_FileServer_getChecksumPtr;
1067
1073class Callback_FileServer_getFileCompressed_Base : public virtual ::IceInternal::CallbackBase { };
1074typedef ::IceUtil::Handle< Callback_FileServer_getFileCompressed_Base> Callback_FileServer_getFileCompressedPtr;
1075
1081class Callback_FileServer_getLargeFileCompressed_Base : public virtual ::IceInternal::CallbackBase { };
1082typedef ::IceUtil::Handle< Callback_FileServer_getLargeFileCompressed_Base> Callback_FileServer_getLargeFileCompressedPtr;
1083
1084}
1085
1086namespace IceProxy
1087{
1088
1089namespace IcePatch2
1090{
1091
1092class ICE_CLASS(ICEPATCH2_API) FileServer : public virtual ::Ice::Proxy<FileServer, ::IceProxy::Ice::Object>
1093{
1094public:
1095
1110 ICE_DEPRECATED_API("getFileInfoSeq() is deprecated, use getLargeFileInfoSeq() instead.") ICE_MEMBER(ICEPATCH2_API) ::IcePatch2::FileInfoSeq getFileInfoSeq(::Ice::Int partition, const ::Ice::Context& context = ::Ice::noExplicitContext)
1111 {
1112 return end_getFileInfoSeq(_iceI_begin_getFileInfoSeq(partition, context, ::IceInternal::dummyCallback, 0, true));
1113 }
1114
1126 ::Ice::AsyncResultPtr begin_getFileInfoSeq(::Ice::Int partition, const ::Ice::Context& context = ::Ice::noExplicitContext)
1127 {
1128 return _iceI_begin_getFileInfoSeq(partition, context, ::IceInternal::dummyCallback, 0);
1129 }
1130
1143 ::Ice::AsyncResultPtr begin_getFileInfoSeq(::Ice::Int partition, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1144 {
1145 return _iceI_begin_getFileInfoSeq(partition, ::Ice::noExplicitContext, cb, cookie);
1146 }
1147
1161 ::Ice::AsyncResultPtr begin_getFileInfoSeq(::Ice::Int partition, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1162 {
1163 return _iceI_begin_getFileInfoSeq(partition, context, cb, cookie);
1164 }
1165
1178 ::Ice::AsyncResultPtr begin_getFileInfoSeq(::Ice::Int partition, const ::IcePatch2::Callback_FileServer_getFileInfoSeqPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1179 {
1180 return _iceI_begin_getFileInfoSeq(partition, ::Ice::noExplicitContext, cb, cookie);
1181 }
1182
1196 ::Ice::AsyncResultPtr begin_getFileInfoSeq(::Ice::Int partition, const ::Ice::Context& context, const ::IcePatch2::Callback_FileServer_getFileInfoSeqPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1197 {
1198 return _iceI_begin_getFileInfoSeq(partition, context, cb, cookie);
1199 }
1200
1209 ICE_MEMBER(ICEPATCH2_API) ::IcePatch2::FileInfoSeq end_getFileInfoSeq(const ::Ice::AsyncResultPtr& result);
1210
1211private:
1212
1213 ICE_MEMBER(ICEPATCH2_API) ::Ice::AsyncResultPtr _iceI_begin_getFileInfoSeq(::Ice::Int, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
1214
1215public:
1216
1225 ICE_MEMBER(ICEPATCH2_API) ::IcePatch2::LargeFileInfoSeq getLargeFileInfoSeq(::Ice::Int partition, const ::Ice::Context& context = ::Ice::noExplicitContext)
1226 {
1227 return end_getLargeFileInfoSeq(_iceI_begin_getLargeFileInfoSeq(partition, context, ::IceInternal::dummyCallback, 0, true));
1228 }
1229
1236 ::Ice::AsyncResultPtr begin_getLargeFileInfoSeq(::Ice::Int partition, const ::Ice::Context& context = ::Ice::noExplicitContext)
1237 {
1238 return _iceI_begin_getLargeFileInfoSeq(partition, context, ::IceInternal::dummyCallback, 0);
1239 }
1240
1248 ::Ice::AsyncResultPtr begin_getLargeFileInfoSeq(::Ice::Int partition, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1249 {
1250 return _iceI_begin_getLargeFileInfoSeq(partition, ::Ice::noExplicitContext, cb, cookie);
1251 }
1252
1261 ::Ice::AsyncResultPtr begin_getLargeFileInfoSeq(::Ice::Int partition, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1262 {
1263 return _iceI_begin_getLargeFileInfoSeq(partition, context, cb, cookie);
1264 }
1265
1273 ::Ice::AsyncResultPtr begin_getLargeFileInfoSeq(::Ice::Int partition, const ::IcePatch2::Callback_FileServer_getLargeFileInfoSeqPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1274 {
1275 return _iceI_begin_getLargeFileInfoSeq(partition, ::Ice::noExplicitContext, cb, cookie);
1276 }
1277
1286 ::Ice::AsyncResultPtr begin_getLargeFileInfoSeq(::Ice::Int partition, const ::Ice::Context& context, const ::IcePatch2::Callback_FileServer_getLargeFileInfoSeqPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1287 {
1288 return _iceI_begin_getLargeFileInfoSeq(partition, context, cb, cookie);
1289 }
1290
1298 ICE_MEMBER(ICEPATCH2_API) ::IcePatch2::LargeFileInfoSeq end_getLargeFileInfoSeq(const ::Ice::AsyncResultPtr& result);
1299
1300private:
1301
1302 ICE_MEMBER(ICEPATCH2_API) ::Ice::AsyncResultPtr _iceI_begin_getLargeFileInfoSeq(::Ice::Int, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
1303
1304public:
1305
1315 ICE_MEMBER(ICEPATCH2_API) ::IcePatch2::ByteSeqSeq getChecksumSeq(const ::Ice::Context& context = ::Ice::noExplicitContext)
1316 {
1317 return end_getChecksumSeq(_iceI_begin_getChecksumSeq(context, ::IceInternal::dummyCallback, 0, true));
1318 }
1319
1325 ::Ice::AsyncResultPtr begin_getChecksumSeq(const ::Ice::Context& context = ::Ice::noExplicitContext)
1326 {
1327 return _iceI_begin_getChecksumSeq(context, ::IceInternal::dummyCallback, 0);
1328 }
1329
1336 ::Ice::AsyncResultPtr begin_getChecksumSeq(const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1337 {
1338 return _iceI_begin_getChecksumSeq(::Ice::noExplicitContext, cb, cookie);
1339 }
1340
1348 ::Ice::AsyncResultPtr begin_getChecksumSeq(const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1349 {
1350 return _iceI_begin_getChecksumSeq(context, cb, cookie);
1351 }
1352
1359 ::Ice::AsyncResultPtr begin_getChecksumSeq(const ::IcePatch2::Callback_FileServer_getChecksumSeqPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1360 {
1361 return _iceI_begin_getChecksumSeq(::Ice::noExplicitContext, cb, cookie);
1362 }
1363
1371 ::Ice::AsyncResultPtr begin_getChecksumSeq(const ::Ice::Context& context, const ::IcePatch2::Callback_FileServer_getChecksumSeqPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1372 {
1373 return _iceI_begin_getChecksumSeq(context, cb, cookie);
1374 }
1375
1385 ICE_MEMBER(ICEPATCH2_API) ::IcePatch2::ByteSeqSeq end_getChecksumSeq(const ::Ice::AsyncResultPtr& result);
1386
1387private:
1388
1389 ICE_MEMBER(ICEPATCH2_API) ::Ice::AsyncResultPtr _iceI_begin_getChecksumSeq(const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
1390
1391public:
1392
1399 ICE_MEMBER(ICEPATCH2_API) ::Ice::ByteSeq getChecksum(const ::Ice::Context& context = ::Ice::noExplicitContext)
1400 {
1401 return end_getChecksum(_iceI_begin_getChecksum(context, ::IceInternal::dummyCallback, 0, true));
1402 }
1403
1410 ::Ice::AsyncResultPtr begin_getChecksum(const ::Ice::Context& context = ::Ice::noExplicitContext)
1411 {
1412 return _iceI_begin_getChecksum(context, ::IceInternal::dummyCallback, 0);
1413 }
1414
1422 ::Ice::AsyncResultPtr begin_getChecksum(const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1423 {
1424 return _iceI_begin_getChecksum(::Ice::noExplicitContext, cb, cookie);
1425 }
1426
1435 ::Ice::AsyncResultPtr begin_getChecksum(const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1436 {
1437 return _iceI_begin_getChecksum(context, cb, cookie);
1438 }
1439
1447 ::Ice::AsyncResultPtr begin_getChecksum(const ::IcePatch2::Callback_FileServer_getChecksumPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1448 {
1449 return _iceI_begin_getChecksum(::Ice::noExplicitContext, cb, cookie);
1450 }
1451
1460 ::Ice::AsyncResultPtr begin_getChecksum(const ::Ice::Context& context, const ::IcePatch2::Callback_FileServer_getChecksumPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1461 {
1462 return _iceI_begin_getChecksum(context, cb, cookie);
1463 }
1464
1470 ICE_MEMBER(ICEPATCH2_API) ::Ice::ByteSeq end_getChecksum(const ::Ice::AsyncResultPtr& result);
1471
1472private:
1473
1474 ICE_MEMBER(ICEPATCH2_API) ::Ice::AsyncResultPtr _iceI_begin_getChecksum(const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
1475
1476public:
1477
1495 ICE_DEPRECATED_API("getFileCompressed() is deprecated, use getLargeFileCompressed() instead.") ICE_MEMBER(ICEPATCH2_API) ::Ice::ByteSeq getFileCompressed(const ::std::string& path, ::Ice::Int pos, ::Ice::Int num, const ::Ice::Context& context = ::Ice::noExplicitContext)
1496 {
1497 return end_getFileCompressed(_iceI_begin_getFileCompressed(path, pos, num, context, ::IceInternal::dummyCallback, 0, true));
1498 }
1499
1515 ::Ice::AsyncResultPtr begin_getFileCompressed(const ::std::string& path, ::Ice::Int pos, ::Ice::Int num, const ::Ice::Context& context = ::Ice::noExplicitContext)
1516 {
1517 return _iceI_begin_getFileCompressed(path, pos, num, context, ::IceInternal::dummyCallback, 0);
1518 }
1519
1536 ::Ice::AsyncResultPtr begin_getFileCompressed(const ::std::string& path, ::Ice::Int pos, ::Ice::Int num, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1537 {
1538 return _iceI_begin_getFileCompressed(path, pos, num, ::Ice::noExplicitContext, cb, cookie);
1539 }
1540
1558 ::Ice::AsyncResultPtr begin_getFileCompressed(const ::std::string& path, ::Ice::Int pos, ::Ice::Int num, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1559 {
1560 return _iceI_begin_getFileCompressed(path, pos, num, context, cb, cookie);
1561 }
1562
1579 ::Ice::AsyncResultPtr begin_getFileCompressed(const ::std::string& path, ::Ice::Int pos, ::Ice::Int num, const ::IcePatch2::Callback_FileServer_getFileCompressedPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1580 {
1581 return _iceI_begin_getFileCompressed(path, pos, num, ::Ice::noExplicitContext, cb, cookie);
1582 }
1583
1601 ::Ice::AsyncResultPtr begin_getFileCompressed(const ::std::string& path, ::Ice::Int pos, ::Ice::Int num, const ::Ice::Context& context, const ::IcePatch2::Callback_FileServer_getFileCompressedPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1602 {
1603 return _iceI_begin_getFileCompressed(path, pos, num, context, cb, cookie);
1604 }
1605
1613 ICE_MEMBER(ICEPATCH2_API) ::Ice::ByteSeq end_getFileCompressed(const ::Ice::AsyncResultPtr& result);
1615
1616 ICE_MEMBER(ICEPATCH2_API) void _iceI_end_getFileCompressed(::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& ret, const ::Ice::AsyncResultPtr&);
1618
1619private:
1620
1621 ICE_MEMBER(ICEPATCH2_API) ::Ice::AsyncResultPtr _iceI_begin_getFileCompressed(const ::std::string&, ::Ice::Int, ::Ice::Int, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
1622
1623public:
1624
1636 ICE_MEMBER(ICEPATCH2_API) ::Ice::ByteSeq getLargeFileCompressed(const ::std::string& path, ::Ice::Long pos, ::Ice::Int num, const ::Ice::Context& context = ::Ice::noExplicitContext)
1637 {
1638 return end_getLargeFileCompressed(_iceI_begin_getLargeFileCompressed(path, pos, num, context, ::IceInternal::dummyCallback, 0, true));
1639 }
1640
1651 ::Ice::AsyncResultPtr begin_getLargeFileCompressed(const ::std::string& path, ::Ice::Long pos, ::Ice::Int num, const ::Ice::Context& context = ::Ice::noExplicitContext)
1652 {
1653 return _iceI_begin_getLargeFileCompressed(path, pos, num, context, ::IceInternal::dummyCallback, 0);
1654 }
1655
1667 ::Ice::AsyncResultPtr begin_getLargeFileCompressed(const ::std::string& path, ::Ice::Long pos, ::Ice::Int num, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1668 {
1669 return _iceI_begin_getLargeFileCompressed(path, pos, num, ::Ice::noExplicitContext, cb, cookie);
1670 }
1671
1684 ::Ice::AsyncResultPtr begin_getLargeFileCompressed(const ::std::string& path, ::Ice::Long pos, ::Ice::Int num, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1685 {
1686 return _iceI_begin_getLargeFileCompressed(path, pos, num, context, cb, cookie);
1687 }
1688
1700 ::Ice::AsyncResultPtr begin_getLargeFileCompressed(const ::std::string& path, ::Ice::Long pos, ::Ice::Int num, const ::IcePatch2::Callback_FileServer_getLargeFileCompressedPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1701 {
1702 return _iceI_begin_getLargeFileCompressed(path, pos, num, ::Ice::noExplicitContext, cb, cookie);
1703 }
1704
1717 ::Ice::AsyncResultPtr begin_getLargeFileCompressed(const ::std::string& path, ::Ice::Long pos, ::Ice::Int num, const ::Ice::Context& context, const ::IcePatch2::Callback_FileServer_getLargeFileCompressedPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1718 {
1719 return _iceI_begin_getLargeFileCompressed(path, pos, num, context, cb, cookie);
1720 }
1721
1728 ICE_MEMBER(ICEPATCH2_API) ::Ice::ByteSeq end_getLargeFileCompressed(const ::Ice::AsyncResultPtr& result);
1730
1731 ICE_MEMBER(ICEPATCH2_API) void _iceI_end_getLargeFileCompressed(::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& ret, const ::Ice::AsyncResultPtr&);
1733
1734private:
1735
1736 ICE_MEMBER(ICEPATCH2_API) ::Ice::AsyncResultPtr _iceI_begin_getLargeFileCompressed(const ::std::string&, ::Ice::Long, ::Ice::Int, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
1737
1738public:
1739
1744 ICE_MEMBER(ICEPATCH2_API) static const ::std::string& ice_staticId();
1745
1746protected:
1748
1749 ICE_MEMBER(ICEPATCH2_API) virtual ::IceProxy::Ice::Object* _newInstance() const;
1751};
1752
1753}
1754
1755}
1756
1757namespace IcePatch2
1758{
1759
1764class ICEPATCH2_API FileServer : public virtual ::Ice::Object
1765{
1766public:
1767
1768 typedef FileServerPrx ProxyType;
1769 typedef FileServerPtr PointerType;
1770
1771 virtual ~FileServer();
1772
1773#ifdef ICE_CPP11_COMPILER
1774 FileServer() = default;
1775 FileServer(const FileServer&) = default;
1776 FileServer& operator=(const FileServer&) = default;
1777#endif
1778
1785 virtual bool ice_isA(const ::std::string& id, const ::Ice::Current& current = ::Ice::emptyCurrent) const;
1786
1792 virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& current = ::Ice::emptyCurrent) const;
1793
1799 virtual const ::std::string& ice_id(const ::Ice::Current& current = ::Ice::emptyCurrent) const;
1800
1805 static const ::std::string& ice_staticId();
1806
1821 ICE_DEPRECATED_API("getFileInfoSeq() is deprecated, use getLargeFileInfoSeq() instead.") virtual FileInfoSeq getFileInfoSeq(::Ice::Int partition, const ::Ice::Current& current = ::Ice::emptyCurrent) const = 0;
1823 bool _iceD_getFileInfoSeq(::IceInternal::Incoming&, const ::Ice::Current&) const;
1825
1834 virtual LargeFileInfoSeq getLargeFileInfoSeq(::Ice::Int partition, const ::Ice::Current& current = ::Ice::emptyCurrent) const = 0;
1836 bool _iceD_getLargeFileInfoSeq(::IceInternal::Incoming&, const ::Ice::Current&) const;
1838
1848 virtual ByteSeqSeq getChecksumSeq(const ::Ice::Current& current = ::Ice::emptyCurrent) const = 0;
1850 bool _iceD_getChecksumSeq(::IceInternal::Incoming&, const ::Ice::Current&) const;
1852
1859 virtual ::Ice::ByteSeq getChecksum(const ::Ice::Current& current = ::Ice::emptyCurrent) const = 0;
1861 bool _iceD_getChecksum(::IceInternal::Incoming&, const ::Ice::Current&) const;
1863
1881 ICE_DEPRECATED_API("getFileCompressed() is deprecated, use getLargeFileCompressed() instead.") virtual void getFileCompressed_async(const ::IcePatch2::AMD_FileServer_getFileCompressedPtr& cb, const ::std::string& path, ::Ice::Int pos, ::Ice::Int num, const ::Ice::Current& current = ::Ice::emptyCurrent) const = 0;
1883 bool _iceD_getFileCompressed(::IceInternal::Incoming&, const ::Ice::Current&) const;
1885
1897 virtual void getLargeFileCompressed_async(const ::IcePatch2::AMD_FileServer_getLargeFileCompressedPtr& cb, const ::std::string& path, ::Ice::Long pos, ::Ice::Int num, const ::Ice::Current& current = ::Ice::emptyCurrent) const = 0;
1899 bool _iceD_getLargeFileCompressed(::IceInternal::Incoming&, const ::Ice::Current&) const;
1901
1903 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
1905
1906protected:
1907
1909 virtual void _iceWriteImpl(::Ice::OutputStream*) const;
1910 virtual void _iceReadImpl(::Ice::InputStream*);
1912};
1913
1915inline bool operator==(const FileServer& lhs, const FileServer& rhs)
1916{
1917 return static_cast<const ::Ice::Object&>(lhs) == static_cast<const ::Ice::Object&>(rhs);
1918}
1919
1920inline bool operator<(const FileServer& lhs, const FileServer& rhs)
1921{
1922 return static_cast<const ::Ice::Object&>(lhs) < static_cast<const ::Ice::Object&>(rhs);
1923}
1925
1926}
1927
1929namespace Ice
1930{
1931
1932template<>
1933struct StreamableTraits< ::IcePatch2::PartitionOutOfRangeException>
1934{
1935 static const StreamHelperCategory helper = StreamHelperCategoryUserException;
1936};
1937
1938template<>
1939struct StreamableTraits< ::IcePatch2::FileAccessException>
1940{
1941 static const StreamHelperCategory helper = StreamHelperCategoryUserException;
1942};
1943
1944template<typename S>
1945struct StreamWriter< ::IcePatch2::FileAccessException, S>
1946{
1947 static void write(S* ostr, const ::IcePatch2::FileAccessException& v)
1948 {
1949 ostr->write(v.reason);
1950 }
1951};
1952
1953template<typename S>
1954struct StreamReader< ::IcePatch2::FileAccessException, S>
1955{
1956 static void read(S* istr, ::IcePatch2::FileAccessException& v)
1957 {
1958 istr->read(v.reason);
1959 }
1960};
1961
1962template<>
1963struct StreamableTraits< ::IcePatch2::FileSizeRangeException>
1964{
1965 static const StreamHelperCategory helper = StreamHelperCategoryUserException;
1966};
1967
1968}
1970
1971namespace IcePatch2
1972{
1973
1979template<class T>
1980class CallbackNC_FileServer_getFileInfoSeq : public Callback_FileServer_getFileInfoSeq_Base, public ::IceInternal::TwowayCallbackNC<T>
1981{
1982public:
1983
1984 typedef IceUtil::Handle<T> TPtr;
1985
1986 typedef void (T::*Exception)(const ::Ice::Exception&);
1987 typedef void (T::*Sent)(bool);
1988 typedef void (T::*Response)(const FileInfoSeq&);
1989
1990 CallbackNC_FileServer_getFileInfoSeq(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
1991 : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
1992 {
1993 }
1994
1996 virtual void completed(const ::Ice::AsyncResultPtr& result) const
1997 {
1998 FileServerPrx proxy = FileServerPrx::uncheckedCast(result->getProxy());
1999 FileInfoSeq ret;
2000 try
2001 {
2002 ret = proxy->end_getFileInfoSeq(result);
2003 }
2004 catch(const ::Ice::Exception& ex)
2005 {
2006 ::IceInternal::CallbackNC<T>::exception(result, ex);
2007 return;
2008 }
2009 if(_response)
2010 {
2011 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
2012 }
2013 }
2015
2016private:
2017
2018 Response _response;
2019};
2020
2029template<class T> Callback_FileServer_getFileInfoSeqPtr
2030newCallback_FileServer_getFileInfoSeq(const IceUtil::Handle<T>& instance, void (T::*cb)(const FileInfoSeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
2031{
2032 return new CallbackNC_FileServer_getFileInfoSeq<T>(instance, cb, excb, sentcb);
2033}
2034
2043template<class T> Callback_FileServer_getFileInfoSeqPtr
2044newCallback_FileServer_getFileInfoSeq(T* instance, void (T::*cb)(const FileInfoSeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
2045{
2046 return new CallbackNC_FileServer_getFileInfoSeq<T>(instance, cb, excb, sentcb);
2047}
2048
2054template<class T, typename CT>
2055class Callback_FileServer_getFileInfoSeq : public Callback_FileServer_getFileInfoSeq_Base, public ::IceInternal::TwowayCallback<T, CT>
2056{
2057public:
2058
2059 typedef IceUtil::Handle<T> TPtr;
2060
2061 typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
2062 typedef void (T::*Sent)(bool , const CT&);
2063 typedef void (T::*Response)(const FileInfoSeq&, const CT&);
2064
2065 Callback_FileServer_getFileInfoSeq(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2066 : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2067 {
2068 }
2069
2071 virtual void completed(const ::Ice::AsyncResultPtr& result) const
2072 {
2073 FileServerPrx proxy = FileServerPrx::uncheckedCast(result->getProxy());
2074 FileInfoSeq ret;
2075 try
2076 {
2077 ret = proxy->end_getFileInfoSeq(result);
2078 }
2079 catch(const ::Ice::Exception& ex)
2080 {
2081 ::IceInternal::Callback<T, CT>::exception(result, ex);
2082 return;
2083 }
2084 if(_response)
2085 {
2086 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
2087 }
2088 }
2090
2091private:
2092
2093 Response _response;
2094};
2095
2105template<class T, typename CT> Callback_FileServer_getFileInfoSeqPtr
2106newCallback_FileServer_getFileInfoSeq(const IceUtil::Handle<T>& instance, void (T::*cb)(const FileInfoSeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
2107{
2108 return new Callback_FileServer_getFileInfoSeq<T, CT>(instance, cb, excb, sentcb);
2109}
2110
2120template<class T, typename CT> Callback_FileServer_getFileInfoSeqPtr
2121newCallback_FileServer_getFileInfoSeq(T* instance, void (T::*cb)(const FileInfoSeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
2122{
2123 return new Callback_FileServer_getFileInfoSeq<T, CT>(instance, cb, excb, sentcb);
2124}
2125
2131template<class T>
2132class CallbackNC_FileServer_getLargeFileInfoSeq : public Callback_FileServer_getLargeFileInfoSeq_Base, public ::IceInternal::TwowayCallbackNC<T>
2133{
2134public:
2135
2136 typedef IceUtil::Handle<T> TPtr;
2137
2138 typedef void (T::*Exception)(const ::Ice::Exception&);
2139 typedef void (T::*Sent)(bool);
2140 typedef void (T::*Response)(const LargeFileInfoSeq&);
2141
2142 CallbackNC_FileServer_getLargeFileInfoSeq(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2143 : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
2144 {
2145 }
2146
2148 virtual void completed(const ::Ice::AsyncResultPtr& result) const
2149 {
2150 FileServerPrx proxy = FileServerPrx::uncheckedCast(result->getProxy());
2151 LargeFileInfoSeq ret;
2152 try
2153 {
2154 ret = proxy->end_getLargeFileInfoSeq(result);
2155 }
2156 catch(const ::Ice::Exception& ex)
2157 {
2158 ::IceInternal::CallbackNC<T>::exception(result, ex);
2159 return;
2160 }
2161 if(_response)
2162 {
2163 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
2164 }
2165 }
2167
2168private:
2169
2170 Response _response;
2171};
2172
2181template<class T> Callback_FileServer_getLargeFileInfoSeqPtr
2182newCallback_FileServer_getLargeFileInfoSeq(const IceUtil::Handle<T>& instance, void (T::*cb)(const LargeFileInfoSeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
2183{
2184 return new CallbackNC_FileServer_getLargeFileInfoSeq<T>(instance, cb, excb, sentcb);
2185}
2186
2195template<class T> Callback_FileServer_getLargeFileInfoSeqPtr
2196newCallback_FileServer_getLargeFileInfoSeq(T* instance, void (T::*cb)(const LargeFileInfoSeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
2197{
2198 return new CallbackNC_FileServer_getLargeFileInfoSeq<T>(instance, cb, excb, sentcb);
2199}
2200
2206template<class T, typename CT>
2207class Callback_FileServer_getLargeFileInfoSeq : public Callback_FileServer_getLargeFileInfoSeq_Base, public ::IceInternal::TwowayCallback<T, CT>
2208{
2209public:
2210
2211 typedef IceUtil::Handle<T> TPtr;
2212
2213 typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
2214 typedef void (T::*Sent)(bool , const CT&);
2215 typedef void (T::*Response)(const LargeFileInfoSeq&, const CT&);
2216
2217 Callback_FileServer_getLargeFileInfoSeq(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2218 : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2219 {
2220 }
2221
2223 virtual void completed(const ::Ice::AsyncResultPtr& result) const
2224 {
2225 FileServerPrx proxy = FileServerPrx::uncheckedCast(result->getProxy());
2226 LargeFileInfoSeq ret;
2227 try
2228 {
2229 ret = proxy->end_getLargeFileInfoSeq(result);
2230 }
2231 catch(const ::Ice::Exception& ex)
2232 {
2233 ::IceInternal::Callback<T, CT>::exception(result, ex);
2234 return;
2235 }
2236 if(_response)
2237 {
2238 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
2239 }
2240 }
2242
2243private:
2244
2245 Response _response;
2246};
2247
2257template<class T, typename CT> Callback_FileServer_getLargeFileInfoSeqPtr
2258newCallback_FileServer_getLargeFileInfoSeq(const IceUtil::Handle<T>& instance, void (T::*cb)(const LargeFileInfoSeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
2259{
2260 return new Callback_FileServer_getLargeFileInfoSeq<T, CT>(instance, cb, excb, sentcb);
2261}
2262
2272template<class T, typename CT> Callback_FileServer_getLargeFileInfoSeqPtr
2273newCallback_FileServer_getLargeFileInfoSeq(T* instance, void (T::*cb)(const LargeFileInfoSeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
2274{
2275 return new Callback_FileServer_getLargeFileInfoSeq<T, CT>(instance, cb, excb, sentcb);
2276}
2277
2283template<class T>
2284class CallbackNC_FileServer_getChecksumSeq : public Callback_FileServer_getChecksumSeq_Base, public ::IceInternal::TwowayCallbackNC<T>
2285{
2286public:
2287
2288 typedef IceUtil::Handle<T> TPtr;
2289
2290 typedef void (T::*Exception)(const ::Ice::Exception&);
2291 typedef void (T::*Sent)(bool);
2292 typedef void (T::*Response)(const ByteSeqSeq&);
2293
2294 CallbackNC_FileServer_getChecksumSeq(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2295 : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
2296 {
2297 }
2298
2300 virtual void completed(const ::Ice::AsyncResultPtr& result) const
2301 {
2302 FileServerPrx proxy = FileServerPrx::uncheckedCast(result->getProxy());
2303 ByteSeqSeq ret;
2304 try
2305 {
2306 ret = proxy->end_getChecksumSeq(result);
2307 }
2308 catch(const ::Ice::Exception& ex)
2309 {
2310 ::IceInternal::CallbackNC<T>::exception(result, ex);
2311 return;
2312 }
2313 if(_response)
2314 {
2315 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
2316 }
2317 }
2319
2320private:
2321
2322 Response _response;
2323};
2324
2333template<class T> Callback_FileServer_getChecksumSeqPtr
2334newCallback_FileServer_getChecksumSeq(const IceUtil::Handle<T>& instance, void (T::*cb)(const ByteSeqSeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
2335{
2336 return new CallbackNC_FileServer_getChecksumSeq<T>(instance, cb, excb, sentcb);
2337}
2338
2347template<class T> Callback_FileServer_getChecksumSeqPtr
2348newCallback_FileServer_getChecksumSeq(T* instance, void (T::*cb)(const ByteSeqSeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
2349{
2350 return new CallbackNC_FileServer_getChecksumSeq<T>(instance, cb, excb, sentcb);
2351}
2352
2358template<class T, typename CT>
2359class Callback_FileServer_getChecksumSeq : public Callback_FileServer_getChecksumSeq_Base, public ::IceInternal::TwowayCallback<T, CT>
2360{
2361public:
2362
2363 typedef IceUtil::Handle<T> TPtr;
2364
2365 typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
2366 typedef void (T::*Sent)(bool , const CT&);
2367 typedef void (T::*Response)(const ByteSeqSeq&, const CT&);
2368
2369 Callback_FileServer_getChecksumSeq(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2370 : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2371 {
2372 }
2373
2375 virtual void completed(const ::Ice::AsyncResultPtr& result) const
2376 {
2377 FileServerPrx proxy = FileServerPrx::uncheckedCast(result->getProxy());
2378 ByteSeqSeq ret;
2379 try
2380 {
2381 ret = proxy->end_getChecksumSeq(result);
2382 }
2383 catch(const ::Ice::Exception& ex)
2384 {
2385 ::IceInternal::Callback<T, CT>::exception(result, ex);
2386 return;
2387 }
2388 if(_response)
2389 {
2390 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
2391 }
2392 }
2394
2395private:
2396
2397 Response _response;
2398};
2399
2409template<class T, typename CT> Callback_FileServer_getChecksumSeqPtr
2410newCallback_FileServer_getChecksumSeq(const IceUtil::Handle<T>& instance, void (T::*cb)(const ByteSeqSeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
2411{
2412 return new Callback_FileServer_getChecksumSeq<T, CT>(instance, cb, excb, sentcb);
2413}
2414
2424template<class T, typename CT> Callback_FileServer_getChecksumSeqPtr
2425newCallback_FileServer_getChecksumSeq(T* instance, void (T::*cb)(const ByteSeqSeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
2426{
2427 return new Callback_FileServer_getChecksumSeq<T, CT>(instance, cb, excb, sentcb);
2428}
2429
2435template<class T>
2436class CallbackNC_FileServer_getChecksum : public Callback_FileServer_getChecksum_Base, public ::IceInternal::TwowayCallbackNC<T>
2437{
2438public:
2439
2440 typedef IceUtil::Handle<T> TPtr;
2441
2442 typedef void (T::*Exception)(const ::Ice::Exception&);
2443 typedef void (T::*Sent)(bool);
2444 typedef void (T::*Response)(const ::Ice::ByteSeq&);
2445
2446 CallbackNC_FileServer_getChecksum(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2447 : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
2448 {
2449 }
2450
2452 virtual void completed(const ::Ice::AsyncResultPtr& result) const
2453 {
2454 FileServerPrx proxy = FileServerPrx::uncheckedCast(result->getProxy());
2455 ::Ice::ByteSeq ret;
2456 try
2457 {
2458 ret = proxy->end_getChecksum(result);
2459 }
2460 catch(const ::Ice::Exception& ex)
2461 {
2462 ::IceInternal::CallbackNC<T>::exception(result, ex);
2463 return;
2464 }
2465 if(_response)
2466 {
2467 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
2468 }
2469 }
2471
2472private:
2473
2474 Response _response;
2475};
2476
2485template<class T> Callback_FileServer_getChecksumPtr
2486newCallback_FileServer_getChecksum(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::Ice::ByteSeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
2487{
2488 return new CallbackNC_FileServer_getChecksum<T>(instance, cb, excb, sentcb);
2489}
2490
2499template<class T> Callback_FileServer_getChecksumPtr
2500newCallback_FileServer_getChecksum(T* instance, void (T::*cb)(const ::Ice::ByteSeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
2501{
2502 return new CallbackNC_FileServer_getChecksum<T>(instance, cb, excb, sentcb);
2503}
2504
2510template<class T, typename CT>
2511class Callback_FileServer_getChecksum : public Callback_FileServer_getChecksum_Base, public ::IceInternal::TwowayCallback<T, CT>
2512{
2513public:
2514
2515 typedef IceUtil::Handle<T> TPtr;
2516
2517 typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
2518 typedef void (T::*Sent)(bool , const CT&);
2519 typedef void (T::*Response)(const ::Ice::ByteSeq&, const CT&);
2520
2521 Callback_FileServer_getChecksum(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2522 : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2523 {
2524 }
2525
2527 virtual void completed(const ::Ice::AsyncResultPtr& result) const
2528 {
2529 FileServerPrx proxy = FileServerPrx::uncheckedCast(result->getProxy());
2530 ::Ice::ByteSeq ret;
2531 try
2532 {
2533 ret = proxy->end_getChecksum(result);
2534 }
2535 catch(const ::Ice::Exception& ex)
2536 {
2537 ::IceInternal::Callback<T, CT>::exception(result, ex);
2538 return;
2539 }
2540 if(_response)
2541 {
2542 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
2543 }
2544 }
2546
2547private:
2548
2549 Response _response;
2550};
2551
2561template<class T, typename CT> Callback_FileServer_getChecksumPtr
2562newCallback_FileServer_getChecksum(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::Ice::ByteSeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
2563{
2564 return new Callback_FileServer_getChecksum<T, CT>(instance, cb, excb, sentcb);
2565}
2566
2576template<class T, typename CT> Callback_FileServer_getChecksumPtr
2577newCallback_FileServer_getChecksum(T* instance, void (T::*cb)(const ::Ice::ByteSeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
2578{
2579 return new Callback_FileServer_getChecksum<T, CT>(instance, cb, excb, sentcb);
2580}
2581
2587template<class T>
2588class CallbackNC_FileServer_getFileCompressed : public Callback_FileServer_getFileCompressed_Base, public ::IceInternal::TwowayCallbackNC<T>
2589{
2590public:
2591
2592 typedef IceUtil::Handle<T> TPtr;
2593
2594 typedef void (T::*Exception)(const ::Ice::Exception&);
2595 typedef void (T::*Sent)(bool);
2596 typedef void (T::*Response)(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&);
2597
2598 CallbackNC_FileServer_getFileCompressed(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2599 : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
2600 {
2601 }
2602
2604 virtual void completed(const ::Ice::AsyncResultPtr& result) const
2605 {
2606 FileServerPrx proxy = FileServerPrx::uncheckedCast(result->getProxy());
2607 ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*> ret;
2608 try
2609 {
2610 proxy->_iceI_end_getFileCompressed(ret, result);
2611 }
2612 catch(const ::Ice::Exception& ex)
2613 {
2614 ::IceInternal::CallbackNC<T>::exception(result, ex);
2615 return;
2616 }
2617 if(_response)
2618 {
2619 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
2620 }
2621 }
2623
2624private:
2625
2626 Response _response;
2627};
2628
2637template<class T> Callback_FileServer_getFileCompressedPtr
2638newCallback_FileServer_getFileCompressed(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
2639{
2640 return new CallbackNC_FileServer_getFileCompressed<T>(instance, cb, excb, sentcb);
2641}
2642
2651template<class T> Callback_FileServer_getFileCompressedPtr
2652newCallback_FileServer_getFileCompressed(T* instance, void (T::*cb)(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
2653{
2654 return new CallbackNC_FileServer_getFileCompressed<T>(instance, cb, excb, sentcb);
2655}
2656
2662template<class T, typename CT>
2663class Callback_FileServer_getFileCompressed : public Callback_FileServer_getFileCompressed_Base, public ::IceInternal::TwowayCallback<T, CT>
2664{
2665public:
2666
2667 typedef IceUtil::Handle<T> TPtr;
2668
2669 typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
2670 typedef void (T::*Sent)(bool , const CT&);
2671 typedef void (T::*Response)(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&, const CT&);
2672
2673 Callback_FileServer_getFileCompressed(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2674 : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2675 {
2676 }
2677
2679 virtual void completed(const ::Ice::AsyncResultPtr& result) const
2680 {
2681 FileServerPrx proxy = FileServerPrx::uncheckedCast(result->getProxy());
2682 ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*> ret;
2683 try
2684 {
2685 proxy->_iceI_end_getFileCompressed(ret, result);
2686 }
2687 catch(const ::Ice::Exception& ex)
2688 {
2689 ::IceInternal::Callback<T, CT>::exception(result, ex);
2690 return;
2691 }
2692 if(_response)
2693 {
2694 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
2695 }
2696 }
2698
2699private:
2700
2701 Response _response;
2702};
2703
2713template<class T, typename CT> Callback_FileServer_getFileCompressedPtr
2714newCallback_FileServer_getFileCompressed(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
2715{
2716 return new Callback_FileServer_getFileCompressed<T, CT>(instance, cb, excb, sentcb);
2717}
2718
2728template<class T, typename CT> Callback_FileServer_getFileCompressedPtr
2729newCallback_FileServer_getFileCompressed(T* instance, void (T::*cb)(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
2730{
2731 return new Callback_FileServer_getFileCompressed<T, CT>(instance, cb, excb, sentcb);
2732}
2733
2739template<class T>
2740class CallbackNC_FileServer_getLargeFileCompressed : public Callback_FileServer_getLargeFileCompressed_Base, public ::IceInternal::TwowayCallbackNC<T>
2741{
2742public:
2743
2744 typedef IceUtil::Handle<T> TPtr;
2745
2746 typedef void (T::*Exception)(const ::Ice::Exception&);
2747 typedef void (T::*Sent)(bool);
2748 typedef void (T::*Response)(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&);
2749
2750 CallbackNC_FileServer_getLargeFileCompressed(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2751 : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
2752 {
2753 }
2754
2756 virtual void completed(const ::Ice::AsyncResultPtr& result) const
2757 {
2758 FileServerPrx proxy = FileServerPrx::uncheckedCast(result->getProxy());
2759 ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*> ret;
2760 try
2761 {
2762 proxy->_iceI_end_getLargeFileCompressed(ret, result);
2763 }
2764 catch(const ::Ice::Exception& ex)
2765 {
2766 ::IceInternal::CallbackNC<T>::exception(result, ex);
2767 return;
2768 }
2769 if(_response)
2770 {
2771 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
2772 }
2773 }
2775
2776private:
2777
2778 Response _response;
2779};
2780
2789template<class T> Callback_FileServer_getLargeFileCompressedPtr
2790newCallback_FileServer_getLargeFileCompressed(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
2791{
2792 return new CallbackNC_FileServer_getLargeFileCompressed<T>(instance, cb, excb, sentcb);
2793}
2794
2803template<class T> Callback_FileServer_getLargeFileCompressedPtr
2804newCallback_FileServer_getLargeFileCompressed(T* instance, void (T::*cb)(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
2805{
2806 return new CallbackNC_FileServer_getLargeFileCompressed<T>(instance, cb, excb, sentcb);
2807}
2808
2814template<class T, typename CT>
2815class Callback_FileServer_getLargeFileCompressed : public Callback_FileServer_getLargeFileCompressed_Base, public ::IceInternal::TwowayCallback<T, CT>
2816{
2817public:
2818
2819 typedef IceUtil::Handle<T> TPtr;
2820
2821 typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
2822 typedef void (T::*Sent)(bool , const CT&);
2823 typedef void (T::*Response)(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&, const CT&);
2824
2825 Callback_FileServer_getLargeFileCompressed(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2826 : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2827 {
2828 }
2829
2831 virtual void completed(const ::Ice::AsyncResultPtr& result) const
2832 {
2833 FileServerPrx proxy = FileServerPrx::uncheckedCast(result->getProxy());
2834 ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*> ret;
2835 try
2836 {
2837 proxy->_iceI_end_getLargeFileCompressed(ret, result);
2838 }
2839 catch(const ::Ice::Exception& ex)
2840 {
2841 ::IceInternal::Callback<T, CT>::exception(result, ex);
2842 return;
2843 }
2844 if(_response)
2845 {
2846 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
2847 }
2848 }
2850
2851private:
2852
2853 Response _response;
2854};
2855
2865template<class T, typename CT> Callback_FileServer_getLargeFileCompressedPtr
2866newCallback_FileServer_getLargeFileCompressed(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
2867{
2868 return new Callback_FileServer_getLargeFileCompressed<T, CT>(instance, cb, excb, sentcb);
2869}
2870
2880template<class T, typename CT> Callback_FileServer_getLargeFileCompressedPtr
2881newCallback_FileServer_getLargeFileCompressed(T* instance, void (T::*cb)(const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
2882{
2883 return new Callback_FileServer_getLargeFileCompressed<T, CT>(instance, cb, excb, sentcb);
2884}
2885
2886}
2887
2888#endif
2889
2891#endif
#define ICEPATCH2_API
Definition FileInfo.h:51
#define ICE_DEPRECATED_API(msg)
Definition Config.h:217
#define ICE_MEMBER(API)
Definition Config.h:177
T * get() const
Definition Handle.h:25
const Context noExplicitContext
Marker value used to indicate that no explicit context was passed to a proxy invocation.
Definition ProxyHandle.h:51
int Int
The mapping for the Slice int type.
Definition Config.h:54
::std::map< ::std::string, ::std::string > Context
A request context.
Definition Current.h:207
IceUtil::Int64 Long
The mapping for the Slice long type.
Definition Config.h:60
const Current emptyCurrent
A default-initialized Current instance.
::std::vector< Byte > ByteSeq
A sequence of bytes.
Definition BuiltinSequences.h:123
IceInternal::Handle< LocalObject > LocalObjectPtr
Definition LocalObjectF.h:17
unsigned char Byte
The mapping for the Slice byte type.
Definition Config.h:50
IceInternal::Handle< AsyncResult > AsyncResultPtr
Definition AsyncResultF.h:18
IceUtil::Shared * upCast(::Ice::AsyncResult *)