38 #ifndef DATABASESERVER_IDATAACCESS_H 39 #define DATABASESERVER_IDATAACCESS_H 47 #include "src/database-server/data-model/variable.h" 48 #include "src/database-server/data-model/varvalue.h" IDataAccess(IDataAccess &&)=default
VarValue(Variable &&variable, double &&val, std::uint64_t &&ts)
Definition: varvalue.cc:45
Definition: variable.h:44
virtual Err add_variable_value(const VarValue &var) noexcept=0
add_variable_value add a new variable value related to a variable.
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.
IDataAccess(const IDataAccess &)=delete
IDataAccess & operator=(const IDataAccess &)=delete
virtual Err add_variable(const Variable &var) noexcept=0
add_variable add a new variable.
IDataAccess & operator=(IDataAccess &&)=default
IDataAccess() noexcept=default
virtual ~IDataAccess()=default
Err
Definition: idataaccess.h:57