DAQ
1.0.0
Data Acquisition System (basic demo)
|
#include <mocksqlitewrapper.h>
Public Member Functions | |
Err | create_scheme () noexceptoverride |
create_scheme create data storage persistence, e.g. schema for a relational database More... | |
MOCK_METHOD1 (mock_add_variable, Err(const Variable &variable)) | |
Err | add_variable (const Variable &variable) noexceptoverride |
add_variable add a variable to be tracket for the system (by default the only supported variabe value type is double). More... | |
MOCK_METHOD1 (mock_add_variable_value, Err(const VarValue &var_value)) | |
Err | add_variable_value (const VarValue &var_value) noexceptoverride |
add_variable_value add a new value for the variable. More... | |
MOCK_METHOD1 (mock_fetch_variables, Err(const std::function< void(const Variable &var, size_t index)> &send_vale)) | |
Err | fetch_variables (const std::function< void(const Variable &var, size_t index)> &send_vale) noexceptoverride |
fetch_variables get all variables More... | |
MOCK_METHOD2 (mock_fetch_variable_values, Err(const std::string &var_name, const std::function< void(const VarValue &val, size_t index)> &send_vale)) | |
Err | fetch_variable_values (const std::string &var_name, const std::function< void(const VarValue &val, size_t index)> &send_vale) noexceptoverride |
fetch_variable_values get all values of a given variable More... | |
Err | count_variable_values (const std::string &, const std::function< void(size_t count)> &) noexceptoverride |
count_variable_values count all values of a given variable More... | |
MOCK_METHOD4 (mock_fetch_variable_values, Err(const std::string &var_name, const std::chrono::system_clock::time_point &start_date, const std::chrono::system_clock::time_point &end_date, const std::function< void(const VarValue &&val, size_t index)> &send_vale)) | |
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, const std::function< void(const VarValue &val, size_t index)> &send_vale) noexceptoverride |
fetch_variable_values get all values of a given variables in a date range More... | |
Err | count_variable_values (const std::string &, const std::chrono::system_clock::time_point &, const std::chrono::system_clock::time_point &, const std::function< void(size_t count)> &) noexceptoverride |
count_variable_values count all values of a given variable More... | |
Public Member Functions inherited from IDataSource | |
IDataSource ()=default | |
virtual | ~IDataSource ()=default |
IDataSource (const IDataSource &)=delete | |
IDataSource & | operator= (const IDataSource &)=delete |
IDataSource (IDataSource &&)=default | |
IDataSource & | operator= (IDataSource &&)=default |
Additional Inherited Members | |
Public Types inherited from IDataSource | |
enum | Err { Err::Ok, Err::Failed } |
add_variable add a variable to be tracket for the system (by default the only supported variabe value type is double).
variable | to be created in the physical storage. |
Implements IDataSource.
add_variable_value add a new value for the variable.
var_value | variable value to be inserted in the storage. |
Implements IDataSource.
|
inlineoverridevirtualnoexcept |
count_variable_values count all values of a given variable
var_name | variable name to count the values from |
send_count | in this callack you can receive the number of values for the given variable |
Implements IDataSource.
|
inlineoverridevirtualnoexcept |
count_variable_values count all values of a given variable
var_name | variable name to count the values from |
start_date | begin of the date range |
end_date | end of the date range |
send_count | in this callack you can receive the number of values for the given variable |
Implements IDataSource.
|
inlineoverridevirtualnoexcept |
create_scheme create data storage persistence, e.g. schema for a relational database
Implements IDataSource.
|
inlineoverridevirtualnoexcept |
fetch_variable_values get all values of a given variable
var_name | variable name to get the values from |
send_vale | the values will be send in this callback, one at a time, index is the current value index. |
Implements IDataSource.
|
inlineoverridevirtualnoexcept |
fetch_variable_values get all values of a given variables in a date range
var_name | variable name to get the values from |
start_date | begin of the date range |
end_date | end of the date range |
send_vale | the values will be send in this callback, one at a time, index is the current value index. |
Implements IDataSource.
|
inlineoverridevirtualnoexcept |
fetch_variables get all variables
send_vale | the variables will be send in this callback, one at a time, index is the current value index. |
Implements IDataSource.
MockIDataSource::MOCK_METHOD1 | ( | mock_fetch_variables | , |
Err(const std::function< void(const Variable &var, size_t index)> &send_vale) | |||
) |
MockIDataSource::MOCK_METHOD2 | ( | mock_fetch_variable_values | , |
Err(const std::string &var_name, const std::function< void(const VarValue &val, size_t index)> &send_vale) | |||
) |
MockIDataSource::MOCK_METHOD4 | ( | mock_fetch_variable_values | , |
Err(const std::string &var_name, const std::chrono::system_clock::time_point &start_date, const std::chrono::system_clock::time_point &end_date, const std::function< void(const VarValue &&val, size_t index)> &send_vale) | |||
) |