DAQ
1.0.0
Data Acquisition System (basic demo)
|
#include <dataaccess.h>
Public Member Functions | |
DataAccess (IDataSource *ds) noexcept | |
Err | add_variable (const Variable &var) noexceptoverride |
add_variable add a new variable. More... | |
Err | add_variable_value (const VarValue &var) noexceptoverride |
add_variable_value add a new value for a given variable. More... | |
std::tuple< std::vector< Variable >, Err > | fetch_variables () noexceptoverride |
fetch_variables get all variables. More... | |
std::tuple< std::vector< VarValue >, Err > | fetch_variable_values (const std::string &var_name, size_t max_len) noexceptoverride |
fetch_variable_values get values for a given variable. More... | |
std::tuple< std::vector< VarValue >, Err > | fetch_variable_values (const std::string &var_name, const std::chrono::system_clock::time_point &start_date, const std::chrono::system_clock::time_point &end_date, size_t max_len) noexceptoverride |
fetch_variable_values get values for a given variable in a period. More... | |
Err | compress (const std::vector< VarValue > &in_vals, std::vector< VarValue > *out_vals, size_t max_len) noexcept |
compress a dumy compression algorithm More... | |
Public Member Functions inherited from IDataAccess | |
IDataAccess () noexcept=default | |
virtual | ~IDataAccess ()=default |
IDataAccess (const IDataAccess &)=delete | |
IDataAccess & | operator= (const IDataAccess &)=delete |
IDataAccess (IDataAccess &&)=default | |
IDataAccess & | operator= (IDataAccess &&)=default |
Private Attributes | |
IDataSource * | ds_ |
Additional Inherited Members | |
Public Types inherited from IDataAccess | |
enum | Err { Err::Ok, Err::Failed, Err::InvalidArgument } |
|
explicitnoexcept |
|
overridevirtualnoexcept |
add_variable add a new variable.
var | variable info. |
Implements IDataAccess.
|
overridevirtualnoexcept |
add_variable_value add a new value for a given variable.
var | variable value. |
Implements IDataAccess.
|
noexcept |
compress a dumy compression algorithm
in_vals | input values. |
out_vals | output(compressed) values. |
max_len | len of the compressed values. |
|
overridevirtualnoexcept |
fetch_variable_values get values for a given variable.
var_name | variable name. |
max_len | TODO(denis): not implemented yet acos taq@g mail .com |
Implements IDataAccess.
|
overridevirtualnoexcept |
fetch_variable_values get values for a given variable in a period.
var | variable value. |
start_date | start date. |
end_date | end date |
max_len | TODO(denis): not implemented yet acos taq@g mail .com |
Implements IDataAccess.
|
overridevirtualnoexcept |
fetch_variables get all variables.
Implements IDataAccess.
|
private |