HTTPServer/readit
2022-06-29 11:38:44 -07:00

2809 lines
163 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

rm: cannot remove '*~': No such file or directory
In file included from HTTPPage.h:4,
from __index.h:4,
from HTTPPageList.h:6,
from HTTPServer.h:6,
from HTTPPUTHandler.cpp:3:
HTTPParameters.h: In constructor http::HTTPParameters::HTTPParameters(http::HTTPRequest&, core::TCPSession*, http::HTTPSession*, std::stringstream&, http::HTTPActionList&):
HTTPParameters.h:30:37: error: HTTPServer was not declared in this scope
30 | actionList(((HTTPServer *)(session->server)).actionList) {}
| ^~~~~~~~~~
HTTPParameters.h:30:49: error: expected primary-expression before ) token
30 | actionList(((HTTPServer *)(session->server)).actionList) {}
| ^
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPPUTHandler.cpp:3:
__welcome.h: In member function virtual int http::__welcome::page(http::HTTPParameters&):
__welcome.h:20:45: error: invalid use of incomplete type class http::HTTPActionList
20 | coreutils::ZString button1_Click(p.actionList.addAction(click));
| ~~^~~~~~~~~~
In file included from HTTPPage.h:4,
from __index.h:4,
from HTTPPageList.h:6,
from HTTPServer.h:6,
from HTTPPUTHandler.cpp:3:
HTTPParameters.h:11:11: note: forward declaration of class http::HTTPActionList
11 | class HTTPActionList;
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPPUTHandler.cpp:3:
__welcome.h: In member function virtual bool http::__welcome::button1Click::action(http::HTTPParameters&):
__welcome.h:38:32: error: no matching function for call to http::__setupadmin::__setupadmin(http::HTTPParameters&)
38 | page(__setupadmin(p), p);
| ^
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPPUTHandler.cpp:3:
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin()
9 | class __setupadmin : public HTTPPage {
| ^~~~~~~~~~~~
__setupadmin.h:9:10: note: candidate expects 0 arguments, 1 provided
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin(const http::__setupadmin&)
__setupadmin.h:9:10: note: no known conversion for argument 1 from http::HTTPParameters to const http::__setupadmin&
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin(http::__setupadmin&&)
__setupadmin.h:9:10: note: no known conversion for argument 1 from http::HTTPParameters to http::__setupadmin&&
In file included from HTTPActionList.h:6,
from HTTPServer.h:7,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from __index.h:4,
from HTTPPageList.h:6,
from HTTPPageList.cpp:1:
FlowAction.h:14:27: error: HTTPParameters has not been declared
14 | virtual bool action(HTTPParameters &p);
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:15,
from HTTPServer.h:6,
from HTTPPUTHandler.cpp:3:
__configure.h: In member function virtual int http::__configure::page(http::HTTPParameters&):
__configure.h:25:49: error: httpSession was not declared in this scope
25 | p.data << " <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
| ^~~~~~~~~~~
In file included from HTTPParameters.h:6,
from HTTPPage.h:4,
from __index.h:4,
from HTTPPageList.h:6,
from HTTPPageList.cpp:1:
HTTPServer.h:32:7: error: HTTPPageList does not name a type
32 | HTTPPageList pageList;
| ^~~~~~~~~~~~
In file included from HTTPPage.h:4,
from __index.h:4,
from HTTPPageList.h:6,
from HTTPPageList.cpp:1:
HTTPParameters.h: In constructor http::HTTPParameters::HTTPParameters(http::HTTPRequest&, core::TCPSession*, http::HTTPSession*, std::stringstream&, http::HTTPActionList&):
HTTPParameters.h:30:66: error: invalid cast from type core::TCPServer to type http::HTTPServer*
30 | actionList(((HTTPServer *)(session->server)).actionList) {}
| ^
In file included from __index.h:4,
from HTTPPageList.h:6,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
HTTPPage.h:12:24: error: HTTPParameters has not been declared
12 | virtual int page(HTTPParameters &p);
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:6,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__index.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__index.h: In member function virtual int http::__index::page(int&):
__index.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << "<html>"
| ^~~~
__index.h:26:12: error: request for member httpRequest in p, which is of non-class type int
26 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:7,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__script.h: At global scope:
__script.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPPageList.cpp:1:
__welcome.h: At global scope:
__welcome.h:37:15: error: bool http::__welcome::button1Click::action(http::HTTPParameters&) marked override, but does not override
37 | bool action(HTTPParameters &p) override {
| ^~~~~~
In file included from HTTPPageList.h:16,
from HTTPServer.h:6,
from HTTPPUTHandler.cpp:3:
__viewlist.h: In member function virtual int http::__viewlist::page(http::HTTPParameters&):
__viewlist.h:20:29: error: expected ; before while
20 | " </div>"
| ^
| ;
21 |
22 | while(!directory.eod()) {
| ~~~~~
__script.h: In member function virtual int http::__script::page(int&):
__script.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "function serverSend(url, type, receiver, formData, callback) {"
| ^~~~
__script.h:45:12: error: request for member httpRequest in p, which is of non-class type int
45 | p.httpRequest.response.addHeader("Content-Type", "text/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:8,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__editview.h: At global scope:
__editview.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__editview.h: In member function virtual int http::__editview::page(int&):
__editview.h:14:68: error: request for member httpRequest in p, which is of non-class type int
14 | sprintf(format, "/home/barant/jetserver/views/%s.view", p.httpRequest.uriValues["view_name"].str().c_str());
| ^~~~~~~~~~~
__welcome.h: In member function bool http::__welcome::button1Click::action(http::HTTPParameters&):
__welcome.h:38:32: error: no matching function for call to http::__setupadmin::__setupadmin(http::HTTPParameters&)
38 | page(__setupadmin(p), p);
| ^
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPPageList.cpp:1:
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin()
9 | class __setupadmin : public HTTPPage {
| ^~~~~~~~~~~~
__setupadmin.h:9:10: note: candidate expects 0 arguments, 1 provided
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin(const http::__setupadmin&)
__setupadmin.h:9:10: note: no known conversion for argument 1 from http::HTTPParameters to const http::__setupadmin&
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin(http::__setupadmin&&)
__setupadmin.h:9:10: note: no known conversion for argument 1 from http::HTTPParameters to http::__setupadmin&&
__editview.h:19:12: error: request for member data in p, which is of non-class type int
19 | p.data << " <div style=\"position: relative;\">"
| ^~~~
In file included from HTTPPageList.h:8,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__editview.h:80:12: error: request for member httpRequest in p, which is of non-class type int
80 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:9,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__editview_js.h: At global scope:
__editview_js.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__editview_js.h: In member function virtual int http::__editview_js::page(int&):
__editview_js.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << " var mainpage;"
| ^~~~
In file included from HTTPPageList.h:9,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__editview_js.h:210:12: error: request for member httpRequest in p, which is of non-class type int
210 | p.httpRequest.response.addHeader("Content-Type", "script/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:10,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__style.h: At global scope:
__style.h:13:16: error: HTTPParameters has not been declared
13 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__style.h: In member function virtual int http::__style::page(int&):
__style.h:15:12: error: request for member data in p, which is of non-class type int
15 | p.data << "body {background: #006;"
| ^~~~
__style.h:42:12: error: request for member httpRequest in p, which is of non-class type int
42 | p.httpRequest.response.addHeader("Content-Type", "text/css");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:11,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__entrypoints.h: At global scope:
__entrypoints.h:8:16: error: HTTPParameters has not been declared
8 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__entrypoints.h: In member function virtual int http::__entrypoints::page(int&):
__entrypoints.h:10:12: error: request for member data in p, which is of non-class type int
10 | p.data << "<form name=\"entrypoints\" action=\"entrypoints\" method=\"POST\">"
| ^~~~
__entrypoints.h:20:51: error: request for member httpSession in p, which is of non-class type int
20 | " <br><br>Session Id: " << p.httpSession->getSessionId() << ""
| ^~~~~~~~~~~
In file included from HTTPPageList.h:11,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__entrypoints.h:24:12: error: request for member httpRequest in p, which is of non-class type int
24 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:12,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__favicon_ico.h: At global scope:
__favicon_ico.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__favicon_ico.h: In member function virtual int http::__favicon_ico::page(int&):
__favicon_ico.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << std::string(header_data, 806);
| ^~~~
__favicon_ico.h:14:12: error: request for member httpRequest in p, which is of non-class type int
14 | p.httpRequest.response.addHeader("Content-Type", "image/x-icon");
| ^~~~~~~~~~~
In file included from __welcome.h:6,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
FlowAction.h: At global scope:
FlowAction.h:14:27: error: HTTPParameters has not been declared
14 | virtual bool action(HTTPParameters &p);
| ^~~~~~~~~~~~~~
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__setupadmin.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__setupadmin.h: In member function virtual int http::__setupadmin::page(int&):
__setupadmin.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << "<form name=\"setupadmin\" action=\"setupadmin\" method=\"POST\">"
| ^~~~
__setupadmin.h:28:51: error: request for member httpSession in p, which is of non-class type int
28 | " <br><br>Session Id: " << p.httpSession->getSessionId() << ""
| ^~~~~~~~~~~
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__setupadmin.h:33:12: error: request for member httpRequest in p, which is of non-class type int
33 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__welcome.h: At global scope:
__welcome.h:13:16: error: HTTPParameters has not been declared
13 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__welcome.h:37:22: error: HTTPParameters has not been declared
37 | bool action(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__welcome.h: In member function virtual int http::__welcome::page(int&):
__welcome.h:15:12: error: request for member data in p, which is of non-class type int
15 | p.data << "<div class=\"adminheader\">"
| ^~~~
__welcome.h:16:40: error: request for member httpSession in p, which is of non-class type int
16 | "Session Id: " << p.httpSession->getSessionId() << " <br>User: *ADMIN"
| ^~~~~~~~~~~
__welcome.h:20:45: error: request for member actionList in p, which is of non-class type int
20 | coreutils::ZString button1_Click(p.actionList.addAction(click));
| ^~~~~~~~~~
__welcome.h:21:12: error: request for member data in p, which is of non-class type int
21 | p.data << "<div id=\"admin\" class=\"window\">"
| ^~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__welcome.h:27:12: error: request for member data in p, which is of non-class type int
27 | p.data << "<div id=\"app1\"></div><br>";
| ^~~~
__welcome.h:29:12: error: request for member httpRequest in p, which is of non-class type int
29 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
__welcome.h: In member function virtual bool http::__welcome::button1Click::action(int&):
__welcome.h:38:32: error: no matching function for call to http::__setupadmin::__setupadmin(int&)
38 | page(__setupadmin(p), p);
| ^
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin()
9 | class __setupadmin : public HTTPPage {
| ^~~~~~~~~~~~
__setupadmin.h:9:10: note: candidate expects 0 arguments, 1 provided
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin(const http::__setupadmin&)
__setupadmin.h:9:10: note: no known conversion for argument 1 from int to const http::__setupadmin&
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin(http::__setupadmin&&)
__setupadmin.h:9:10: note: no known conversion for argument 1 from int to http::__setupadmin&&
In file included from HTTPPageList.h:14,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__mainmenu.h: At global scope:
__mainmenu.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__mainmenu.h: In member function virtual int http::__mainmenu::page(int&):
__mainmenu.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << "<div>"
| ^~~~
__mainmenu.h:36:12: error: request for member httpRequest in p, which is of non-class type int
36 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:15,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__configure.h: At global scope:
__configure.h:8:16: error: HTTPParameters has not been declared
8 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__configure.h: In member function virtual int http::__configure::page(int&):
__configure.h:10:12: error: request for member data in p, which is of non-class type int
10 | p.data << "<form name=\"configure\" action=\"setupadmin\" method=\"POST\">" << std::endl;
| ^~~~
__configure.h:11:12: error: request for member data in p, which is of non-class type int
11 | p.data << " <div class=\"window\"><h1>System Configuration</h1>" << std::endl;
| ^~~~
__configure.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "" << std::endl;
| ^~~~
__configure.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
| ^~~~
__configure.h:14:12: error: request for member data in p, which is of non-class type int
14 | p.data << " <div>Web Domain Name:</div>" << std::endl;
| ^~~~
__configure.h:15:12: error: request for member data in p, which is of non-class type int
15 | p.data << " <input type=\"text\" name=\"domainname\" size=\"30\">" << std::endl;
| ^~~~
__configure.h:16:12: error: request for member data in p, which is of non-class type int
16 | p.data << " </div>" << std::endl;
| ^~~~
__configure.h:17:12: error: request for member data in p, which is of non-class type int
17 | p.data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
| ^~~~
__configure.h:18:12: error: request for member data in p, which is of non-class type int
18 | p.data << " <div>View Directory:</div>" << std::endl;
| ^~~~
__configure.h:19:12: error: request for member data in p, which is of non-class type int
19 | p.data << " <input type=\"text\" name=\"viewdirectory\" size=\"30\">" << std::endl;
| ^~~~
__configure.h:20:12: error: request for member data in p, which is of non-class type int
20 | p.data << " </div>" << std::endl;
| ^~~~
__configure.h:21:12: error: request for member data in p, which is of non-class type int
21 | p.data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
| ^~~~
__configure.h:22:12: error: request for member data in p, which is of non-class type int
22 | p.data << " <div>Image Library Directory:</div>" << std::endl;
| ^~~~
__configure.h:23:12: error: request for member data in p, which is of non-class type int
23 | p.data << " <input type=\"password\" name=\"imagelibrary\" size=\"30\">" << std::endl;
| ^~~~
__configure.h:24:12: error: request for member data in p, which is of non-class type int
24 | p.data << " </div>" << std::endl;
| ^~~~
__configure.h:25:12: error: request for member data in p, which is of non-class type int
25 | p.data << " <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
| ^~~~
In file included from HTTPPageList.h:15,
from HTTPPageList.cpp:1:
__configure.h: In member function virtual int http::__configure::page(http::HTTPParameters&):
__configure.h:25:49: error: httpSession was not declared in this scope
25 | p.data << " <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
| ^~~~~~~~~~~
In file included from HTTPPageList.h:20,
from HTTPServer.h:6,
from HTTPPUTHandler.cpp:3:
_image.h: In member function virtual int http::_image::page(http::HTTPParameters&):
_image.h:15:61: error: httpRequest was not declared in this scope
15 | sprintf(format, "/home/barant/jetserver/image/%s", httpRequest.uriValues["image_name"].str().c_str());
| ^~~~~~~~~~~
_image.h:19:12: error: class http::HTTPParameters has no member named out
19 | p.out << workspace.asString();
| ^~~
__configure.h:25:49: error: httpSession was not declared in this scope
25 | p.data << " <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
| ^~~~~~~~~~~
__configure.h:26:12: error: request for member data in p, which is of non-class type int
26 | p.data << " <br>The configuration has not yet been established for this web site.</p>" << std::endl;
| ^~~~
__configure.h:27:12: error: request for member data in p, which is of non-class type int
27 | p.data << " <input type=\"button\" onmousedown=\"process('/mainmenu','configure', 'main'); return true;\" name=\"button1\" value=\"Update Configuration\">" << std::endl;
| ^~~~
In file included from HTTPPageList.h:15,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__configure.h:28:12: error: request for member data in p, which is of non-class type int
28 | p.data << " </div></form>" << std::endl;
| ^~~~
__configure.h:30:12: error: request for member httpRequest in p, which is of non-class type int
30 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from __index.h:4,
from HTTPPageList.h:6,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
HTTPPage.h:12:24: error: HTTPParameters has not been declared
12 | virtual int page(HTTPParameters &p);
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:6,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__index.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__index.h: In member function virtual int http::__index::page(int&):
__index.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << "<html>"
| ^~~~
__index.h:26:12: error: request for member httpRequest in p, which is of non-class type int
26 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:7,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__script.h: At global scope:
__script.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__script.h: In member function virtual int http::__script::page(int&):
__script.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "function serverSend(url, type, receiver, formData, callback) {"
| ^~~~
__script.h:45:12: error: request for member httpRequest in p, which is of non-class type int
45 | p.httpRequest.response.addHeader("Content-Type", "text/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:8,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__editview.h: At global scope:
__editview.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__editview.h: In member function virtual int http::__editview::page(int&):
__editview.h:14:68: error: request for member httpRequest in p, which is of non-class type int
14 | sprintf(format, "/home/barant/jetserver/views/%s.view", p.httpRequest.uriValues["view_name"].str().c_str());
| ^~~~~~~~~~~
__editview.h:19:12: error: request for member data in p, which is of non-class type int
19 | p.data << " <div style=\"position: relative;\">"
| ^~~~
In file included from HTTPPageList.h:8,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__editview.h:80:12: error: request for member httpRequest in p, which is of non-class type int
80 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:9,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__editview_js.h: At global scope:
__editview_js.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__editview_js.h: In member function virtual int http::__editview_js::page(int&):
__editview_js.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << " var mainpage;"
| ^~~~
In file included from HTTPPageList.h:9,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__editview_js.h:210:12: error: request for member httpRequest in p, which is of non-class type int
210 | p.httpRequest.response.addHeader("Content-Type", "script/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:10,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__style.h: At global scope:
__style.h:13:16: error: HTTPParameters has not been declared
13 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__style.h: In member function virtual int http::__style::page(int&):
__style.h:15:12: error: request for member data in p, which is of non-class type int
15 | p.data << "body {background: #006;"
| ^~~~
__style.h:42:12: error: request for member httpRequest in p, which is of non-class type int
42 | p.httpRequest.response.addHeader("Content-Type", "text/css");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:11,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__entrypoints.h: At global scope:
__entrypoints.h:8:16: error: HTTPParameters has not been declared
8 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__entrypoints.h: In member function virtual int http::__entrypoints::page(int&):
__entrypoints.h:10:12: error: request for member data in p, which is of non-class type int
10 | p.data << "<form name=\"entrypoints\" action=\"entrypoints\" method=\"POST\">"
| ^~~~
__entrypoints.h:20:51: error: request for member httpSession in p, which is of non-class type int
20 | " <br><br>Session Id: " << p.httpSession->getSessionId() << ""
| ^~~~~~~~~~~
In file included from HTTPPageList.h:11,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__entrypoints.h:24:12: error: request for member httpRequest in p, which is of non-class type int
24 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:12,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__favicon_ico.h: At global scope:
__favicon_ico.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__favicon_ico.h: In member function virtual int http::__favicon_ico::page(int&):
__favicon_ico.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << std::string(header_data, 806);
| ^~~~
__favicon_ico.h:14:12: error: request for member httpRequest in p, which is of non-class type int
14 | p.httpRequest.response.addHeader("Content-Type", "image/x-icon");
| ^~~~~~~~~~~
In file included from __welcome.h:6,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
FlowAction.h: At global scope:
FlowAction.h:14:27: error: HTTPParameters has not been declared
14 | virtual bool action(HTTPParameters &p);
| ^~~~~~~~~~~~~~
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__setupadmin.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__setupadmin.h: In member function virtual int http::__setupadmin::page(int&):
__setupadmin.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << "<form name=\"setupadmin\" action=\"setupadmin\" method=\"POST\">"
| ^~~~
__setupadmin.h:28:51: error: request for member httpSession in p, which is of non-class type int
28 | " <br><br>Session Id: " << p.httpSession->getSessionId() << ""
| ^~~~~~~~~~~
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__setupadmin.h:33:12: error: request for member httpRequest in p, which is of non-class type int
33 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__welcome.h: At global scope:
__welcome.h:13:16: error: HTTPParameters has not been declared
13 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__welcome.h:37:22: error: HTTPParameters has not been declared
37 | bool action(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__welcome.h: In member function virtual int http::__welcome::page(int&):
__welcome.h:15:12: error: request for member data in p, which is of non-class type int
15 | p.data << "<div class=\"adminheader\">"
| ^~~~
__welcome.h:16:40: error: request for member httpSession in p, which is of non-class type int
16 | "Session Id: " << p.httpSession->getSessionId() << " <br>User: *ADMIN"
| ^~~~~~~~~~~
__welcome.h:20:45: error: request for member actionList in p, which is of non-class type int
20 | coreutils::ZString button1_Click(p.actionList.addAction(click));
| ^~~~~~~~~~
__welcome.h:21:12: error: request for member data in p, which is of non-class type int
21 | p.data << "<div id=\"admin\" class=\"window\">"
| ^~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__welcome.h:27:12: error: request for member data in p, which is of non-class type int
27 | p.data << "<div id=\"app1\"></div><br>";
| ^~~~
__welcome.h:29:12: error: request for member httpRequest in p, which is of non-class type int
29 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
__welcome.h: In member function virtual bool http::__welcome::button1Click::action(int&):
__welcome.h:38:32: error: no matching function for call to http::__setupadmin::__setupadmin(int&)
38 | page(__setupadmin(p), p);
| ^
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin()
9 | class __setupadmin : public HTTPPage {
| ^~~~~~~~~~~~
__setupadmin.h:9:10: note: candidate expects 0 arguments, 1 provided
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin(const http::__setupadmin&)
__setupadmin.h:9:10: note: no known conversion for argument 1 from int to const http::__setupadmin&
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin(http::__setupadmin&&)
__setupadmin.h:9:10: note: no known conversion for argument 1 from int to http::__setupadmin&&
In file included from HTTPPageList.h:14,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__mainmenu.h: At global scope:
__mainmenu.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__mainmenu.h: In member function virtual int http::__mainmenu::page(int&):
__mainmenu.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << "<div>"
| ^~~~
__mainmenu.h:36:12: error: request for member httpRequest in p, which is of non-class type int
36 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:15,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__configure.h: At global scope:
__configure.h:8:16: error: HTTPParameters has not been declared
8 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__configure.h: In member function virtual int http::__configure::page(int&):
__configure.h:10:12: error: request for member data in p, which is of non-class type int
10 | p.data << "<form name=\"configure\" action=\"setupadmin\" method=\"POST\">" << std::endl;
| ^~~~
__configure.h:11:12: error: request for member data in p, which is of non-class type int
11 | p.data << " <div class=\"window\"><h1>System Configuration</h1>" << std::endl;
| ^~~~
__configure.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "" << std::endl;
| ^~~~
__configure.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
| ^~~~
__configure.h:14:12: error: request for member data in p, which is of non-class type int
14 | p.data << " <div>Web Domain Name:</div>" << std::endl;
| ^~~~
__configure.h:15:12: error: request for member data in p, which is of non-class type int
15 | p.data << " <input type=\"text\" name=\"domainname\" size=\"30\">" << std::endl;
| ^~~~
__configure.h:16:12: error: request for member data in p, which is of non-class type int
16 | p.data << " </div>" << std::endl;
| ^~~~
__configure.h:17:12: error: request for member data in p, which is of non-class type int
17 | p.data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
| ^~~~
__configure.h:18:12: error: request for member data in p, which is of non-class type int
18 | p.data << " <div>View Directory:</div>" << std::endl;
| ^~~~
__configure.h:19:12: error: request for member data in p, which is of non-class type int
19 | p.data << " <input type=\"text\" name=\"viewdirectory\" size=\"30\">" << std::endl;
| ^~~~
__configure.h:20:12: error: request for member data in p, which is of non-class type int
20 | p.data << " </div>" << std::endl;
| ^~~~
__configure.h:21:12: error: request for member data in p, which is of non-class type int
21 | p.data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
| ^~~~
__configure.h:22:12: error: request for member data in p, which is of non-class type int
22 | p.data << " <div>Image Library Directory:</div>" << std::endl;
| ^~~~
__configure.h:23:12: error: request for member data in p, which is of non-class type int
23 | p.data << " <input type=\"password\" name=\"imagelibrary\" size=\"30\">" << std::endl;
| ^~~~
__configure.h:24:12: error: request for member data in p, which is of non-class type int
24 | p.data << " </div>" << std::endl;
| ^~~~
__configure.h:25:12: error: request for member data in p, which is of non-class type int
25 | p.data << " <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
| ^~~~
__configure.h:25:49: error: httpSession was not declared in this scope
25 | p.data << " <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
| ^~~~~~~~~~~
In file included from HTTPPageList.h:16,
from HTTPPageList.cpp:1:
__viewlist.h: In member function virtual int http::__viewlist::page(http::HTTPParameters&):
__viewlist.h:20:29: error: expected ; before while
20 | " </div>"
| ^
| ;
21 |
22 | while(!directory.eod()) {
| ~~~~~
In file included from HTTPPageList.h:16,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__viewlist.h: At global scope:
__viewlist.h:12:16: error: HTTPParameters has not been declared
12 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__configure.h:26:12: error: request for member data in p, which is of non-class type int
26 | p.data << " <br>The configuration has not yet been established for this web site.</p>" << std::endl;
| ^~~~
__configure.h:27:12: error: request for member data in p, which is of non-class type int
27 | p.data << " <input type=\"button\" onmousedown=\"process('/mainmenu','configure', 'main'); return true;\" name=\"button1\" value=\"Update Configuration\">" << std::endl;
| ^~~~
In file included from HTTPPageList.h:15,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__configure.h:28:12: error: request for member data in p, which is of non-class type int
28 | p.data << " </div></form>" << std::endl;
| ^~~~
__configure.h:30:12: error: request for member httpRequest in p, which is of non-class type int
30 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
__viewlist.h: In member function virtual int http::__viewlist::page(int&):
__viewlist.h:16:12: error: request for member data in p, which is of non-class type int
16 | p.data << "<div>"
| ^~~~
In file included from HTTPPageList.h:16,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__viewlist.h:36:12: error: request for member data in p, which is of non-class type int
36 | p.data << "</div>";
| ^~~~
__viewlist.h:38:12: error: request for member httpRequest in p, which is of non-class type int
38 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:17,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__workflow.h: At global scope:
__workflow.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__workflow.h: In member function virtual int http::__workflow::page(int&):
__workflow.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "<svg style=\"width: 100%; height: 100%; position: absolute; top: 0px; left: 0px;\">"
| ^~~~
In file included from HTTPPageList.h:17,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__workflow.h:94:10: error: request for member httpRequest in p, which is of non-class type int
94 | p.httpRequest.response.addHeader("Content-Type", "script/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:18,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__workflow_js.h: At global scope:
__workflow_js.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__workflow_js.h: In member function virtual int http::__workflow_js::page(int&):
__workflow_js.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "var mouseDownX;"
| ^~~~
__workflow_js.h:89:10: error: request for member httpRequest in p, which is of non-class type int
89 | p.httpRequest.response.addHeader("Content-Type", "script/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:19,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__addview.h: At global scope:
__addview.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__addview.h: In member function virtual int http::__addview::page(int&):
__addview.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "<form name=\"addview\" action=\"addview\" method=\"POST\">"
| ^~~~
In file included from HTTPPageList.h:19,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
__addview.h:22:12: error: request for member httpRequest in p, which is of non-class type int
22 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:20,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
_image.h: At global scope:
_image.h:12:16: error: HTTPParameters has not been declared
12 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:20,
from HTTPPageList.cpp:1:
_image.h: In member function virtual int http::_image::page(http::HTTPParameters&):
_image.h:15:61: error: httpRequest was not declared in this scope
15 | sprintf(format, "/home/barant/jetserver/image/%s", httpRequest.uriValues["image_name"].str().c_str());
| ^~~~~~~~~~~
_image.h:19:12: error: class http::HTTPParameters has no member named out
19 | p.out << workspace.asString();
| ^~~
In file included from HTTPPageList.h:6,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__index.h:9:36: error: expected class-name before { token
9 | class __index : public HTTPPage {
| ^
__index.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__index.h:11:11: error: int http::__index::page(int&) marked override, but does not override
11 | int page(HTTPParameters &p) override {
| ^~~~
__index.h: In member function int http::__index::page(int&):
__index.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << "<html>"
| ^~~~
__index.h:26:12: error: request for member httpRequest in p, which is of non-class type int
26 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:7,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__script.h: At global scope:
__script.h:8:37: error: expected class-name before { token
8 | class __script : public HTTPPage {
| ^
__script.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__script.h:10:11: error: int http::__script::page(int&) marked override, but does not override
10 | int page(HTTPParameters &p) override {
| ^~~~
__script.h: In member function int http::__script::page(int&):
__script.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "function serverSend(url, type, receiver, formData, callback) {"
| ^~~~
__script.h:45:12: error: request for member httpRequest in p, which is of non-class type int
45 | p.httpRequest.response.addHeader("Content-Type", "text/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:8,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__editview.h: At global scope:
__editview.h:9:39: error: expected class-name before { token
9 | class __editview : public HTTPPage {
| ^
__editview.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__editview.h:11:11: error: int http::__editview::page(int&) marked override, but does not override
11 | int page(HTTPParameters &p) override {
| ^~~~
__editview.h: In member function int http::__editview::page(int&):
__editview.h:14:68: error: request for member httpRequest in p, which is of non-class type int
14 | sprintf(format, "/home/barant/jetserver/views/%s.view", p.httpRequest.uriValues["view_name"].str().c_str());
| ^~~~~~~~~~~
__editview.h:19:12: error: request for member data in p, which is of non-class type int
19 | p.data << " <div style=\"position: relative;\">"
| ^~~~
In file included from HTTPPageList.h:8,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__editview.h:80:12: error: request for member httpRequest in p, which is of non-class type int
80 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:9,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__editview_js.h: At global scope:
__editview_js.h:8:42: error: expected class-name before { token
8 | class __editview_js : public HTTPPage {
| ^
__editview_js.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__editview_js.h:10:11: error: int http::__editview_js::page(int&) marked override, but does not override
10 | int page(HTTPParameters &p) override {
| ^~~~
__editview_js.h: In member function int http::__editview_js::page(int&):
__editview_js.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << " var mainpage;"
| ^~~~
In file included from HTTPPageList.h:9,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__editview_js.h:210:12: error: request for member httpRequest in p, which is of non-class type int
210 | p.httpRequest.response.addHeader("Content-Type", "script/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:10,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__style.h: At global scope:
__style.h:11:36: error: expected class-name before { token
11 | class __style : public HTTPPage {
| ^
__style.h:13:16: error: HTTPParameters has not been declared
13 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
HTTPPUTHandler.cpp: In member function virtual int http::HTTPPUTHandler::processCommand(coreutils::ZString&, core::TCPSession&):
HTTPPUTHandler.cpp:18:66: error: no matching function for call to http::HTTPParameters::HTTPParameters(http::HTTPRequest&, core::TCPSession&, http::HTTPSession*&, std::stringstream&)
18 | HTTPParameters p(httpRequest, session, httpSession, content);
| ^
__style.h:13:11: error: int http::__style::page(int&) marked override, but does not override
13 | int page(HTTPParameters &p) override {
| ^~~~
__style.h: In member function int http::__style::page(int&):
__style.h:15:12: error: request for member data in p, which is of non-class type int
15 | p.data << "body {background: #006;"
| ^~~~
__style.h:42:12: error: request for member httpRequest in p, which is of non-class type int
42 | p.httpRequest.response.addHeader("Content-Type", "text/css");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:11,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__entrypoints.h: At global scope:
__entrypoints.h:6:42: error: expected class-name before { token
6 | class __entrypoints : public HTTPPage {
| ^
__entrypoints.h:8:16: error: HTTPParameters has not been declared
8 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__entrypoints.h:8:11: error: int http::__entrypoints::page(int&) marked override, but does not override
8 | int page(HTTPParameters &p) override {
| ^~~~
__entrypoints.h: In member function int http::__entrypoints::page(int&):
__entrypoints.h:10:12: error: request for member data in p, which is of non-class type int
10 | p.data << "<form name=\"entrypoints\" action=\"entrypoints\" method=\"POST\">"
| ^~~~
__entrypoints.h:20:51: error: request for member httpSession in p, which is of non-class type int
20 | " <br><br>Session Id: " << p.httpSession->getSessionId() << ""
| ^~~~~~~~~~~
In file included from HTTPPageList.h:11,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__entrypoints.h:24:12: error: request for member httpRequest in p, which is of non-class type int
24 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:12,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__favicon_ico.h: At global scope:
__favicon_ico.h:8:42: error: expected class-name before { token
8 | class __favicon_ico : public HTTPPage {
| ^
__favicon_ico.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__favicon_ico.h:10:11: error: int http::__favicon_ico::page(int&) marked override, but does not override
10 | int page(HTTPParameters &p) override {
| ^~~~
__favicon_ico.h: In member function int http::__favicon_ico::page(int&):
__favicon_ico.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << std::string(header_data, 806);
| ^~~~
__favicon_ico.h:14:12: error: request for member httpRequest in p, which is of non-class type int
14 | p.httpRequest.response.addHeader("Content-Type", "image/x-icon");
| ^~~~~~~~~~~
In file included from __welcome.h:6,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
FlowAction.h: At global scope:
FlowAction.h:14:27: error: HTTPParameters has not been declared
14 | virtual bool action(HTTPParameters &p);
| ^~~~~~~~~~~~~~
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__setupadmin.h:9:41: error: expected class-name before { token
9 | class __setupadmin : public HTTPPage {
| ^
__setupadmin.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__setupadmin.h:11:11: error: int http::__setupadmin::page(int&) marked override, but does not override
11 | int page(HTTPParameters &p) override {
| ^~~~
__setupadmin.h: In member function int http::__setupadmin::page(int&):
__setupadmin.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << "<form name=\"setupadmin\" action=\"setupadmin\" method=\"POST\">"
| ^~~~
__setupadmin.h:28:51: error: request for member httpSession in p, which is of non-class type int
28 | " <br><br>Session Id: " << p.httpSession->getSessionId() << ""
| ^~~~~~~~~~~
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__setupadmin.h:33:12: error: request for member httpRequest in p, which is of non-class type int
33 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__welcome.h: At global scope:
__welcome.h:11:38: error: expected class-name before { token
11 | class __welcome : public HTTPPage {
| ^
__welcome.h:13:16: error: HTTPParameters has not been declared
13 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__welcome.h:37:22: error: HTTPParameters has not been declared
37 | bool action(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__welcome.h:13:11: error: int http::__welcome::page(int&) marked override, but does not override
13 | int page(HTTPParameters &p) override {
| ^~~~
__welcome.h: In member function int http::__welcome::page(int&):
__welcome.h:15:12: error: request for member data in p, which is of non-class type int
15 | p.data << "<div class=\"adminheader\">"
| ^~~~
__welcome.h:16:40: error: request for member httpSession in p, which is of non-class type int
16 | "Session Id: " << p.httpSession->getSessionId() << " <br>User: *ADMIN"
| ^~~~~~~~~~~
__welcome.h:20:45: error: request for member actionList in p, which is of non-class type int
20 | coreutils::ZString button1_Click(p.actionList.addAction(click));
| ^~~~~~~~~~
__welcome.h:21:12: error: request for member data in p, which is of non-class type int
21 | p.data << "<div id=\"admin\" class=\"window\">"
| ^~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__welcome.h:27:12: error: request for member data in p, which is of non-class type int
27 | p.data << "<div id=\"app1\"></div><br>";
| ^~~~
__welcome.h:29:12: error: request for member httpRequest in p, which is of non-class type int
29 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
__welcome.h: In member function virtual bool http::__welcome::button1Click::action(int&):
__welcome.h:38:32: error: no matching function for call to http::__setupadmin::__setupadmin(int&)
38 | page(__setupadmin(p), p);
| ^
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin()
9 | class __setupadmin : public HTTPPage {
| ^~~~~~~~~~~~
__setupadmin.h:9:10: note: candidate expects 0 arguments, 1 provided
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin(const http::__setupadmin&)
__setupadmin.h:9:10: note: no known conversion for argument 1 from int to const http::__setupadmin&
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin(http::__setupadmin&&)
__setupadmin.h:9:10: note: no known conversion for argument 1 from int to http::__setupadmin&&
In file included from HTTPPageList.h:14,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__mainmenu.h: At global scope:
__mainmenu.h:9:39: error: expected class-name before { token
9 | class __mainmenu : public HTTPPage {
| ^
__mainmenu.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__mainmenu.h:11:11: error: int http::__mainmenu::page(int&) marked override, but does not override
11 | int page(HTTPParameters &p) override {
| ^~~~
__mainmenu.h: In member function int http::__mainmenu::page(int&):
__mainmenu.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << "<div>"
| ^~~~
__mainmenu.h:36:12: error: request for member httpRequest in p, which is of non-class type int
36 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:15,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__configure.h: At global scope:
__configure.h:6:40: error: expected class-name before { token
6 | class __configure : public HTTPPage {
| ^
__configure.h:8:16: error: HTTPParameters has not been declared
8 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__configure.h:8:11: error: int http::__configure::page(int&) marked override, but does not override
8 | int page(HTTPParameters &p) override {
| ^~~~
__configure.h: In member function int http::__configure::page(int&):
__configure.h:10:12: error: request for member data in p, which is of non-class type int
10 | p.data << "<form name=\"configure\" action=\"setupadmin\" method=\"POST\">" << std::endl;
| ^~~~
__configure.h:11:12: error: request for member data in p, which is of non-class type int
11 | p.data << " <div class=\"window\"><h1>System Configuration</h1>" << std::endl;
| ^~~~
__configure.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "" << std::endl;
| ^~~~
__configure.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
| ^~~~
__configure.h:14:12: error: request for member data in p, which is of non-class type int
14 | p.data << " <div>Web Domain Name:</div>" << std::endl;
| ^~~~
__configure.h:15:12: error: request for member data in p, which is of non-class type int
15 | p.data << " <input type=\"text\" name=\"domainname\" size=\"30\">" << std::endl;
| ^~~~
__configure.h:16:12: error: request for member data in p, which is of non-class type int
16 | p.data << " </div>" << std::endl;
| ^~~~
In file included from HTTPPage.h:4,
from __index.h:4,
from HTTPPageList.h:6,
from HTTPServer.h:6,
from HTTPPUTHandler.cpp:3:
HTTPParameters.h:21:9: note: candidate: http::HTTPParameters::HTTPParameters(http::HTTPRequest&, core::TCPSession*, http::HTTPSession*, std::stringstream&, http::HTTPActionList&)
21 | HTTPParameters(HTTPRequest &httpRequest,
| ^~~~~~~~~~~~~~
HTTPParameters.h:21:9: note: candidate expects 5 arguments, 4 provided
HTTPParameters.h:18:11: note: candidate: constexpr http::HTTPParameters::HTTPParameters(const http::HTTPParameters&)
18 | class HTTPParameters {
| ^~~~~~~~~~~~~~
HTTPParameters.h:18:11: note: candidate expects 1 argument, 4 provided
HTTPParameters.h:18:11: note: candidate: constexpr http::HTTPParameters::HTTPParameters(http::HTTPParameters&&)
HTTPParameters.h:18:11: note: candidate expects 1 argument, 4 provided
__configure.h:17:12: error: request for member data in p, which is of non-class type int
17 | p.data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
| ^~~~
__configure.h:18:12: error: request for member data in p, which is of non-class type int
18 | p.data << " <div>View Directory:</div>" << std::endl;
| ^~~~
HTTPPUTHandler.cpp:26:7: error: expected catch before session
26 | session.out << httpRequest.response.getResponse(content).str();
| ^~~~~~~
HTTPPUTHandler.cpp:26:7: error: expected ( before session
26 | session.out << httpRequest.response.getResponse(content).str();
| ^~~~~~~
| (
__configure.h:19:12: error: request for member data in p, which is of non-class type int
19 | p.data << " <input type=\"text\" name=\"viewdirectory\" size=\"30\">" << std::endl;
| ^~~~
__configure.h:20:12: error: request for member data in p, which is of non-class type int
20 | p.data << " </div>" << std::endl;
| ^~~~
__configure.h:21:12: error: request for member data in p, which is of non-class type int
21 | p.data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
| ^~~~
__configure.h:22:12: error: request for member data in p, which is of non-class type int
22 | p.data << " <div>Image Library Directory:</div>" << std::endl;
| ^~~~
__configure.h:23:12: error: request for member data in p, which is of non-class type int
23 | p.data << " <input type=\"password\" name=\"imagelibrary\" size=\"30\">" << std::endl;
| ^~~~
__configure.h:24:12: error: request for member data in p, which is of non-class type int
24 | p.data << " </div>" << std::endl;
| ^~~~
__configure.h:25:12: error: request for member data in p, which is of non-class type int
25 | p.data << " <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
| ^~~~
HTTPPUTHandler.cpp:26:7: error: session does not name a type
26 | session.out << httpRequest.response.getResponse(content).str();
| ^~~~~~~
HTTPPUTHandler.cpp:26:14: error: expected ) before . token
26 | session.out << httpRequest.response.getResponse(content).str();
| ~~~~~~~^
| )
HTTPPUTHandler.cpp:26:14: error: expected { before . token
HTTPPUTHandler.cpp:26:14: error: expected primary-expression before . token
_image.h: In member function virtual int http::_image::page(int&):
_image.h:15:61: error: httpRequest was not declared in this scope
15 | sprintf(format, "/home/barant/jetserver/image/%s", httpRequest.uriValues["image_name"].str().c_str());
| ^~~~~~~~~~~
_image.h:18:12: error: request for member httpRequest in p, which is of non-class type int
18 | p.httpRequest.response.addHeader("Content-Type", "image/png");
| ^~~~~~~~~~~
_image.h:19:12: error: request for member out in p, which is of non-class type int
19 | p.out << workspace.asString();
| ^~~
__configure.h:25:49: error: httpSession was not declared in this scope
25 | p.data << " <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
| ^~~~~~~~~~~
__configure.h:26:12: error: request for member data in p, which is of non-class type int
26 | p.data << " <br>The configuration has not yet been established for this web site.</p>" << std::endl;
| ^~~~
__configure.h:27:12: error: request for member data in p, which is of non-class type int
27 | p.data << " <input type=\"button\" onmousedown=\"process('/mainmenu','configure', 'main'); return true;\" name=\"button1\" value=\"Update Configuration\">" << std::endl;
| ^~~~
In file included from HTTPPageList.h:15,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__configure.h:28:12: error: request for member data in p, which is of non-class type int
28 | p.data << " </div></form>" << std::endl;
| ^~~~
__configure.h:30:12: error: request for member httpRequest in p, which is of non-class type int
30 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPOSTHandler.cpp:2:
HTTPPageList.h: At global scope:
HTTPPageList.h:45:27: error: HTTPParameters has not been declared
45 | bool processRequest(HTTPParameters &p);
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:16,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__viewlist.h: At global scope:
__viewlist.h:12:16: error: HTTPParameters has not been declared
12 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__viewlist.h: In member function virtual int http::__viewlist::page(int&):
__viewlist.h:16:12: error: request for member data in p, which is of non-class type int
16 | p.data << "<div>"
| ^~~~
In file included from HTTPPageList.h:16,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__viewlist.h:36:12: error: request for member data in p, which is of non-class type int
36 | p.data << "</div>";
| ^~~~
__viewlist.h:38:12: error: request for member httpRequest in p, which is of non-class type int
38 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:17,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__workflow.h: At global scope:
__workflow.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__workflow.h: In member function virtual int http::__workflow::page(int&):
__workflow.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "<svg style=\"width: 100%; height: 100%; position: absolute; top: 0px; left: 0px;\">"
| ^~~~
In file included from HTTPPageList.h:17,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__workflow.h:94:10: error: request for member httpRequest in p, which is of non-class type int
94 | p.httpRequest.response.addHeader("Content-Type", "script/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:18,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__workflow_js.h: At global scope:
__workflow_js.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__workflow_js.h: In member function virtual int http::__workflow_js::page(int&):
__workflow_js.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "var mouseDownX;"
| ^~~~
__workflow_js.h:89:10: error: request for member httpRequest in p, which is of non-class type int
89 | p.httpRequest.response.addHeader("Content-Type", "script/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:19,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__addview.h: At global scope:
__addview.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__addview.h: In member function virtual int http::__addview::page(int&):
__addview.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "<form name=\"addview\" action=\"addview\" method=\"POST\">"
| ^~~~
In file included from HTTPPageList.h:19,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
__addview.h:22:12: error: request for member httpRequest in p, which is of non-class type int
22 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:20,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
_image.h: At global scope:
_image.h:12:16: error: HTTPParameters has not been declared
12 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPage.h:4,
from __index.h:4,
from HTTPPageList.h:6,
from HTTPServer.h:6,
from main.cpp:8:
HTTPParameters.h: In constructor http::HTTPParameters::HTTPParameters(http::HTTPRequest&, core::TCPSession*, http::HTTPSession*, std::stringstream&, http::HTTPActionList&):
HTTPParameters.h:30:37: error: HTTPServer was not declared in this scope
30 | actionList(((HTTPServer *)(session->server)).actionList) {}
| ^~~~~~~~~~
HTTPParameters.h:30:49: error: expected primary-expression before ) token
30 | actionList(((HTTPServer *)(session->server)).actionList) {}
| ^
HTTPPageList.cpp: In member function bool http::HTTPPageList::processRequest(http::HTTPParameters&):
HTTPPageList.cpp:28:35: error: Exception is not a member of coreutils
28 | throw coreutils::Exception("Syntax error in entrypoint data.");
| ^~~~~~~~~
HTTPPageList.cpp:35:24: error: Exception is not a member of coreutils
35 | throw coreutils::Exception("Requested resource not found.");
| ^~~~~~~~~
_image.h: In member function virtual int http::_image::page(int&):
_image.h:15:61: error: httpRequest was not declared in this scope
15 | sprintf(format, "/home/barant/jetserver/image/%s", httpRequest.uriValues["image_name"].str().c_str());
| ^~~~~~~~~~~
_image.h:18:12: error: request for member httpRequest in p, which is of non-class type int
18 | p.httpRequest.response.addHeader("Content-Type", "image/png");
| ^~~~~~~~~~~
_image.h:19:12: error: request for member out in p, which is of non-class type int
19 | p.out << workspace.asString();
| ^~~
In file included from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
HTTPPageList.h: At global scope:
HTTPPageList.h:45:27: error: HTTPParameters has not been declared
45 | bool processRequest(HTTPParameters &p);
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from main.cpp:8:
__welcome.h: In member function virtual int http::__welcome::page(http::HTTPParameters&):
__welcome.h:20:45: error: invalid use of incomplete type class http::HTTPActionList
20 | coreutils::ZString button1_Click(p.actionList.addAction(click));
| ~~^~~~~~~~~~
In file included from HTTPPage.h:4,
from __index.h:4,
from HTTPPageList.h:6,
from HTTPServer.h:6,
from main.cpp:8:
HTTPParameters.h:11:11: note: forward declaration of class http::HTTPActionList
11 | class HTTPActionList;
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from main.cpp:8:
__welcome.h: In member function virtual bool http::__welcome::button1Click::action(http::HTTPParameters&):
__welcome.h:38:32: error: no matching function for call to http::__setupadmin::__setupadmin(http::HTTPParameters&)
38 | page(__setupadmin(p), p);
| ^
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from main.cpp:8:
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin()
9 | class __setupadmin : public HTTPPage {
| ^~~~~~~~~~~~
__setupadmin.h:9:10: note: candidate expects 0 arguments, 1 provided
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin(const http::__setupadmin&)
__setupadmin.h:9:10: note: no known conversion for argument 1 from http::HTTPParameters to const http::__setupadmin&
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin(http::__setupadmin&&)
__setupadmin.h:9:10: note: no known conversion for argument 1 from http::HTTPParameters to http::__setupadmin&&
In file included from HTTPPageList.h:16,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__viewlist.h: At global scope:
__viewlist.h:10:39: error: expected class-name before { token
10 | class __viewlist : public HTTPPage {
| ^
__viewlist.h:12:16: error: HTTPParameters has not been declared
12 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__viewlist.h:12:11: error: int http::__viewlist::page(int&) marked override, but does not override
12 | int page(HTTPParameters &p) override {
| ^~~~
__viewlist.h: In member function int http::__viewlist::page(int&):
__viewlist.h:16:12: error: request for member data in p, which is of non-class type int
16 | p.data << "<div>"
| ^~~~
In file included from HTTPPageList.h:16,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__viewlist.h:36:12: error: request for member data in p, which is of non-class type int
36 | p.data << "</div>";
| ^~~~
__viewlist.h:38:12: error: request for member httpRequest in p, which is of non-class type int
38 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:17,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__workflow.h: At global scope:
__workflow.h:8:39: error: expected class-name before { token
8 | class __workflow : public HTTPPage {
| ^
__workflow.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__workflow.h:10:11: error: int http::__workflow::page(int&) marked override, but does not override
10 | int page(HTTPParameters &p) override {
| ^~~~
__workflow.h: In member function int http::__workflow::page(int&):
__workflow.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "<svg style=\"width: 100%; height: 100%; position: absolute; top: 0px; left: 0px;\">"
| ^~~~
In file included from HTTPPageList.h:17,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__workflow.h:94:10: error: request for member httpRequest in p, which is of non-class type int
94 | p.httpRequest.response.addHeader("Content-Type", "script/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:18,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__workflow_js.h: At global scope:
__workflow_js.h:8:42: error: expected class-name before { token
8 | class __workflow_js : public HTTPPage {
| ^
__workflow_js.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__workflow_js.h:10:11: error: int http::__workflow_js::page(int&) marked override, but does not override
10 | int page(HTTPParameters &p) override {
| ^~~~
__workflow_js.h: In member function int http::__workflow_js::page(int&):
__workflow_js.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "var mouseDownX;"
| ^~~~
__workflow_js.h:89:10: error: request for member httpRequest in p, which is of non-class type int
89 | p.httpRequest.response.addHeader("Content-Type", "script/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:19,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__addview.h: At global scope:
__addview.h:8:38: error: expected class-name before { token
8 | class __addview : public HTTPPage {
| ^
__addview.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__addview.h:10:11: error: int http::__addview::page(int&) marked override, but does not override
10 | int page(HTTPParameters &p) override {
| ^~~~
__addview.h: In member function int http::__addview::page(int&):
__addview.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "<form name=\"addview\" action=\"addview\" method=\"POST\">"
| ^~~~
In file included from HTTPPageList.h:19,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
__addview.h:22:12: error: request for member httpRequest in p, which is of non-class type int
22 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:20,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
_image.h: At global scope:
_image.h:10:35: error: expected class-name before { token
10 | class _image : public HTTPPage {
| ^
_image.h:12:16: error: HTTPParameters has not been declared
12 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
_image.h:12:11: error: int http::_image::page(int&) marked override, but does not override
12 | int page(HTTPParameters &p) override {
| ^~~~
In file included from HTTPPageList.h:15,
from HTTPServer.h:6,
from main.cpp:8:
__configure.h: In member function virtual int http::__configure::page(http::HTTPParameters&):
__configure.h:25:49: error: httpSession was not declared in this scope
25 | p.data << " <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
| ^~~~~~~~~~~
_image.h: In member function int http::_image::page(int&):
_image.h:15:61: error: httpRequest was not declared in this scope
15 | sprintf(format, "/home/barant/jetserver/image/%s", httpRequest.uriValues["image_name"].str().c_str());
| ^~~~~~~~~~~
_image.h:18:12: error: request for member httpRequest in p, which is of non-class type int
18 | p.httpRequest.response.addHeader("Content-Type", "image/png");
| ^~~~~~~~~~~
_image.h:19:12: error: request for member out in p, which is of non-class type int
19 | p.out << workspace.asString();
| ^~~
In file included from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPPage.h:4,
from HTTPPage.cpp:1:
HTTPPageList.h: At global scope:
HTTPPageList.h:45:27: error: HTTPParameters has not been declared
45 | bool processRequest(HTTPParameters &p);
| ^~~~~~~~~~~~~~
HTTPPageList.h:47:16: error: HTTPPage has not been declared
47 | void add(HTTPPage &page, std::string entryURL);
| ^~~~~~~~
HTTPPageList.h:49:19: error: HTTPPage has not been declared
49 | void remove(HTTPPage &page);
| ^~~~~~~~
In file included from HTTPPageList.h:16,
from HTTPServer.h:6,
from main.cpp:8:
__viewlist.h: In member function virtual int http::__viewlist::page(http::HTTPParameters&):
__viewlist.h:20:29: error: expected ; before while
20 | " </div>"
| ^
| ;
21 |
22 | while(!directory.eod()) {
| ~~~~~
HTTPPageList.h:54:29: error: HTTPPage was not declared in this scope; did you mean HTTPPageList?
54 | std::map<std::string, HTTPPage *> pages;
| ^~~~~~~~
| HTTPPageList
HTTPPageList.h:54:39: error: template argument 2 is invalid
54 | std::map<std::string, HTTPPage *> pages;
| ^
HTTPPageList.h:54:39: error: template argument 4 is invalid
In file included from HTTPPOSTHandler.cpp:2:
HTTPParameters.h: In constructor http::HTTPParameters::HTTPParameters(http::HTTPRequest&, core::TCPSession*, http::HTTPSession*, std::stringstream&, http::HTTPActionList&):
HTTPParameters.h:30:66: error: invalid cast from type core::TCPServer to type http::HTTPServer*
30 | actionList(((HTTPServer *)(session->server)).actionList) {}
| ^
HTTPPageList.h: In constructor http::HTTPPageList::HTTPPageList():
HTTPPageList.h:28:14: error: cannot convert http::__index to int&
28 | add(index, "/");
| ^~~~~
| |
| http::__index
HTTPPageList.h:47:26: note: initializing argument 1 of void http::HTTPPageList::add(int&, std::string)
47 | void add(HTTPPage &page, std::string entryURL);
| ~~~~~~~~~~^~~~
HTTPPageList.h:29:14: error: cannot convert http::__script to int&
29 | add(script, "/script");
| ^~~~~~
| |
| http::__script
HTTPPageList.h:47:26: note: initializing argument 1 of void http::HTTPPageList::add(int&, std::string)
47 | void add(HTTPPage &page, std::string entryURL);
| ~~~~~~~~~~^~~~
HTTPPageList.h:30:14: error: cannot convert http::__editview to int&
30 | add(editview, "/editview/{view_name}");
| ^~~~~~~~
| |
| http::__editview
HTTPPageList.h:47:26: note: initializing argument 1 of void http::HTTPPageList::add(int&, std::string)
47 | void add(HTTPPage &page, std::string entryURL);
| ~~~~~~~~~~^~~~
HTTPPageList.h:31:12: error: cannot convert http::__editview_js to int&
31 | add(editview_js, "/__editview_js");
| ^~~~~~~~~~~
| |
| http::__editview_js
HTTPPageList.h:47:26: note: initializing argument 1 of void http::HTTPPageList::add(int&, std::string)
47 | void add(HTTPPage &page, std::string entryURL);
| ~~~~~~~~~~^~~~
HTTPPageList.h:32:14: error: cannot convert http::__style to int&
32 | add(style, "/style");
| ^~~~~
| |
| http::__style
HTTPPageList.h:47:26: note: initializing argument 1 of void http::HTTPPageList::add(int&, std::string)
47 | void add(HTTPPage &page, std::string entryURL);
| ~~~~~~~~~~^~~~
HTTPPageList.h:33:14: error: cannot convert http::__entrypoints to int&
33 | add(entrypoints, "/entrypoints");
| ^~~~~~~~~~~
| |
| http::__entrypoints
HTTPPageList.h:47:26: note: initializing argument 1 of void http::HTTPPageList::add(int&, std::string)
47 | void add(HTTPPage &page, std::string entryURL);
| ~~~~~~~~~~^~~~
HTTPPageList.h:34:14: error: cannot convert http::__favicon_ico to int&
34 | add(favicon_ico, "/favicon.ico");
| ^~~~~~~~~~~
| |
| http::__favicon_ico
HTTPPageList.h:47:26: note: initializing argument 1 of void http::HTTPPageList::add(int&, std::string)
47 | void add(HTTPPage &page, std::string entryURL);
| ~~~~~~~~~~^~~~
HTTPPageList.h:35:14: error: cannot convert http::__welcome to int&
35 | add(welcome, "/welcome");
| ^~~~~~~
| |
| http::__welcome
HTTPPageList.h:47:26: note: initializing argument 1 of void http::HTTPPageList::add(int&, std::string)
47 | void add(HTTPPage &page, std::string entryURL);
| ~~~~~~~~~~^~~~
HTTPPageList.h:36:14: error: cannot convert http::__mainmenu to int&
36 | add(mainmenu, "/mainmenu");
| ^~~~~~~~
| |
| http::__mainmenu
HTTPPageList.h:47:26: note: initializing argument 1 of void http::HTTPPageList::add(int&, std::string)
47 | void add(HTTPPage &page, std::string entryURL);
| ~~~~~~~~~~^~~~
HTTPPageList.h:37:14: error: cannot convert http::__configure to int&
37 | add(configure, "/configure");
| ^~~~~~~~~
| |
| http::__configure
HTTPPageList.h:47:26: note: initializing argument 1 of void http::HTTPPageList::add(int&, std::string)
47 | void add(HTTPPage &page, std::string entryURL);
| ~~~~~~~~~~^~~~
HTTPPageList.h:38:14: error: cannot convert http::__viewlist to int&
38 | add(viewlist, "/viewlist");
| ^~~~~~~~
| |
| http::__viewlist
HTTPPageList.h:47:26: note: initializing argument 1 of void http::HTTPPageList::add(int&, std::string)
47 | void add(HTTPPage &page, std::string entryURL);
| ~~~~~~~~~~^~~~
HTTPPageList.h:39:12: error: cannot convert http::__workflow to int&
39 | add(workflow, "/workflow");
| ^~~~~~~~
| |
| http::__workflow
HTTPPageList.h:47:26: note: initializing argument 1 of void http::HTTPPageList::add(int&, std::string)
47 | void add(HTTPPage &page, std::string entryURL);
| ~~~~~~~~~~^~~~
HTTPPageList.h:40:12: error: cannot convert http::__workflow_js to int&
40 | add(workflow_js, "/__workflow_js");
| ^~~~~~~~~~~
| |
| http::__workflow_js
HTTPPageList.h:47:26: note: initializing argument 1 of void http::HTTPPageList::add(int&, std::string)
47 | void add(HTTPPage &page, std::string entryURL);
| ~~~~~~~~~~^~~~
HTTPPageList.h:41:14: error: cannot convert http::_image to int&
41 | add(image, "/image/{image_name}");
| ^~~~~
| |
| http::_image
HTTPPageList.h:47:26: note: initializing argument 1 of void http::HTTPPageList::add(int&, std::string)
47 | void add(HTTPPage &page, std::string entryURL);
| ~~~~~~~~~~^~~~
HTTPPageList.h:42:14: error: cannot convert http::__addview to int&
42 | add(addview, "/addview");
| ^~~~~~~
| |
| http::__addview
HTTPPageList.h:47:26: note: initializing argument 1 of void http::HTTPPageList::add(int&, std::string)
47 | void add(HTTPPage &page, std::string entryURL);
| ~~~~~~~~~~^~~~
HTTPPOSTHandler.cpp: In member function virtual int http::HTTPPOSTHandler::processCommand(coreutils::ZString&, core::TCPSession&):
HTTPPOSTHandler.cpp:16:65: error: class core::TCPServer has no member named httpSessions
16 | HTTPSession *httpSession = (HTTPServer &)(session.server).httpSessions.findSessionByHeader(httpRequest);
| ^~~~~~~~~~~~
HTTPPOSTHandler.cpp:23:41: error: class core::TCPServer has no member named actionList
23 | (HTTPServer &)(session.server).actionList.processRequest(p);
| ^~~~~~~~~~
HTTPPOSTHandler.cpp:27:24: error: Exception in namespace coreutils does not name a type
27 | catch(coreutils::Exception e) {
| ^~~~~~~~~
In file included from HTTPPageList.h:20,
from HTTPServer.h:6,
from main.cpp:8:
_image.h: In member function virtual int http::_image::page(http::HTTPParameters&):
_image.h:15:61: error: httpRequest was not declared in this scope
15 | sprintf(format, "/home/barant/jetserver/image/%s", httpRequest.uriValues["image_name"].str().c_str());
| ^~~~~~~~~~~
In file included from HTTPGETHandler.cpp:2:
HTTPParameters.h: In constructor http::HTTPParameters::HTTPParameters(http::HTTPRequest&, core::TCPSession*, http::HTTPSession*, std::stringstream&, http::HTTPActionList&):
HTTPParameters.h:30:66: error: invalid cast from type core::TCPServer to type http::HTTPServer*
30 | actionList(((HTTPServer *)(session->server)).actionList) {}
| ^
_image.h:19:12: error: class http::HTTPParameters has no member named out
19 | p.out << workspace.asString();
| ^~~
HTTPGETHandler.cpp: In member function virtual int http::HTTPGETHandler::processCommand(coreutils::ZString&, core::TCPSession&):
HTTPGETHandler.cpp:20:67: error: no matching function for call to http::HTTPParameters::HTTPParameters(http::HTTPRequest&, core::TCPSession*, http::HTTPSession*&, std::stringstream&)
20 | HTTPParameters p(httpRequest, &session, httpSession, content);
| ^
In file included from HTTPGETHandler.cpp:2:
HTTPParameters.h:21:9: note: candidate: http::HTTPParameters::HTTPParameters(http::HTTPRequest&, core::TCPSession*, http::HTTPSession*, std::stringstream&, http::HTTPActionList&)
21 | HTTPParameters(HTTPRequest &httpRequest,
| ^~~~~~~~~~~~~~
HTTPParameters.h:21:9: note: candidate expects 5 arguments, 4 provided
HTTPParameters.h:18:11: note: candidate: constexpr http::HTTPParameters::HTTPParameters(const http::HTTPParameters&)
18 | class HTTPParameters {
| ^~~~~~~~~~~~~~
HTTPParameters.h:18:11: note: candidate expects 1 argument, 4 provided
HTTPParameters.h:18:11: note: candidate: constexpr http::HTTPParameters::HTTPParameters(http::HTTPParameters&&)
HTTPParameters.h:18:11: note: candidate expects 1 argument, 4 provided
HTTPGETHandler.cpp:23:76: error: cannot convert http::HTTPParameters to int&
23 | static_cast<HTTPServer &>(session.server).pageList.processRequest(p);
| ^
| |
| http::HTTPParameters
In file included from HTTPServer.h:6,
from HTTPParameters.h:6,
from HTTPGETHandler.cpp:2:
HTTPPageList.h:45:43: note: initializing argument 1 of bool http::HTTPPageList::processRequest(int&)
45 | bool processRequest(HTTPParameters &p);
| ~~~~~~~~~~~~~~~~^
HTTPGETHandler.cpp:27:24: error: Exception in namespace coreutils does not name a type
27 | catch(coreutils::Exception e) {
| ^~~~~~~~~
In file included from HTTPPage.h:4,
from HTTPPage.cpp:1:
HTTPParameters.h: In constructor http::HTTPParameters::HTTPParameters(http::HTTPRequest&, core::TCPSession*, http::HTTPSession*, std::stringstream&, http::HTTPActionList&):
HTTPParameters.h:30:66: error: invalid cast from type core::TCPServer to type http::HTTPServer*
30 | actionList(((HTTPServer *)(session->server)).actionList) {}
| ^
HTTPPage.cpp: At global scope:
HTTPPage.cpp:4:5: error: HTTPPage has not been declared
4 | int HTTPPage::page(HTTPParameters &p) {
| ^~~~~~~~
HTTPPage.cpp:4:20: error: HTTPParameters was not declared in this scope; did you mean http::HTTPParameters?
4 | int HTTPPage::page(HTTPParameters &p) {
| ^~~~~~~~~~~~~~
| http::HTTPParameters
In file included from HTTPPage.h:4,
from HTTPPage.cpp:1:
HTTPParameters.h:18:11: note: http::HTTPParameters declared here
18 | class HTTPParameters {
| ^~~~~~~~~~~~~~
HTTPPage.cpp:4:36: error: p was not declared in this scope
4 | int HTTPPage::page(HTTPParameters &p) {
| ^
In file included from __index.h:4,
from HTTPPageList.h:6,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
HTTPPage.h:12:24: error: HTTPParameters has not been declared
12 | virtual int page(HTTPParameters &p);
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:6,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__index.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__index.h: In member function virtual int http::__index::page(int&):
__index.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << "<html>"
| ^~~~
__index.h:26:12: error: request for member httpRequest in p, which is of non-class type int
26 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:7,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__script.h: At global scope:
__script.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__script.h: In member function virtual int http::__script::page(int&):
__script.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "function serverSend(url, type, receiver, formData, callback) {"
| ^~~~
__script.h:45:12: error: request for member httpRequest in p, which is of non-class type int
45 | p.httpRequest.response.addHeader("Content-Type", "text/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:8,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__editview.h: At global scope:
__editview.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__editview.h: In member function virtual int http::__editview::page(int&):
__editview.h:14:68: error: request for member httpRequest in p, which is of non-class type int
14 | sprintf(format, "/home/barant/jetserver/views/%s.view", p.httpRequest.uriValues["view_name"].str().c_str());
| ^~~~~~~~~~~
__editview.h:19:12: error: request for member data in p, which is of non-class type int
19 | p.data << " <div style=\"position: relative;\">"
| ^~~~
In file included from HTTPPageList.h:8,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__editview.h:80:12: error: request for member httpRequest in p, which is of non-class type int
80 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:9,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__editview_js.h: At global scope:
__editview_js.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__editview_js.h: In member function virtual int http::__editview_js::page(int&):
__editview_js.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << " var mainpage;"
| ^~~~
In file included from HTTPPageList.h:9,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__editview_js.h:210:12: error: request for member httpRequest in p, which is of non-class type int
210 | p.httpRequest.response.addHeader("Content-Type", "script/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:10,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__style.h: At global scope:
__style.h:13:16: error: HTTPParameters has not been declared
13 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__style.h: In member function virtual int http::__style::page(int&):
__style.h:15:12: error: request for member data in p, which is of non-class type int
15 | p.data << "body {background: #006;"
| ^~~~
__style.h:42:12: error: request for member httpRequest in p, which is of non-class type int
42 | p.httpRequest.response.addHeader("Content-Type", "text/css");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:11,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__entrypoints.h: At global scope:
__entrypoints.h:8:16: error: HTTPParameters has not been declared
8 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__entrypoints.h: In member function virtual int http::__entrypoints::page(int&):
__entrypoints.h:10:12: error: request for member data in p, which is of non-class type int
10 | p.data << "<form name=\"entrypoints\" action=\"entrypoints\" method=\"POST\">"
| ^~~~
__entrypoints.h:20:51: error: request for member httpSession in p, which is of non-class type int
20 | " <br><br>Session Id: " << p.httpSession->getSessionId() << ""
| ^~~~~~~~~~~
In file included from HTTPPageList.h:11,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__entrypoints.h:24:12: error: request for member httpRequest in p, which is of non-class type int
24 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:12,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__favicon_ico.h: At global scope:
__favicon_ico.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__favicon_ico.h: In member function virtual int http::__favicon_ico::page(int&):
__favicon_ico.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << std::string(header_data, 806);
| ^~~~
__favicon_ico.h:14:12: error: request for member httpRequest in p, which is of non-class type int
14 | p.httpRequest.response.addHeader("Content-Type", "image/x-icon");
| ^~~~~~~~~~~
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__setupadmin.h: At global scope:
__setupadmin.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__setupadmin.h: In member function virtual int http::__setupadmin::page(int&):
__setupadmin.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << "<form name=\"setupadmin\" action=\"setupadmin\" method=\"POST\">"
| ^~~~
__setupadmin.h:28:51: error: request for member httpSession in p, which is of non-class type int
28 | " <br><br>Session Id: " << p.httpSession->getSessionId() << ""
| ^~~~~~~~~~~
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__setupadmin.h:33:12: error: request for member httpRequest in p, which is of non-class type int
33 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__welcome.h: At global scope:
__welcome.h:13:16: error: HTTPParameters has not been declared
13 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__welcome.h:34:46: error: expected class-name before { token
34 | class button1Click : public FlowAction {
| ^
__welcome.h:37:22: error: HTTPParameters has not been declared
37 | bool action(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__welcome.h:37:15: error: bool http::__welcome::button1Click::action(int&) marked override, but does not override
37 | bool action(HTTPParameters &p) override {
| ^~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__welcome.h: In member function virtual int http::__welcome::page(int&):
__welcome.h:15:12: error: request for member data in p, which is of non-class type int
15 | p.data << "<div class=\"adminheader\">"
| ^~~~
__welcome.h:16:40: error: request for member httpSession in p, which is of non-class type int
16 | "Session Id: " << p.httpSession->getSessionId() << " <br>User: *ADMIN"
| ^~~~~~~~~~~
__welcome.h:20:45: error: request for member actionList in p, which is of non-class type int
20 | coreutils::ZString button1_Click(p.actionList.addAction(click));
| ^~~~~~~~~~
__welcome.h:21:12: error: request for member data in p, which is of non-class type int
21 | p.data << "<div id=\"admin\" class=\"window\">"
| ^~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__welcome.h:27:12: error: request for member data in p, which is of non-class type int
27 | p.data << "<div id=\"app1\"></div><br>";
| ^~~~
__welcome.h:29:12: error: request for member httpRequest in p, which is of non-class type int
29 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
__welcome.h: In member function bool http::__welcome::button1Click::action(int&):
__welcome.h:38:32: error: no matching function for call to http::__setupadmin::__setupadmin(int&)
38 | page(__setupadmin(p), p);
| ^
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin()
9 | class __setupadmin : public HTTPPage {
| ^~~~~~~~~~~~
__setupadmin.h:9:10: note: candidate expects 0 arguments, 1 provided
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin(const http::__setupadmin&)
__setupadmin.h:9:10: note: no known conversion for argument 1 from int to const http::__setupadmin&
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin(http::__setupadmin&&)
__setupadmin.h:9:10: note: no known conversion for argument 1 from int to http::__setupadmin&&
In file included from HTTPPageList.h:14,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__mainmenu.h: At global scope:
__mainmenu.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__mainmenu.h: In member function virtual int http::__mainmenu::page(int&):
__mainmenu.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << "<div>"
| ^~~~
__mainmenu.h:36:12: error: request for member httpRequest in p, which is of non-class type int
36 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:15,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__configure.h: At global scope:
__configure.h:8:16: error: HTTPParameters has not been declared
8 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__configure.h: In member function virtual int http::__configure::page(int&):
__configure.h:10:12: error: request for member data in p, which is of non-class type int
10 | p.data << "<form name=\"configure\" action=\"setupadmin\" method=\"POST\">" << std::endl;
| ^~~~
__configure.h:11:12: error: request for member data in p, which is of non-class type int
11 | p.data << " <div class=\"window\"><h1>System Configuration</h1>" << std::endl;
| ^~~~
__configure.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "" << std::endl;
| ^~~~
__configure.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
| ^~~~
__configure.h:14:12: error: request for member data in p, which is of non-class type int
14 | p.data << " <div>Web Domain Name:</div>" << std::endl;
| ^~~~
__configure.h:15:12: error: request for member data in p, which is of non-class type int
15 | p.data << " <input type=\"text\" name=\"domainname\" size=\"30\">" << std::endl;
| ^~~~
__configure.h:16:12: error: request for member data in p, which is of non-class type int
16 | p.data << " </div>" << std::endl;
| ^~~~
__configure.h:17:12: error: request for member data in p, which is of non-class type int
17 | p.data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
| ^~~~
__configure.h:18:12: error: request for member data in p, which is of non-class type int
18 | p.data << " <div>View Directory:</div>" << std::endl;
| ^~~~
__configure.h:19:12: error: request for member data in p, which is of non-class type int
19 | p.data << " <input type=\"text\" name=\"viewdirectory\" size=\"30\">" << std::endl;
| ^~~~
__configure.h:20:12: error: request for member data in p, which is of non-class type int
20 | p.data << " </div>" << std::endl;
| ^~~~
__configure.h:21:12: error: request for member data in p, which is of non-class type int
21 | p.data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
| ^~~~
__configure.h:22:12: error: request for member data in p, which is of non-class type int
22 | p.data << " <div>Image Library Directory:</div>" << std::endl;
| ^~~~
__configure.h:23:12: error: request for member data in p, which is of non-class type int
23 | p.data << " <input type=\"password\" name=\"imagelibrary\" size=\"30\">" << std::endl;
| ^~~~
__configure.h:24:12: error: request for member data in p, which is of non-class type int
24 | p.data << " </div>" << std::endl;
| ^~~~
__configure.h:25:12: error: request for member data in p, which is of non-class type int
25 | p.data << " <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
| ^~~~
__configure.h:25:49: error: httpSession was not declared in this scope
25 | p.data << " <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
| ^~~~~~~~~~~
__configure.h:26:12: error: request for member data in p, which is of non-class type int
26 | p.data << " <br>The configuration has not yet been established for this web site.</p>" << std::endl;
| ^~~~
__configure.h:27:12: error: request for member data in p, which is of non-class type int
27 | p.data << " <input type=\"button\" onmousedown=\"process('/mainmenu','configure', 'main'); return true;\" name=\"button1\" value=\"Update Configuration\">" << std::endl;
| ^~~~
In file included from HTTPPageList.h:15,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__configure.h:28:12: error: request for member data in p, which is of non-class type int
28 | p.data << " </div></form>" << std::endl;
| ^~~~
__configure.h:30:12: error: request for member httpRequest in p, which is of non-class type int
30 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
HTTPPageList.cpp:36:4: warning: control reaches end of non-void function [-Wreturn-type]
36 | }
| ^
In file included from __index.h:4,
from HTTPPageList.h:6,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
HTTPPage.h:12:24: error: HTTPParameters has not been declared
12 | virtual int page(HTTPParameters &p);
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:6,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__index.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__index.h: In member function virtual int http::__index::page(int&):
__index.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << "<html>"
| ^~~~
__index.h:26:12: error: request for member httpRequest in p, which is of non-class type int
26 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:7,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__script.h: At global scope:
__script.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__script.h: In member function virtual int http::__script::page(int&):
__script.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "function serverSend(url, type, receiver, formData, callback) {"
| ^~~~
__script.h:45:12: error: request for member httpRequest in p, which is of non-class type int
45 | p.httpRequest.response.addHeader("Content-Type", "text/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:8,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__editview.h: At global scope:
__editview.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__editview.h: In member function virtual int http::__editview::page(int&):
__editview.h:14:68: error: request for member httpRequest in p, which is of non-class type int
14 | sprintf(format, "/home/barant/jetserver/views/%s.view", p.httpRequest.uriValues["view_name"].str().c_str());
| ^~~~~~~~~~~
__editview.h:19:12: error: request for member data in p, which is of non-class type int
19 | p.data << " <div style=\"position: relative;\">"
| ^~~~
In file included from HTTPPageList.h:8,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__editview.h:80:12: error: request for member httpRequest in p, which is of non-class type int
80 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:9,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__editview_js.h: At global scope:
__editview_js.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__editview_js.h: In member function virtual int http::__editview_js::page(int&):
__editview_js.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << " var mainpage;"
| ^~~~
In file included from HTTPPageList.h:9,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__editview_js.h:210:12: error: request for member httpRequest in p, which is of non-class type int
210 | p.httpRequest.response.addHeader("Content-Type", "script/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:10,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__style.h: At global scope:
__style.h:13:16: error: HTTPParameters has not been declared
13 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__style.h: In member function virtual int http::__style::page(int&):
__style.h:15:12: error: request for member data in p, which is of non-class type int
15 | p.data << "body {background: #006;"
| ^~~~
__style.h:42:12: error: request for member httpRequest in p, which is of non-class type int
42 | p.httpRequest.response.addHeader("Content-Type", "text/css");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:11,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__entrypoints.h: At global scope:
__entrypoints.h:8:16: error: HTTPParameters has not been declared
8 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__entrypoints.h: In member function virtual int http::__entrypoints::page(int&):
__entrypoints.h:10:12: error: request for member data in p, which is of non-class type int
10 | p.data << "<form name=\"entrypoints\" action=\"entrypoints\" method=\"POST\">"
| ^~~~
__entrypoints.h:20:51: error: request for member httpSession in p, which is of non-class type int
20 | " <br><br>Session Id: " << p.httpSession->getSessionId() << ""
| ^~~~~~~~~~~
In file included from HTTPPageList.h:11,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__entrypoints.h:24:12: error: request for member httpRequest in p, which is of non-class type int
24 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:12,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__favicon_ico.h: At global scope:
__favicon_ico.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__favicon_ico.h: In member function virtual int http::__favicon_ico::page(int&):
__favicon_ico.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << std::string(header_data, 806);
| ^~~~
__favicon_ico.h:14:12: error: request for member httpRequest in p, which is of non-class type int
14 | p.httpRequest.response.addHeader("Content-Type", "image/x-icon");
| ^~~~~~~~~~~
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__setupadmin.h: At global scope:
__setupadmin.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__setupadmin.h: In member function virtual int http::__setupadmin::page(int&):
__setupadmin.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << "<form name=\"setupadmin\" action=\"setupadmin\" method=\"POST\">"
| ^~~~
__setupadmin.h:28:51: error: request for member httpSession in p, which is of non-class type int
28 | " <br><br>Session Id: " << p.httpSession->getSessionId() << ""
| ^~~~~~~~~~~
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__setupadmin.h:33:12: error: request for member httpRequest in p, which is of non-class type int
33 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__welcome.h: At global scope:
__welcome.h:13:16: error: HTTPParameters has not been declared
13 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__welcome.h:34:46: error: expected class-name before { token
34 | class button1Click : public FlowAction {
| ^
__welcome.h:37:22: error: HTTPParameters has not been declared
37 | bool action(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__welcome.h:37:15: error: bool http::__welcome::button1Click::action(int&) marked override, but does not override
37 | bool action(HTTPParameters &p) override {
| ^~~~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__welcome.h: In member function virtual int http::__welcome::page(int&):
__welcome.h:15:12: error: request for member data in p, which is of non-class type int
15 | p.data << "<div class=\"adminheader\">"
| ^~~~
__welcome.h:16:40: error: request for member httpSession in p, which is of non-class type int
16 | "Session Id: " << p.httpSession->getSessionId() << " <br>User: *ADMIN"
| ^~~~~~~~~~~
__welcome.h:20:45: error: request for member actionList in p, which is of non-class type int
20 | coreutils::ZString button1_Click(p.actionList.addAction(click));
| ^~~~~~~~~~
__welcome.h:21:12: error: request for member data in p, which is of non-class type int
21 | p.data << "<div id=\"admin\" class=\"window\">"
| ^~~~
In file included from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__welcome.h:27:12: error: request for member data in p, which is of non-class type int
27 | p.data << "<div id=\"app1\"></div><br>";
| ^~~~
__welcome.h:29:12: error: request for member httpRequest in p, which is of non-class type int
29 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
__welcome.h: In member function bool http::__welcome::button1Click::action(int&):
__welcome.h:38:32: error: no matching function for call to http::__setupadmin::__setupadmin(int&)
38 | page(__setupadmin(p), p);
| ^
In file included from __welcome.h:7,
from HTTPPageList.h:13,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin()
9 | class __setupadmin : public HTTPPage {
| ^~~~~~~~~~~~
__setupadmin.h:9:10: note: candidate expects 0 arguments, 1 provided
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin(const http::__setupadmin&)
__setupadmin.h:9:10: note: no known conversion for argument 1 from int to const http::__setupadmin&
__setupadmin.h:9:10: note: candidate: constexpr http::__setupadmin::__setupadmin(http::__setupadmin&&)
__setupadmin.h:9:10: note: no known conversion for argument 1 from int to http::__setupadmin&&
In file included from HTTPPageList.h:14,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__mainmenu.h: At global scope:
__mainmenu.h:11:16: error: HTTPParameters has not been declared
11 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__mainmenu.h: In member function virtual int http::__mainmenu::page(int&):
__mainmenu.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << "<div>"
| ^~~~
__mainmenu.h:36:12: error: request for member httpRequest in p, which is of non-class type int
36 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:15,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__configure.h: At global scope:
__configure.h:8:16: error: HTTPParameters has not been declared
8 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__configure.h: In member function virtual int http::__configure::page(int&):
__configure.h:10:12: error: request for member data in p, which is of non-class type int
10 | p.data << "<form name=\"configure\" action=\"setupadmin\" method=\"POST\">" << std::endl;
| ^~~~
__configure.h:11:12: error: request for member data in p, which is of non-class type int
11 | p.data << " <div class=\"window\"><h1>System Configuration</h1>" << std::endl;
| ^~~~
__configure.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "" << std::endl;
| ^~~~
__configure.h:13:12: error: request for member data in p, which is of non-class type int
13 | p.data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
| ^~~~
__configure.h:14:12: error: request for member data in p, which is of non-class type int
14 | p.data << " <div>Web Domain Name:</div>" << std::endl;
| ^~~~
__configure.h:15:12: error: request for member data in p, which is of non-class type int
15 | p.data << " <input type=\"text\" name=\"domainname\" size=\"30\">" << std::endl;
| ^~~~
__configure.h:16:12: error: request for member data in p, which is of non-class type int
16 | p.data << " </div>" << std::endl;
| ^~~~
__configure.h:17:12: error: request for member data in p, which is of non-class type int
17 | p.data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
| ^~~~
__configure.h:18:12: error: request for member data in p, which is of non-class type int
18 | p.data << " <div>View Directory:</div>" << std::endl;
| ^~~~
__configure.h:19:12: error: request for member data in p, which is of non-class type int
19 | p.data << " <input type=\"text\" name=\"viewdirectory\" size=\"30\">" << std::endl;
| ^~~~
__configure.h:20:12: error: request for member data in p, which is of non-class type int
20 | p.data << " </div>" << std::endl;
| ^~~~
__configure.h:21:12: error: request for member data in p, which is of non-class type int
21 | p.data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
| ^~~~
__configure.h:22:12: error: request for member data in p, which is of non-class type int
22 | p.data << " <div>Image Library Directory:</div>" << std::endl;
| ^~~~
__configure.h:23:12: error: request for member data in p, which is of non-class type int
23 | p.data << " <input type=\"password\" name=\"imagelibrary\" size=\"30\">" << std::endl;
| ^~~~
__configure.h:24:12: error: request for member data in p, which is of non-class type int
24 | p.data << " </div>" << std::endl;
| ^~~~
__configure.h:25:12: error: request for member data in p, which is of non-class type int
25 | p.data << " <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
| ^~~~
__configure.h:25:49: error: httpSession was not declared in this scope
25 | p.data << " <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
| ^~~~~~~~~~~
__configure.h:26:12: error: request for member data in p, which is of non-class type int
26 | p.data << " <br>The configuration has not yet been established for this web site.</p>" << std::endl;
| ^~~~
__configure.h:27:12: error: request for member data in p, which is of non-class type int
27 | p.data << " <input type=\"button\" onmousedown=\"process('/mainmenu','configure', 'main'); return true;\" name=\"button1\" value=\"Update Configuration\">" << std::endl;
| ^~~~
In file included from HTTPPageList.h:15,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__configure.h:28:12: error: request for member data in p, which is of non-class type int
28 | p.data << " </div></form>" << std::endl;
| ^~~~
__configure.h:30:12: error: request for member httpRequest in p, which is of non-class type int
30 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:16,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__viewlist.h: At global scope:
__viewlist.h:12:16: error: HTTPParameters has not been declared
12 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__viewlist.h: In member function virtual int http::__viewlist::page(int&):
__viewlist.h:16:12: error: request for member data in p, which is of non-class type int
16 | p.data << "<div>"
| ^~~~
In file included from HTTPPageList.h:16,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__viewlist.h:36:12: error: request for member data in p, which is of non-class type int
36 | p.data << "</div>";
| ^~~~
__viewlist.h:38:12: error: request for member httpRequest in p, which is of non-class type int
38 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:17,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__workflow.h: At global scope:
__workflow.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__workflow.h: In member function virtual int http::__workflow::page(int&):
__workflow.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "<svg style=\"width: 100%; height: 100%; position: absolute; top: 0px; left: 0px;\">"
| ^~~~
In file included from HTTPPageList.h:17,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__workflow.h:94:10: error: request for member httpRequest in p, which is of non-class type int
94 | p.httpRequest.response.addHeader("Content-Type", "script/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:18,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__workflow_js.h: At global scope:
__workflow_js.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__workflow_js.h: In member function virtual int http::__workflow_js::page(int&):
__workflow_js.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "var mouseDownX;"
| ^~~~
__workflow_js.h:89:10: error: request for member httpRequest in p, which is of non-class type int
89 | p.httpRequest.response.addHeader("Content-Type", "script/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:19,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__addview.h: At global scope:
__addview.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__addview.h: In member function virtual int http::__addview::page(int&):
__addview.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "<form name=\"addview\" action=\"addview\" method=\"POST\">"
| ^~~~
In file included from HTTPPageList.h:19,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
__addview.h:22:12: error: request for member httpRequest in p, which is of non-class type int
22 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:20,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
_image.h: At global scope:
_image.h:12:16: error: HTTPParameters has not been declared
12 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
_image.h: In member function virtual int http::_image::page(int&):
_image.h:15:61: error: httpRequest was not declared in this scope
15 | sprintf(format, "/home/barant/jetserver/image/%s", httpRequest.uriValues["image_name"].str().c_str());
| ^~~~~~~~~~~
_image.h:18:12: error: request for member httpRequest in p, which is of non-class type int
18 | p.httpRequest.response.addHeader("Content-Type", "image/png");
| ^~~~~~~~~~~
_image.h:19:12: error: request for member out in p, which is of non-class type int
19 | p.out << workspace.asString();
| ^~~
In file included from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
HTTPPageList.h: At global scope:
HTTPPageList.h:45:27: error: HTTPParameters has not been declared
45 | bool processRequest(HTTPParameters &p);
| ^~~~~~~~~~~~~~
In file included from HTTPPageList.h:16,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__viewlist.h: At global scope:
__viewlist.h:12:16: error: HTTPParameters has not been declared
12 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__viewlist.h: In member function virtual int http::__viewlist::page(int&):
__viewlist.h:16:12: error: request for member data in p, which is of non-class type int
16 | p.data << "<div>"
| ^~~~
In file included from HTTPPageList.h:16,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__viewlist.h:36:12: error: request for member data in p, which is of non-class type int
36 | p.data << "</div>";
| ^~~~
__viewlist.h:38:12: error: request for member httpRequest in p, which is of non-class type int
38 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:17,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__workflow.h: At global scope:
__workflow.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__workflow.h: In member function virtual int http::__workflow::page(int&):
__workflow.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "<svg style=\"width: 100%; height: 100%; position: absolute; top: 0px; left: 0px;\">"
| ^~~~
In file included from HTTPPageList.h:17,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__workflow.h:94:10: error: request for member httpRequest in p, which is of non-class type int
94 | p.httpRequest.response.addHeader("Content-Type", "script/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:18,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__workflow_js.h: At global scope:
__workflow_js.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__workflow_js.h: In member function virtual int http::__workflow_js::page(int&):
__workflow_js.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "var mouseDownX;"
| ^~~~
__workflow_js.h:89:10: error: request for member httpRequest in p, which is of non-class type int
89 | p.httpRequest.response.addHeader("Content-Type", "script/javascript");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:19,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__addview.h: At global scope:
__addview.h:10:16: error: HTTPParameters has not been declared
10 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
__addview.h: In member function virtual int http::__addview::page(int&):
__addview.h:12:12: error: request for member data in p, which is of non-class type int
12 | p.data << "<form name=\"addview\" action=\"addview\" method=\"POST\">"
| ^~~~
In file included from HTTPPageList.h:19,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
__addview.h:22:12: error: request for member httpRequest in p, which is of non-class type int
22 | p.httpRequest.response.addHeader("Content-Type", "text/html");
| ^~~~~~~~~~~
In file included from HTTPPageList.h:20,
from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
_image.h: At global scope:
_image.h:12:16: error: HTTPParameters has not been declared
12 | int page(HTTPParameters &p) override {
| ^~~~~~~~~~~~~~
In file included from HTTPServer.h:7,
from HTTPParameters.h:6,
from FlowAction.h:4,
from FlowAction.cpp:1:
HTTPActionList.h:21:36: error: FlowAction has not been declared
21 | coreutils::ZString addAction(FlowAction *action);
| ^~~~~~~~~~
_image.h: In member function virtual int http::_image::page(int&):
_image.h:15:61: error: httpRequest was not declared in this scope
15 | sprintf(format, "/home/barant/jetserver/image/%s", httpRequest.uriValues["image_name"].str().c_str());
| ^~~~~~~~~~~
_image.h:18:12: error: request for member httpRequest in p, which is of non-class type int
18 | p.httpRequest.response.addHeader("Content-Type", "image/png");
| ^~~~~~~~~~~
_image.h:19:12: error: request for member out in p, which is of non-class type int
19 | p.out << workspace.asString();
| ^~~
In file included from HTTPServer.h:6,
from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
HTTPPageList.h: At global scope:
HTTPPageList.h:45:27: error: HTTPParameters has not been declared
45 | bool processRequest(HTTPParameters &p);
| ^~~~~~~~~~~~~~
HTTPActionList.h:28:29: error: FlowAction was not declared in this scope
28 | std::map<std::string, FlowAction *> actions;
| ^~~~~~~~~~
HTTPActionList.h:28:41: error: template argument 2 is invalid
28 | std::map<std::string, FlowAction *> actions;
| ^
HTTPActionList.h:28:41: error: template argument 4 is invalid
In file included from FlowAction.h:4,
from FlowAction.cpp:1:
HTTPParameters.h: In constructor http::HTTPParameters::HTTPParameters(http::HTTPRequest&, core::TCPSession*, http::HTTPSession*, std::stringstream&, http::HTTPActionList&):
HTTPParameters.h:30:66: error: invalid cast from type core::TCPServer to type http::HTTPServer*
30 | actionList(((HTTPServer *)(session->server)).actionList) {}
| ^
In file included from HTTPParameters.h:6,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
HTTPServer.h:33:7: error: HTTPActionList does not name a type
33 | HTTPActionList actionList;
| ^~~~~~~~~~~~~~
In file included from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
HTTPParameters.h: In constructor http::HTTPParameters::HTTPParameters(http::HTTPRequest&, core::TCPSession*, http::HTTPSession*, std::stringstream&, http::HTTPActionList&):
HTTPParameters.h:30:66: error: invalid cast from type core::TCPServer to type http::HTTPServer*
30 | actionList(((HTTPServer *)(session->server)).actionList) {}
| ^
HTTPActionList.cpp: In member function bool http::HTTPActionList::processRequest(http::HTTPParameters&):
HTTPActionList.cpp:15:24: error: no match for operator[] (operand types are std::map<std::__cxx11::basic_string<char>, http::FlowAction*> and coreutils::ZString)
15 | return actions[uri]->action(p); //TODO: Fix this - will create bad entries that dont exist.
| ^
In file included from /usr/include/c++/9/map:61,
from ../CoreUtils/includes:6,
from ../CoreUtils/IMFResponse.h:4,
from HTTPRequest.h:6,
from HTTPParameters.h:4,
from FlowAction.h:4,
from HTTPActionList.h:6,
from HTTPActionList.cpp:1:
/usr/include/c++/9/bits/stl_map.h:490:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = http::FlowAction*; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, http::FlowAction*> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = http::FlowAction*; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::__cxx11::basic_string<char>]
490 | operator[](const key_type& __k)
| ^~~~~~~~
/usr/include/c++/9/bits/stl_map.h:490:34: note: no known conversion for argument 1 from coreutils::ZString to const key_type& {aka const std::__cxx11::basic_string<char>&}
490 | operator[](const key_type& __k)
| ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/stl_map.h:510:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = std::__cxx11::basic_string<char>; _Tp = http::FlowAction*; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, http::FlowAction*> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = http::FlowAction*; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::__cxx11::basic_string<char>]
510 | operator[](key_type&& __k)
| ^~~~~~~~
/usr/include/c++/9/bits/stl_map.h:510:29: note: no known conversion for argument 1 from coreutils::ZString to std::map<std::__cxx11::basic_string<char>, http::FlowAction*>::key_type&& {aka std::__cxx11::basic_string<char>&&}
510 | operator[](key_type&& __k)
| ~~~~~~~~~~~^~~
HTTPActionList.cpp:18:27: error: Exception is not a member of coreutils
18 | throw coreutils::Exception("Requested resource not found.");
| ^~~~~~~~~
HTTPActionList.cpp: In member function coreutils::ZString http::HTTPActionList::addAction(http::FlowAction*):
HTTPActionList.cpp:24:37: error: name was not declared in this scope
24 | actions.insert(std::make_pair(name, action));
| ^~~~
g++: error: HTTPActionList.o: No such file or directory
g++: error: HTTPGETHandler.o: No such file or directory
g++: error: HTTPPage.o: No such file or directory
g++: error: HTTPPageList.o: No such file or directory
g++: error: HTTPPOSTHandler.o: No such file or directory
g++: error: HTTPPUTHandler.o: No such file or directory
g++: error: main.o: No such file or directory