SOMHunter Core
sh::EvalServerClient Class Reference

#include <eval-server-client.h>

Collaboration diagram for sh::EvalServerClient:

Public Member Functions

 EvalServerClient (const EvalServerSettings &settings)
 
virtual ~EvalServerClient () noexcept=default
 
bool login ()
 
bool logout ()
 
bool submit (const VideoFrame &frame)
 
bool send_results_log (const nlohmann::json &log_JSON)
 
bool send_interactions_log (const nlohmann::json &log_JSON)
 
UnixTimestamp get_server_ts ()
 
nlohmann::json get_current_task ()
 
const std::string & get_user_token () const
 

Private Attributes

EvalServerSettings _submitter_settings
 
std::unique_ptr< IServerClient_p_client
 
std::string _dummy { "" }
 

Constructor & Destructor Documentation

◆ EvalServerClient()

EvalServerClient::EvalServerClient ( const EvalServerSettings settings)
Here is the call graph for this function:

◆ ~EvalServerClient()

virtual sh::EvalServerClient::~EvalServerClient ( )
virtualdefaultnoexcept

Member Function Documentation

◆ get_current_task()

nlohmann::json EvalServerClient::get_current_task ( )

◆ get_server_ts()

UnixTimestamp EvalServerClient::get_server_ts ( )

◆ get_user_token()

const std::string & EvalServerClient::get_user_token ( ) const

◆ login()

bool EvalServerClient::login ( )

◆ logout()

bool EvalServerClient::logout ( )

◆ send_interactions_log()

bool EvalServerClient::send_interactions_log ( const nlohmann::json &  log_JSON)

◆ send_results_log()

bool EvalServerClient::send_results_log ( const nlohmann::json &  log_JSON)

◆ submit()

bool EvalServerClient::submit ( const VideoFrame frame)

Member Data Documentation

◆ _dummy

std::string sh::EvalServerClient::_dummy { "" }
private

◆ _p_client

std::unique_ptr<IServerClient> sh::EvalServerClient::_p_client
private

◆ _submitter_settings

EvalServerSettings sh::EvalServerClient::_submitter_settings
private

The documentation for this class was generated from the following files: