|
BmnRoot
|
#include <ElogContact.h>
Public Member Functions | |
| virtual | ~ElogContact () |
| int | GetContactId () |
| get contact id of the current contact | |
| TString * | GetContactName () |
| get contact name of the current contact | |
| TString | GetContactDesc () |
| get contact desc of the current contact | |
| TString * | GetPhones () |
| get phones of the current contact | |
| TString * | GetEmail () |
| get email of the current contact | |
| int | SetContactName (TString *contact_name) |
| set contact name of the current contact | |
| int | SetContactDesc (TString contact_desc) |
| set contact desc of the current contact | |
| int | SetPhones (TString *phones) |
| set phones of the current contact | |
| int | SetEmail (TString *email) |
| set email of the current contact | |
| void | Print () |
| print information about current contact | |
| ClassDef (ElogContact, 1) | |
Static Public Member Functions | |
| static ElogContact * | CreateContact (TString *contact_name, TString contact_desc, TString *phones, TString *email) |
| add new contact to the database | |
| static ElogContact * | GetContact (int contact_id) |
| get contact from the database | |
| static int | CheckContactExists (int contact_id) |
| check contact exists in the database: 1- true, 0 - false, <0 - database operation error | |
| static int | DeleteContact (int contact_id) |
| delete contact from the database | |
| static int | PrintAll () |
| print all contacts | |
/home/gertsen/bmnroot/database/elog_db/ElogContact.h Class for the table: contact_
Definition at line 18 of file ElogContact.h.
|
virtual |
Definition at line 33 of file ElogContact.cxx.
|
static |
check contact exists in the database: 1- true, 0 - false, <0 - database operation error
Definition at line 192 of file ElogContact.cxx.
References ElogConnection::GetSQLServer(), and ElogConnection::Open().
| ElogContact::ClassDef | ( | ElogContact | , |
| 1 | |||
| ) |
|
static |
add new contact to the database
Definition at line 46 of file ElogContact.cxx.
References ElogConnection::GetSQLServer(), and ElogConnection::Open().
|
static |
delete contact from the database
Definition at line 232 of file ElogContact.cxx.
References ElogConnection::GetSQLServer(), and ElogConnection::Open().
|
static |
get contact from the database
Definition at line 131 of file ElogContact.cxx.
References ElogConnection::GetSQLServer(), and ElogConnection::Open().
|
inline |
get contact desc of the current contact
Definition at line 73 of file ElogContact.h.
|
inline |
get contact id of the current contact
Definition at line 63 of file ElogContact.h.
|
inline |
get contact name of the current contact
Definition at line 65 of file ElogContact.h.
|
inline |
get email of the current contact
Definition at line 83 of file ElogContact.h.
|
inline |
get phones of the current contact
Definition at line 75 of file ElogContact.h.
| void ElogContact::Print | ( | ) |
print information about current contact
Definition at line 471 of file ElogContact.cxx.
|
static |
print all contacts
Definition at line 262 of file ElogContact.cxx.
References ElogConnection::GetSQLServer(), and ElogConnection::Open().
| int ElogContact::SetContactDesc | ( | TString | contact_desc | ) |
set contact desc of the current contact
Definition at line 358 of file ElogContact.cxx.
References ElogConnection::GetSQLServer().
| int ElogContact::SetContactName | ( | TString * | contact_name | ) |
set contact name of the current contact
Definition at line 318 of file ElogContact.cxx.
References ElogConnection::GetSQLServer().
| int ElogContact::SetEmail | ( | TString * | ) |
set email of the current contact
Definition at line 430 of file ElogContact.cxx.
References ElogConnection::GetSQLServer().
| int ElogContact::SetPhones | ( | TString * | phones | ) |
set phones of the current contact
Definition at line 390 of file ElogContact.cxx.
References ElogConnection::GetSQLServer().