Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_http_helper_handles.hpp
1/*
2##############################################################################
3# file: ms_http_helper_handles.hpp #
4# 'msparser' toolkit #
5# Hold the handles for an internet file post function. #
6##############################################################################
7# COPYRIGHT NOTICE #
8# Copyright 1998-2013 Matrix Science Limited All Rights Reserved. #
9# #
10##############################################################################
11 * @(#)$Source: parser/inc/ms_http_helper_handles.hpp $
12 * @(#)$Revision: 1b450440f9c97e1e41d0fc6016a27d68951d4532 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $
13 * @(#)$Date: 2018-07-30 16:23:53 +0100 $
14##############################################################################
15 */
16
17#ifndef MS_HTTP_HELPER_HANDLES_HPP
18#define MS_HTTP_HELPER_HANDLES_HPP
19
20
21#include <string>
22
23namespace matrix_science
24{
25 class ms_http_helper_handles_body;
26
33
45 class MS_MASCOTRESFILE_API ms_http_helper_handles :
46 public ms_errors
47 {
48 public:
52#ifndef SWIG
53 const ms_http_helper_handles & operator=(const ms_http_helper_handles &);
54 ms_http_helper_handles(const ms_http_helper_handles_body & impl);
55#endif
56
59#ifndef SWIG
61 bool getRequestData(bool & isStillActive, std::string & requestDataRef);
62#else // SWIG Multiple return values
63 bool getRequestData(bool & OUTPUT, std::string & OUTPUT);
64#endif
65
66 void setRequestData(const std::string & strResult);
67
69 bool closeHandles();
70
71 private:
72 void copyFrom(const ms_http_helper_handles & copy);
73 void release();
74
75 ms_http_helper_handles_body * pimpl_;
76 std::string strResult_;
77 };
78 // end of http_client_group
80} // namespace matrix_science
81
82#endif // MS_HTTP_HELPER_HANDLES_HPP
83
84/*------------------------------- End of File -------------------------------*/
This class is used as a base class for several Mascot Parser classes.
Definition: ms_errors.hpp:696
The class holds HTTP to allow a POST request to be kept alive and retrieve any output received from t...
Definition: ms_http_helper_handles.hpp:47