|
| data_acces () |
| data_acces Interface to program objects that manage the stored data
|
|
virtual std::string | get_passwd (std::string username)=0 |
| get_passwd Get the hash of the password that use the user More...
|
|
virtual bool | get_admin (std::string)=0 |
| get_admin Get if the user is a admin or not More...
|
|
virtual std::list< std::string > | get_pinfo ()=0 |
| get_pinfo Get a list of the generated packages and the information about that More...
|
|
virtual std::list< std::string > | get_uinfo ()=0 |
| get_uinfo Get a list of the users and if they are admins or not More...
|
|
virtual void | write_install (std::string package, std::string user)=0 |
| write_install Store information about package generation More...
|
|
virtual void | write_remove (std::string package)=0 |
| write_remove Remove the information about generated package More...
|
|
virtual bool | get_package_exists (std::string package)=0 |
| get_package_exists Search if the package exists More...
|
|
virtual void | create_user (std::string user, std::string pass, bool admin)=0 |
| create_user Create a new user with the passed data More...
|
|
virtual void | remove_user (std::string user)=0 |
| remove_user Remove a user More...
|
|
|
static char * | get_hash (char *data) |
| get_hash Generate a hash with the pased data More...
|
|
◆ create_user()
virtual void data_acces::create_user |
( |
std::string |
user, |
|
|
std::string |
pass, |
|
|
bool |
admin |
|
) |
| |
|
pure virtual |
create_user Create a new user with the passed data
- Parameters
-
user | Name of the passed user |
pass | Password of the new user |
admin | Admin status of a new user |
Implemented in msql_acces.
◆ get_admin()
virtual bool data_acces::get_admin |
( |
std::string |
| ) |
|
|
pure virtual |
get_admin Get if the user is a admin or not
- Returns
- true if is an admin, false if not
Implemented in msql_acces.
◆ get_hash()
char * data_acces::get_hash |
( |
char * |
data | ) |
|
|
static |
get_hash Generate a hash with the pased data
- Parameters
-
- Returns
- Data hased
◆ get_package_exists()
virtual bool data_acces::get_package_exists |
( |
std::string |
package | ) |
|
|
pure virtual |
get_package_exists Search if the package exists
- Parameters
-
package | Name of the package to search |
- Returns
- True if the package exists, false if not
Implemented in msql_acces.
◆ get_passwd()
virtual std::string data_acces::get_passwd |
( |
std::string |
username | ) |
|
|
pure virtual |
get_passwd Get the hash of the password that use the user
- Parameters
-
username | User whose password you want to know |
- Returns
- The hash of the password
Implemented in msql_acces.
◆ get_pinfo()
virtual std::list<std::string> data_acces::get_pinfo |
( |
| ) |
|
|
pure virtual |
get_pinfo Get a list of the generated packages and the information about that
- Returns
- A list of the generated packages and the information about that
Implemented in msql_acces.
◆ get_uinfo()
virtual std::list<std::string> data_acces::get_uinfo |
( |
| ) |
|
|
pure virtual |
get_uinfo Get a list of the users and if they are admins or not
- Returns
- A list of the users and if they are admins or not
Implemented in msql_acces.
◆ remove_user()
virtual void data_acces::remove_user |
( |
std::string |
user | ) |
|
|
pure virtual |
remove_user Remove a user
- Parameters
-
user | Name of the user to delete |
Implemented in msql_acces.
◆ write_install()
virtual void data_acces::write_install |
( |
std::string |
package, |
|
|
std::string |
user |
|
) |
| |
|
pure virtual |
write_install Store information about package generation
- Parameters
-
package | Name of the package generated |
user | User that generated te package |
Implemented in msql_acces.
◆ write_remove()
virtual void data_acces::write_remove |
( |
std::string |
package | ) |
|
|
pure virtual |
write_remove Remove the information about generated package
- Parameters
-
package | Name of the package generated |
Implemented in msql_acces.
The documentation for this class was generated from the following files:
- /home/roche/Cosas/C++/ServidorTFG/data_acces.h
- /home/roche/Cosas/C++/ServidorTFG/data_acces.cpp