|
VideoTools
|
A container for ImageInputSource pointers, used by Gv::HttpServerPeer. More...
#include <gvhttpserver.h>
Public Member Functions | |
| HttpServerSources (Gr::ImageConverter &, const HttpServerResources &, unsigned int channel_reopen_timeout) | |
| Constructor. More... | |
| HttpServerSources (Gr::ImageConverter &, ImageInputSource &) | |
| Constructor for a single non-channel source, typically a Gv::Camera reference. More... | |
| ~HttpServerSources () | |
| Destructor. | |
| bool | valid (const std::string &url_path) |
| Returns true if the given url path looks like it is for an input-source rather than a file. More... | |
| bool | select (const std::string &url_path, HttpServerSource &) |
| Looks up the required input source and deposits its pointer into the supplied holder. More... | |
| Gr::ImageConverter & | converter () |
| Returns the image-converter reference, as passed in to the constructor. More... | |
A container for ImageInputSource pointers, used by Gv::HttpServerPeer.
Image sources can be publication channels or not (cf. httpserver vs. webcamplayer). Consequently the pointers are actually pairs of pointers; one pointing to the base class, and the other possibly-null pointer pointing at the channel-specific derived class.
Definition at line 122 of file gvhttpserver.h.
| Gv::HttpServerSources::HttpServerSources | ( | Gr::ImageConverter & | converter, |
| const HttpServerResources & | resources, | ||
| unsigned int | channel_reopen_timeout | ||
| ) |
Constructor.
The converter reference is kept. The resources object simply provides a list of channel names.
Definition at line 542 of file gvhttpserver.cpp.
| Gv::HttpServerSources::HttpServerSources | ( | Gr::ImageConverter & | converter, |
| ImageInputSource & | source | ||
| ) |
Constructor for a single non-channel source, typically a Gv::Camera reference.
The references are kept, with no transfer of ownership.
Definition at line 557 of file gvhttpserver.cpp.
| Gr::ImageConverter & Gv::HttpServerSources::converter | ( | ) |
Returns the image-converter reference, as passed in to the constructor.
Definition at line 566 of file gvhttpserver.cpp.
| bool Gv::HttpServerSources::select | ( | const std::string & | url_path, |
| HttpServerSource & | source_holder | ||
| ) |
Looks up the required input source and deposits its pointer into the supplied holder.
Returns true if the source changes.
Definition at line 583 of file gvhttpserver.cpp.
| bool Gv::HttpServerSources::valid | ( | const std::string & | url_path | ) |
Returns true if the given url path looks like it is for an input-source rather than a file.
Definition at line 578 of file gvhttpserver.cpp.