1 #ifndef NOOS_VISION_BATCH_HPP 2 #define NOOS_VISION_BATCH_HPP 3 #include <noos/cloud/includes.ihh> 4 #include <noos/cloud/asio/http_request.hpp> 5 #include <noos/cloud/cloud_base.hpp> 6 #include <noos/cloud/deserialize.hpp> 7 #include <noos/cloud/vision_base.hpp> 8 #include <noos/objects.hpp> 18 template <
class cloud_type>
21 typedef typename cloud_type::callback callback;
25 tied(callback functor);
28 tied(callback functor, cloud_type
object);
32 template <
class cloud_type>
43 template <
class... ties>
50 using callback = std::function<void(std::string)>;
65 void process(std::string json);
69 template<std::size_t... batch_size>
70 void expand_batch(std::string json,
72 std::index_sequence<batch_size...>);
75 void find_cloud_type(ties... args,
80 std::tuple<ties...> batch__;
84 #include "vision_batch.tpl"
nooser for the classes http_header &http_post used for cloud requests
Definition: http_request.hpp:20
tied is a convenience pair struct for object + functors used by vision_batch
Definition: vision_batch.hpp:19
cloud service batch class
Definition: cloud_base.hpp:49
Definition: asio_handler.hpp:14
class which wraps around raw bytes of a picture
Definition: picture.hpp:17
vision_batch
Definition: vision_batch.hpp:44
cloud service base class
Definition: cloud_base.hpp:15
tied< cloud_type > make_tie(typename cloud_type::callback functor)
simple helper - not really needed
tied(callback functor)
constructor requires only the functor