Raspberry Pi Weighting Control System
This project serves as a simple weighting control system, that was realized as a Bachelor Thesis
|
Class used as a container for user data, that are selected from database. (and also for insert, but not everything is used in that case) More...
#include <user_workspace.h>
Public Member Functions | |
user_cont (unsigned long, uint8_t *, uint8_t, std::string, std::string, std::string, std::string, uint8_t, std::tm, std::tm, std::tm, std::tm) | |
Construct a new user cont object through value parameters, but this isn't used. Originally inteded for testing purposes. More... | |
void | log_user_to_debug () |
Public Attributes | |
unsigned long | id |
unsigned long | measure_count |
std::string | rfid_serial |
uint8_t | rfid_serial_bin [10] |
uint8_t | rfid_ser_len |
std::string | username |
std::string | name |
std::string | lastname |
std::string | description |
uint8_t | role |
std::tm | reg_date |
std::tm | last_login_date |
std::tm | created_at_date |
std::tm | date_of_birth |
std::vector< std::unique_ptr< measurement_header > > | measur_headers |
Class used as a container for user data, that are selected from database. (and also for insert, but not everything is used in that case)
Definition at line 118 of file user_workspace.h.
user_cont::user_cont | ( | unsigned long | id, |
uint8_t * | rfid_ser_bin, | ||
uint8_t | rfid_ser_len, | ||
std::string | username, | ||
std::string | name, | ||
std::string | lastname, | ||
std::string | description, | ||
uint8_t | role, | ||
std::tm | reg_date, | ||
std::tm | last_login_date, | ||
std::tm | created_at_date, | ||
std::tm | date_of_birth | ||
) |
Construct a new user cont object through value parameters, but this isn't used. Originally inteded for testing purposes.
Definition at line 256 of file user_workspace.cpp.
void user_cont::log_user_to_debug | ( | ) |
Prints user on debug level
Definition at line 274 of file user_workspace.cpp.
std::tm user_cont::created_at_date |
Definition at line 132 of file user_workspace.h.
std::tm user_cont::date_of_birth |
Definition at line 133 of file user_workspace.h.
std::string user_cont::description |
Definition at line 128 of file user_workspace.h.
unsigned long user_cont::id |
Definition at line 120 of file user_workspace.h.
std::tm user_cont::last_login_date |
Definition at line 131 of file user_workspace.h.
std::string user_cont::lastname |
Definition at line 127 of file user_workspace.h.
std::vector<std::unique_ptr<measurement_header> > user_cont::measur_headers |
Vector of headers, that are displayed on screen 3 and user can select them
Definition at line 136 of file user_workspace.h.
unsigned long user_cont::measure_count |
Definition at line 121 of file user_workspace.h.
std::string user_cont::name |
Definition at line 126 of file user_workspace.h.
std::tm user_cont::reg_date |
Definition at line 130 of file user_workspace.h.
uint8_t user_cont::rfid_ser_len |
Definition at line 124 of file user_workspace.h.
std::string user_cont::rfid_serial |
Definition at line 122 of file user_workspace.h.
uint8_t user_cont::rfid_serial_bin[10] |
Definition at line 123 of file user_workspace.h.
uint8_t user_cont::role |
Definition at line 129 of file user_workspace.h.
std::string user_cont::username |
Definition at line 125 of file user_workspace.h.