BmnRoot
Loading...
Searching...
No Matches
ElogContact Class Reference

#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 ElogContactCreateContact (TString *contact_name, TString contact_desc, TString *phones, TString *email)
 add new contact to the database
 
static ElogContactGetContact (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
 

Detailed Description

/home/gertsen/bmnroot/database/elog_db/ElogContact.h Class for the table: contact_

Definition at line 18 of file ElogContact.h.

Constructor & Destructor Documentation

◆ ~ElogContact()

ElogContact::~ElogContact ( )
virtual

Definition at line 33 of file ElogContact.cxx.

Member Function Documentation

◆ CheckContactExists()

int ElogContact::CheckContactExists ( int  contact_id)
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().

◆ ClassDef()

ElogContact::ClassDef ( ElogContact  ,
 
)

◆ CreateContact()

ElogContact * ElogContact::CreateContact ( TString *  contact_name,
TString  contact_desc,
TString *  phones,
TString *  email 
)
static

add new contact to the database

Definition at line 46 of file ElogContact.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ DeleteContact()

int ElogContact::DeleteContact ( int  contact_id)
static

delete contact from the database

Definition at line 232 of file ElogContact.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ GetContact()

ElogContact * ElogContact::GetContact ( int  contact_id)
static

get contact from the database

Definition at line 131 of file ElogContact.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ GetContactDesc()

TString ElogContact::GetContactDesc ( )
inline

get contact desc of the current contact

Definition at line 73 of file ElogContact.h.

◆ GetContactId()

int ElogContact::GetContactId ( )
inline

get contact id of the current contact

Definition at line 63 of file ElogContact.h.

◆ GetContactName()

TString * ElogContact::GetContactName ( )
inline

get contact name of the current contact

Definition at line 65 of file ElogContact.h.

◆ GetEmail()

TString * ElogContact::GetEmail ( )
inline

get email of the current contact

Definition at line 83 of file ElogContact.h.

◆ GetPhones()

TString * ElogContact::GetPhones ( )
inline

get phones of the current contact

Definition at line 75 of file ElogContact.h.

◆ Print()

void ElogContact::Print ( )

print information about current contact

Definition at line 471 of file ElogContact.cxx.

◆ PrintAll()

int ElogContact::PrintAll ( )
static

print all contacts

Definition at line 262 of file ElogContact.cxx.

References ElogConnection::GetSQLServer(), and ElogConnection::Open().

◆ SetContactDesc()

int ElogContact::SetContactDesc ( TString  contact_desc)

set contact desc of the current contact

Definition at line 358 of file ElogContact.cxx.

References ElogConnection::GetSQLServer().

◆ SetContactName()

int ElogContact::SetContactName ( TString *  contact_name)

set contact name of the current contact

Definition at line 318 of file ElogContact.cxx.

References ElogConnection::GetSQLServer().

◆ SetEmail()

int ElogContact::SetEmail ( TString *  email)

set email of the current contact

Definition at line 430 of file ElogContact.cxx.

References ElogConnection::GetSQLServer().

◆ SetPhones()

int ElogContact::SetPhones ( TString *  phones)

set phones of the current contact

Definition at line 390 of file ElogContact.cxx.

References ElogConnection::GetSQLServer().


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