DAQ
1.0.0
Data Acquisition System (basic demo)
|
The IDataAccess interface is like a proxy for the data layer. More...
#include <idataaccess.h>
Public Types | |
enum | Err { Err::Ok, Err::Failed, Err::InvalidArgument } |
Public Member Functions | |
IDataAccess () noexcept=default | |
virtual | ~IDataAccess ()=default |
IDataAccess (const IDataAccess &)=delete | |
IDataAccess & | operator= (const IDataAccess &)=delete |
IDataAccess (IDataAccess &&)=default | |
IDataAccess & | operator= (IDataAccess &&)=default |
virtual Err | add_variable (const Variable &var) noexcept=0 |
add_variable add a new variable. More... | |
virtual Err | add_variable_value (const VarValue &var) noexcept=0 |
add_variable_value add a new variable value related to a variable. More... | |
virtual std::tuple< std::vector< Variable >, Err > | fetch_variables () noexcept=0 |
fetch_variables get all variables. More... | |
virtual std::tuple< std::vector< VarValue >, Err > | fetch_variable_values (const std::string &var_name, size_t max_len=std::numeric_limits< size_t >::infinity()) noexcept=0 |
fetch_variable_values get values for a variable. More... | |
virtual 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=std::numeric_limits< size_t >::infinity()) noexcept=0 |
fetch_variable_values get values for a variable in a date range. More... | |
The IDataAccess interface is like a proxy for the data layer.
This class can filter request or data, for example check for authorization or data compression.
|
strong |
|
defaultnoexcept |
|
virtualdefault |
|
delete |
|
default |
add_variable add a new variable.
var | variable info. |
Implemented in DataAccess.
add_variable_value add a new variable value related to a variable.
var | add a variable value. |
Implemented in DataAccess.
|
pure virtualnoexcept |
fetch_variable_values get values for a variable.
var_name | variable name. |
max_len | max result len (for data compression for example). |
Implemented in DataAccess.
|
pure virtualnoexcept |
fetch_variable_values get values for a variable in a date range.
var_name | variable name. |
start_date | start date of the period. |
end_date | end date of the period. |
max_len | max result len (for data compression for example). |
Implemented in DataAccess.
|
pure virtualnoexcept |
fetch_variables get all variables.
Implemented in DataAccess.
|
delete |
|
default |