/* * SendResultsOperation.hpp * * Created on: Dec 11, 2011 * Author: heber */ #ifndef FRAGMENTCONTROLLER_SENDRESULTSOPERATION_HPP_ #define FRAGMENTCONTROLLER_SENDRESULTSOPERATION_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "Connection.hpp" #include "FragmentResult.hpp" #include "Controller/Commands/Operation.hpp" class SendResultsOperation : public Operation { public: /// Constructor for class SendResultsOperation. SendResultsOperation(Connection &_connection, const std::string& _host, const std::string& _service) : Operation(_connection, _host, _service) {} /// Destructor for class SendResultsOperation ~SendResultsOperation() {} public: // virtual function pointer to the connection handler virtual void handle_connect(const boost::system::error_code& e, boost::asio::ip::tcp::resolver::iterator endpoint_iterator); /// Callback function when results are about to be received. void handle_ReceivingResults(const boost::system::error_code& e); /// Callback function when results have been received. void handle_ReceivedResults(const boost::system::error_code& e); /// Getter for results std::vector getResults(); protected: /// bunch of results std::vector results; }; #endif /* FRAGMENTCONTROLLER_SENDRESULTSOPERATION_HPP_ */