Raspberry Pi Weighting Control System
This project serves as a simple weighting control system, that was realized as a Bachelor Thesis
|
Container that servers for storing users data and manipulating them. More...
#include <user_workspace.h>
Public Member Functions | |
user_workspace (user_cont *user) | |
Construct a new user workspace object. This can only be done with a user that is logged in. More... | |
void | init_measured (std::vector< double > values, std::tm *start_tm, std::tm *end_tm, unsigned long m_length) |
measurement * | get_last_hx_measuring () |
measurement * | get_picked_hx_measuring () |
int | compare_rfid_serials (rfid_reader::rfid_tag *tag) |
bool | has_user () |
bool | has_subuser () |
std::pair< uint8_t *, uint8_t > | get_rfid_serial () |
unsigned long | get_user_id () |
user_cont * | get_user () |
std::string & | get_username () |
std::string & | get_name () |
std::string & | get_lastname () |
std::string & | get_description () |
uint8_t | get_role () |
const char * | get_role_string () |
std::vector< std::unique_ptr< measurement_header > > & | get_user_measur_headers () |
user_cont * | get_measured_user () |
unsigned long | get_measured_id () |
std::string & | get_measured_username () |
Public Attributes | |
std::unique_ptr< user_cont > | subuser |
std::unique_ptr< measurement > | measured |
std::unique_ptr< measurement > | picked |
std::vector< measurement > | continuous_m |
std::unique_ptr< measurement > | continuous_front |
Container that servers for storing users data and manipulating them.
Definition at line 152 of file user_workspace.h.
user_workspace::user_workspace | ( | user_cont * | user | ) |
Construct a new user workspace object. This can only be done with a user that is logged in.
user |
Definition at line 306 of file user_workspace.cpp.
int user_workspace::compare_rfid_serials | ( | rfid_reader::rfid_tag * | tag | ) |
std::string & user_workspace::get_description | ( | ) |
get user's last name
Definition at line 364 of file user_workspace.cpp.
measurement * user_workspace::get_last_hx_measuring | ( | ) |
Returns @measured
Definition at line 312 of file user_workspace.cpp.
std::string & user_workspace::get_lastname | ( | ) |
get user's name
Definition at line 361 of file user_workspace.cpp.
unsigned long user_workspace::get_measured_id | ( | ) |
user_cont * user_workspace::get_measured_user | ( | ) |
Definition at line 394 of file user_workspace.cpp.
std::string & user_workspace::get_measured_username | ( | ) |
returns either subuser id or user id
Definition at line 410 of file user_workspace.cpp.
std::string & user_workspace::get_name | ( | ) |
get users's username
Definition at line 357 of file user_workspace.cpp.
measurement * user_workspace::get_picked_hx_measuring | ( | ) |
Returns @picked (last selected measuring on screen 3)
Definition at line 316 of file user_workspace.cpp.
std::pair< uint8_t *, uint8_t > user_workspace::get_rfid_serial | ( | ) |
Has subuser getter
Definition at line 341 of file user_workspace.cpp.
uint8_t user_workspace::get_role | ( | ) |
get user's description
Definition at line 368 of file user_workspace.cpp.
const char * user_workspace::get_role_string | ( | ) |
get user's role
Definition at line 372 of file user_workspace.cpp.
user_cont * user_workspace::get_user | ( | ) |
user id getter
Definition at line 349 of file user_workspace.cpp.
unsigned long user_workspace::get_user_id | ( | ) |
Gets RFID serial (with length)
Definition at line 345 of file user_workspace.cpp.
std::vector< std::unique_ptr< measurement_header > > & user_workspace::get_user_measur_headers | ( | ) |
get user's role as string to show in GUI get reference to measurement headers
Definition at line 386 of file user_workspace.cpp.
std::string & user_workspace::get_username | ( | ) |
Returns user container
Definition at line 353 of file user_workspace.cpp.
bool user_workspace::has_subuser | ( | ) |
Has user getter
Definition at line 337 of file user_workspace.cpp.
bool user_workspace::has_user | ( | ) |
Definition at line 333 of file user_workspace.cpp.
void user_workspace::init_measured | ( | std::vector< double > | values, |
std::tm * | start_tm, | ||
std::tm * | end_tm, | ||
unsigned long | m_length | ||
) |
Inits measuring into @measured attribute
Definition at line 418 of file user_workspace.cpp.
std::unique_ptr<measurement> user_workspace::continuous_front |
Definition at line 160 of file user_workspace.h.
std::vector<measurement> user_workspace::continuous_m |
Definition at line 159 of file user_workspace.h.
std::unique_ptr<measurement> user_workspace::measured |
Definition at line 156 of file user_workspace.h.
std::unique_ptr<measurement> user_workspace::picked |
Definition at line 157 of file user_workspace.h.
std::unique_ptr<user_cont> user_workspace::subuser |
Definition at line 155 of file user_workspace.h.