Matrix Science header

ms_http_helper_handles.hpp

00001 /*
00002 ##############################################################################
00003 # file: ms_http_helper_handles.hpp                                                  #
00004 # 'msparser' toolkit                                                         #
00005 # Hold the handles for an internet file post function.                       #
00006 ##############################################################################
00007 # COPYRIGHT NOTICE                                                           #
00008 # Copyright 1998-2013 Matrix Science Limited  All Rights Reserved.           #
00009 #                                                                            #
00010 ##############################################################################
00011  * @(#)$Source: /vol/cvsroot/parser/inc/ms_http_helper_handles.hpp,v $
00012  * @(#)$Revision: 1.8 $
00013  * @(#)$Date: 2016/05/20 08:29:30 $
00014 ##############################################################################
00015  */
00016 
00017 #ifndef MS_HTTP_HELPER_HANDLES_HPP
00018 #define MS_HTTP_HELPER_HANDLES_HPP
00019 
00020 #ifdef _WIN32
00021 #pragma warning(disable:4251)   // Don't want all classes to be exported
00022 #pragma warning(disable:4786)   // Debug symbols too long
00023 #   ifndef _MATRIX_USE_STATIC_LIB
00024 #       ifdef MS_MASCOTRESFILE_EXPORTS
00025 #           define MS_MASCOTRESFILE_API __declspec(dllexport)
00026 #       else
00027 #           define MS_MASCOTRESFILE_API __declspec(dllimport)
00028 #       endif
00029 #   else
00030 #       define MS_MASCOTRESFILE_API
00031 #   endif
00032 #else
00033 #   define MS_MASCOTRESFILE_API
00034 #endif
00035 
00036 #include <string>
00037 
00038 namespace matrix_science
00039 {
00040     class ms_http_helper_handles_body;
00041 
00047 
00048 
00060     class MS_MASCOTRESFILE_API ms_http_helper_handles :
00061         public ms_errors
00062     {
00063         public:
00065             ms_http_helper_handles();
00066             ms_http_helper_handles(const ms_http_helper_handles &);
00067 #ifndef SWIG
00068             const ms_http_helper_handles & operator=(const ms_http_helper_handles &);
00069             ms_http_helper_handles(const ms_http_helper_handles_body & impl);
00070 #endif
00071 
00073             virtual ~ms_http_helper_handles();
00074 
00076             bool getRequestData(
00077                     bool & isStillActive,
00078                     std::string & requestDataRef);
00079 
00080             void setRequestData(const std::string & strResult);
00081 
00083             bool closeHandles();
00084             
00085         private:
00086             void copyFrom(const ms_http_helper_handles & copy);
00087             void release();
00088 
00089             ms_http_helper_handles_body * pimpl_;
00090             std::string strResult_;
00091     };
00092  // end of http_client_group
00094 } // namespace matrix_science
00095 
00096 #endif // MS_HTTP_HELPER_HANDLES_HPP
00097 
00098 /*------------------------------- End of File -------------------------------*/
Copyright © 2016 Matrix Science Ltd.  All Rights Reserved. Generated on Fri Jun 2 2017 01:44:51