noos::cloud::callable< cloud_type, keep_alive, socket_type, error_handle > Class Template Reference
a class which wraps around a cloud call, its socket, buffer and callback More...
#include <callable.hpp>
Public Types | |
using | callback = typename cloud_type::callback |
using | cloud_class = cloud_type |
Public Member Functions | |
callable ()=delete | |
no empty constructor allowed | |
callable (callable const &)=delete | |
callable & | operator= (const callable &)=delete |
callable & | operator= (callable &&)=delete |
callable (callback functor, platform=default_node) | |
construct a callable using a noos::cloud::platform object | |
template<typename... parameters, typename = typename std::enable_if<!std::is_same<cloud_type,cloud_batch>::value,bool>> | |
callable (callback functor, platform info, parameters...args) | |
construct a callable object wrapper More... | |
template<typename... parameters> | |
callable (vision_batch< parameters... > arg, platform=default_node) | |
overloaded constructor for vision_batch template cloud_type More... | |
template<typename... parameters, typename = typename std::enable_if<std::is_same<cloud_type,cloud_batch>::value,bool>> | |
callable (const noos::object::picture &image, platform info, parameters...args) | |
convenience constructor for vision_batch classes will construct the object internally | |
void | send (unsigned int timeout=2) |
send the cloud_type data once to the cloud endpoint More... | |
void | stop () |
stop calls and shutdown socket | |
Public Attributes | |
cloud_type | object |
Detailed Description
template<class cloud_type, bool keep_alive = true, class socket_type = asio_https, class error_handle = default_error_handler>
class noos::cloud::callable< cloud_type, keep_alive, socket_type, error_handle >
a class which wraps around a cloud call, its socket, buffer and callback
- Version
- 0.7.3
- Date
- 8 June 2017
Collaboration diagram for noos::cloud::callable< cloud_type, keep_alive, socket_type, error_handle >:
Constructor & Destructor Documentation
template<class cloud_type , bool keep_alive = true, class socket_type = asio_https, class error_handle = default_error_handler>
|
delete |
- Warning
- you cannot copy a callable
template<class cloud_type , bool keep_alive, class socket_type , class error_handle >
template<typename... parameters, typename >
noos::cloud::callable< cloud_type, keep_alive, socket_type, error_handle >::callable | ( | callback | functor, |
platform | info, | ||
parameters... | args | ||
) |
construct a callable object wrapper
- Parameters
-
<tt>args</tt> are the cloud_type
constructor arguments<tt>functor</tt> is the callback receiving the reply
- See also
cloud_type::callback
for callback signature
template<class cloud_type , bool keep_alive, class socket_type , class error_handle >
template<typename... parameters>
noos::cloud::callable< cloud_type, keep_alive, socket_type, error_handle >::callable | ( | vision_batch< parameters... > | arg, |
platform | info = default_node |
||
) |
overloaded constructor for vision_batch
template cloud_type
- Warning
- a
vision_batch
does not require a callback!
Member Function Documentation
template<class cloud_type , bool keep_alive = true, class socket_type = asio_https, class error_handle = default_error_handler>
|
delete |
- Warning
- you cannot assign a callable
template<class cloud_type , bool keep_alive = true, class socket_type = asio_https, class error_handle = default_error_handler>
|
delete |
- Warning
- move assignment
template<class cloud_type , bool keep_alive, class socket_type , class error_handle >
void noos::cloud::callable< cloud_type, keep_alive, socket_type, error_handle >::send | ( | unsigned int | timeout = 2 | ) |
send the cloud_type data once to the cloud endpoint
- Note
- the default 2 second timeout value should suffice
Member Data Documentation
template<class cloud_type , bool keep_alive = true, class socket_type = asio_https, class error_handle = default_error_handler>
cloud_type noos::cloud::callable< cloud_type, keep_alive, socket_type, error_handle >::object |
the actual cloud_type
object you may change this between calls
The documentation for this class was generated from the following file:
- noos/cloud/callable.hpp