Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
resourcehandler.h
Go to the documentation of this file.
1 
18 #ifndef ION_REMOTE_RESOURCEHANDLER_H_
19 #define ION_REMOTE_RESOURCEHANDLER_H_
20 
21 #include <string>
22 
23 #include "ion/gfx/renderer.h"
24 #include "ion/remote/httpserver.h"
25 
26 namespace ion {
27 namespace remote {
28 
33  - Gets a JSON struct representing all of the GL
37 class ION_API ResourceHandler : public HttpServer::RequestHandler {
38  public:
39  explicit ResourceHandler(const gfx::RendererPtr& renderer);
40  ~ResourceHandler() override;
41 
42  const std::string HandleRequest(const std::string& path,
43  const HttpServer::QueryMap& args,
44  std::string* content_type) override;
45 
46  private:
48 };
49 
50 } // namespace remote
51 } // namespace ion
52 
53 #endif // ION_REMOTE_RESOURCEHANDLER_H_
ResourceHandler serves files related to OpenGL resources.
const RendererPtr & renderer_
Renderer used to render images.
std::map< std::string, std::string > QueryMap
Definition: httpserver.h:35
RequestHandlers handle requests for a file or path.
Definition: httpserver.h:68
A SharedPtr is a smart shared pointer to an instance of some class that implements reference counting...
Definition: sharedptr.h:60