27 TString str_person_id;
29 TString str_person_name;
65 if (str_email ==
nullptr)
68 return new TString(*str_email);
TString GetPersonName()
get person name of the current person
static int CheckPersonExistsByName(TString person_name_part)
int SetIsActive(bool is_active)
set is active of the current person
TString * GetEmail()
get email of the current person
static ElogPerson * CreatePerson(TString person_name, bool is_active, TString *email)
add new person to the database
static int PrintAll()
print all persons
static int DeletePersonByName(TString person_name_part)
bool GetIsActive()
get is active of the current person
static TObjArray * GetPersonByName(TString person_name_part)
get persons from the database by name or its part
static ElogPerson * GetPerson(TString person_id)
get person from the database
void Print()
print information about current person
TString GetPersonId()
get person id of the current person
int SetEmail(TString *email)
set email of the current person
int SetPersonName(TString person_name)
set person name of the current person
static int CheckPersonExists(TString person_id)
check person exists in the database: 1 - true, 0 - false, <0 - database operation error
static int DeletePerson(TString person_id)
delete person from the database