Specific DRES server implementation.
More...
#include <client-dres.h>
Specific DRES server implementation.
https://github.com/dres-dev/DRES
◆ LogType
| Enumerator |
|---|
| LOGIN | |
| LOGOUT | |
| SUBMIT | |
| RESULT | |
| INTERACTION | |
◆ ClientDres()
◆ ~ClientDres()
| sh::ClientDres::~ClientDres |
( |
| ) |
|
|
noexcept |
◆ get_current_task()
| nlohmann::json ClientDres::get_current_task |
( |
| ) |
|
|
overridevirtual |
◆ get_server_ts()
◆ log_type_to_str()
| std::string sh::ClientDres::log_type_to_str |
( |
LogType |
t | ) |
const |
|
inlineprivate |
◆ login()
| bool ClientDres::login |
( |
| ) |
|
|
overridevirtual |
◆ logout()
| bool ClientDres::logout |
( |
| ) |
|
|
overridevirtual |
◆ send_interactions_log()
| bool ClientDres::send_interactions_log |
( |
const nlohmann::json & |
log_JSON | ) |
|
|
overridevirtual |
◆ send_results_log()
| bool ClientDres::send_results_log |
( |
const nlohmann::json & |
log_JSON | ) |
|
|
overridevirtual |
◆ submit()
| bool sh::ClientDres::submit |
( |
const VideoFrame & |
frame | ) |
|
|
overridevirtual |
◆ write_log()
| void ClientDres::write_log |
( |
LogType |
type, |
|
|
UnixTimestamp |
ts, |
|
|
const std::string & |
URL, |
|
|
const nlohmann::json & |
req, |
|
|
ReqCode |
code, |
|
|
nlohmann::json & |
res |
|
) |
| const |
|
private |
◆ _current_task
| nlohmann::json sh::ClientDres::_current_task |
|
protected |
◆ _diff
| std::ptrdiff_t sh::ClientDres::_diff |
|
protected |
◆ _settings
◆ _sync_period
| const std::chrono::milliseconds sh::ClientDres::_sync_period { 5000ms } |
|
protected |
◆ _synced
| bool sh::ClientDres::_synced |
|
protected |
◆ _t_sync_worker
| std::thread sh::ClientDres::_t_sync_worker |
|
protected |
The documentation for this class was generated from the following files: