17#ifndef MS_HTTP_HELPER_RESPONSE_HPP
18#define MS_HTTP_HELPER_RESPONSE_HPP
24namespace matrix_science
31 class MS_MASCOTRESFILE_API ms_http_helper_response
50 L_NOT_AUTHORISED = -2,
51 L_SECURITYENABLED = -3,
52 L_WEBAUTHENTICATIONDISABLED = -4,
53 L_GUESTLOGINDISABLED = -5
58 ms_http_helper_response();
61 ms_http_helper_response(
const std::string & text);
64 virtual ~ms_http_helper_response();
67 StatusCode getStatus()
const;
68 StatusCode status()
const {
return getStatus(); }
71 LoginErrorCode getLoginError()
const;
72 LoginErrorCode loginError()
const {
return getLoginError(); }
75 long getParserError()
const;
76 long parserError()
const {
return getParserError(); }
79 bool hasErrorText()
const;
82 std::string getErrorText()
const;
83 std::string errorText()
const {
return getErrorText(); }
86 bool hasSessionId()
const;
89 std::string getSessionID()
const;
90 std::string sessionId()
const {
return getSessionID(); }
93 bool hasTaskId()
const;
96 std::string getTaskID()
const;
97 std::string taskId()
const {
return getTaskID(); }
100 std::string getText()
const;
101 std::string text()
const {
return getText(); }
104 bool findValue(
const std::string & label, std::string & valueFromLabel)
const;
106 bool findValue(
const std::string & label, std::string & OUTPUT)
const;
112 LoginErrorCode loginError_;
116 std::string errorText_;
118 std::string sessionId_;
120 std::string searchTaskId_;
122 std::map<std::string, std::string> values_;