24 #include "model/ImageInfo.h" 26 #include <aspect/blackboard.h> 27 #include <aspect/clock.h> 28 #include <aspect/configurable.h> 29 #include <aspect/logging.h> 30 #include <aspect/thread_producer.h> 31 #include <aspect/webview.h> 32 #include <core/threading/thread.h> 33 #include <webview/rest_api.h> 34 #include <webview/rest_array.h> 41 class WebviewJpegStreamProducer;
63 std::shared_ptr<fawkes::WebviewJpegStreamProducer> get_stream(
const std::string &image_id);
69 std::map<std::string, std::shared_ptr<fawkes::WebviewJpegStreamProducer>> streams_;
ImageRestApi()
Constructor.
Webview REST API component.
Thread aspect to access to BlackBoard.
Thread aspect that allows to obtain the current time from the clock.
Fawkes library namespace.
~ImageRestApi()
Destructor.
virtual void init()
Initialize the thread.
Thread class encapsulation of pthreads.
REST parameters to pass to handlers.
Thread aspect to log output.
REST API backend for the image.
Aspect for thread producing threads.
Thread aspect to access configuration data.
virtual void loop()
Code to execute in the thread.
virtual void finalize()
Finalize the thread.
Container to return array via REST.
Thread aspect to provide web pages via Webview.