ServidorTFG
Public Member Functions | List of all members
msql_acces Class Reference
Inheritance diagram for msql_acces:
data_acces

Public Member Functions

std::string get_passwd (std::string username)
 get_passwd Get the hash of the password that use the user More...
 
bool get_admin (std::string)
 get_admin Get if the user is a admin or not More...
 
std::list< std::string > get_pinfo ()
 get_pinfo Get a list of the generated packages and the information about that More...
 
std::list< std::string > get_uinfo ()
 get_uinfo Get a list of the users and if they are admins or not More...
 
void write_install (std::string package, std::string user)
 write_install Store information about package generation More...
 
void write_remove (std::string)
 write_remove Remove the information about generated package More...
 
bool get_package_exists (std::string package)
 get_package_exists Search if the package exists More...
 
void create_user (std::string user, std::string pass, bool admin)
 create_user Create a new user with the passed data More...
 
void remove_user (std::string user)
 remove_user Remove a user More...
 
- Public Member Functions inherited from data_acces
 data_acces ()
 data_acces Interface to program objects that manage the stored data
 

Additional Inherited Members

- Static Public Member Functions inherited from data_acces
static char * get_hash (char *data)
 get_hash Generate a hash with the pased data More...
 

Member Function Documentation

◆ create_user()

void msql_acces::create_user ( std::string  user,
std::string  pass,
bool  admin 
)
virtual

create_user Create a new user with the passed data

Parameters
userName of the passed user
passPassword of the new user
adminAdmin status of a new user

Implements data_acces.

◆ get_admin()

bool msql_acces::get_admin ( std::string  )
virtual

get_admin Get if the user is a admin or not

Returns
true if is an admin, false if not

Implements data_acces.

◆ get_package_exists()

bool msql_acces::get_package_exists ( std::string  package)
virtual

get_package_exists Search if the package exists

Parameters
packageName of the package to search
Returns
True if the package exists, false if not

Implements data_acces.

◆ get_passwd()

std::string msql_acces::get_passwd ( std::string  username)
virtual

get_passwd Get the hash of the password that use the user

Parameters
usernameUser whose password you want to know
Returns
The hash of the password

Implements data_acces.

◆ get_pinfo()

std::list< std::string > msql_acces::get_pinfo ( )
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

Implements data_acces.

◆ get_uinfo()

std::list< std::string > msql_acces::get_uinfo ( )
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

Implements data_acces.

◆ remove_user()

void msql_acces::remove_user ( std::string  user)
virtual

remove_user Remove a user

Parameters
userName of the user to delete

Implements data_acces.

◆ write_install()

void msql_acces::write_install ( std::string  package,
std::string  user 
)
virtual

write_install Store information about package generation

Parameters
packageName of the package generated
userUser that generated te package

Implements data_acces.

◆ write_remove()

void msql_acces::write_remove ( std::string  package)
virtual

write_remove Remove the information about generated package

Parameters
packageName of the package generated

Implements data_acces.


The documentation for this class was generated from the following files: