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

#include <ElogAttachment.h>

Public Member Functions

virtual ~ElogAttachment ()
 
int GetRecordId ()
 get record id of the current attachment
 
int GetAttachmentNumber ()
 get attachment number of the current attachment
 
TString GetFilePath ()
 get file path of the current attachment
 
int SetRecordId (int record_id)
 set record id of the current attachment
 
int SetAttachmentNumber (int attachment_number)
 set attachment number of the current attachment
 
int SetFilePath (TString file_path)
 set file path of the current attachment
 
void Print ()
 print information about current attachment
 
 ClassDef (ElogAttachment, 1)
 
virtual ~ElogAttachment ()
 
int GetRecordId ()
 get record id of the current attachment
 
int GetAttachmentNumber ()
 get attachment number of the current attachment
 
TString GetFilePath ()
 get file path of the current attachment
 
int SetRecordId (int record_id)
 set record id of the current attachment
 
int SetAttachmentNumber (int attachment_number)
 set attachment number of the current attachment
 
int SetFilePath (TString file_path)
 set file path of the current attachment
 
void Print ()
 print information about current attachment
 
 ClassDef (ElogAttachment, 1)
 

Static Public Member Functions

static ElogAttachmentCreateAttachment (int record_id, int attachment_number, TString file_path)
 add new attachment to the database
 
static ElogAttachmentGetAttachment (int record_id, int attachment_number)
 get attachment from the database
 
static ElogAttachmentGetAttachment (TString file_path)
 get attachment from the database
 
static int CheckAttachmentExists (int record_id, int attachment_number)
 check attachment exists in the database: 1- true, 0 - false, <0 - database operation error
 
static int CheckAttachmentExists (TString file_path)
 check attachment exists in the database: 1- true, 0 - false, <0 - database operation error
 
static int DeleteAttachment (int record_id, int attachment_number)
 delete attachment from the database
 
static int DeleteAttachment (TString file_path)
 delete attachment from the database
 
static int PrintAll ()
 print all attachments
 
static ElogAttachmentCreateAttachment (int record_id, int attachment_number, TString file_path)
 add new attachment to the database
 
static ElogAttachmentGetAttachment (int record_id, int attachment_number)
 get attachment from the database
 
static ElogAttachmentGetAttachment (TString file_path)
 get attachment from the database
 
static int CheckAttachmentExists (int record_id, int attachment_number)
 check attachment exists in the database: 1- true, 0 - false, <0 - database operation error
 
static int CheckAttachmentExists (TString file_path)
 check attachment exists in the database: 1- true, 0 - false, <0 - database operation error
 
static int DeleteAttachment (int record_id, int attachment_number)
 delete attachment from the database
 
static int DeleteAttachment (TString file_path)
 delete attachment from the database
 
static int PrintAll ()
 print all attachments
 

Detailed Description

ElogAttachment.h Class for the table: attachment_

Definition at line 17 of file ElogAttachment.h.

Constructor & Destructor Documentation

◆ ~ElogAttachment() [1/2]

ElogAttachment::~ElogAttachment ( )
virtual

Definition at line 26 of file ElogAttachment.cxx.

◆ ~ElogAttachment() [2/2]

virtual ElogAttachment::~ElogAttachment ( )
virtual

Member Function Documentation

◆ CheckAttachmentExists() [1/4]

int ElogAttachment::CheckAttachmentExists ( int  record_id,
int  attachment_number 
)
static

check attachment exists in the database: 1- true, 0 - false, <0 - database operation error

Definition at line 167 of file ElogAttachment.cxx.

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

◆ CheckAttachmentExists() [2/4]

static int ElogAttachment::CheckAttachmentExists ( int  record_id,
int  attachment_number 
)
static

check attachment exists in the database: 1- true, 0 - false, <0 - database operation error

◆ CheckAttachmentExists() [3/4]

int ElogAttachment::CheckAttachmentExists ( TString  file_path)
static

check attachment exists in the database: 1- true, 0 - false, <0 - database operation error

Definition at line 207 of file ElogAttachment.cxx.

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

◆ CheckAttachmentExists() [4/4]

static int ElogAttachment::CheckAttachmentExists ( TString  file_path)
static

check attachment exists in the database: 1- true, 0 - false, <0 - database operation error

◆ ClassDef() [1/2]

ElogAttachment::ClassDef ( ElogAttachment  ,
 
)

◆ ClassDef() [2/2]

ElogAttachment::ClassDef ( ElogAttachment  ,
 
)

◆ CreateAttachment() [1/2]

ElogAttachment * ElogAttachment::CreateAttachment ( int  record_id,
int  attachment_number,
TString  file_path 
)
static

add new attachment to the database

Definition at line 33 of file ElogAttachment.cxx.

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

◆ CreateAttachment() [2/2]

static ElogAttachment * ElogAttachment::CreateAttachment ( int  record_id,
int  attachment_number,
TString  file_path 
)
static

add new attachment to the database

◆ DeleteAttachment() [1/4]

int ElogAttachment::DeleteAttachment ( int  record_id,
int  attachment_number 
)
static

delete attachment from the database

Definition at line 247 of file ElogAttachment.cxx.

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

◆ DeleteAttachment() [2/4]

static int ElogAttachment::DeleteAttachment ( int  record_id,
int  attachment_number 
)
static

delete attachment from the database

◆ DeleteAttachment() [3/4]

int ElogAttachment::DeleteAttachment ( TString  file_path)
static

delete attachment from the database

Definition at line 278 of file ElogAttachment.cxx.

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

◆ DeleteAttachment() [4/4]

static int ElogAttachment::DeleteAttachment ( TString  file_path)
static

delete attachment from the database

◆ GetAttachment() [1/4]

ElogAttachment * ElogAttachment::GetAttachment ( int  record_id,
int  attachment_number 
)
static

get attachment from the database

Definition at line 71 of file ElogAttachment.cxx.

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

◆ GetAttachment() [2/4]

static ElogAttachment * ElogAttachment::GetAttachment ( int  record_id,
int  attachment_number 
)
static

get attachment from the database

◆ GetAttachment() [3/4]

ElogAttachment * ElogAttachment::GetAttachment ( TString  file_path)
static

get attachment from the database

Definition at line 119 of file ElogAttachment.cxx.

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

◆ GetAttachment() [4/4]

static ElogAttachment * ElogAttachment::GetAttachment ( TString  file_path)
static

get attachment from the database

◆ GetAttachmentNumber() [1/2]

int ElogAttachment::GetAttachmentNumber ( )
inline

get attachment number of the current attachment

Definition at line 61 of file ElogAttachment.h.

◆ GetAttachmentNumber() [2/2]

int ElogAttachment::GetAttachmentNumber ( )
inline

get attachment number of the current attachment

Definition at line 61 of file ElogAttachment.h.

◆ GetFilePath() [1/2]

TString ElogAttachment::GetFilePath ( )
inline

get file path of the current attachment

Definition at line 63 of file ElogAttachment.h.

◆ GetFilePath() [2/2]

TString ElogAttachment::GetFilePath ( )
inline

get file path of the current attachment

Definition at line 63 of file ElogAttachment.h.

◆ GetRecordId() [1/2]

int ElogAttachment::GetRecordId ( )
inline

get record id of the current attachment

Definition at line 59 of file ElogAttachment.h.

◆ GetRecordId() [2/2]

int ElogAttachment::GetRecordId ( )
inline

get record id of the current attachment

Definition at line 59 of file ElogAttachment.h.

◆ Print() [1/2]

void ElogAttachment::Print ( )

print information about current attachment

Definition at line 451 of file ElogAttachment.cxx.

◆ Print() [2/2]

void ElogAttachment::Print ( )

print information about current attachment

◆ PrintAll() [1/2]

int ElogAttachment::PrintAll ( )
static

print all attachments

Definition at line 308 of file ElogAttachment.cxx.

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

◆ PrintAll() [2/2]

static int ElogAttachment::PrintAll ( )
static

print all attachments

◆ SetAttachmentNumber() [1/2]

int ElogAttachment::SetAttachmentNumber ( int  attachment_number)

set attachment number of the current attachment

Definition at line 384 of file ElogAttachment.cxx.

References ElogConnection::GetSQLServer().

◆ SetAttachmentNumber() [2/2]

int ElogAttachment::SetAttachmentNumber ( int  attachment_number)

set attachment number of the current attachment

◆ SetFilePath() [1/2]

int ElogAttachment::SetFilePath ( TString  file_path)

set file path of the current attachment

Definition at line 417 of file ElogAttachment.cxx.

References ElogConnection::GetSQLServer().

◆ SetFilePath() [2/2]

int ElogAttachment::SetFilePath ( TString  file_path)

set file path of the current attachment

◆ SetRecordId() [1/2]

int ElogAttachment::SetRecordId ( int  record_id)

set record id of the current attachment

Definition at line 351 of file ElogAttachment.cxx.

References ElogConnection::GetSQLServer().

◆ SetRecordId() [2/2]

int ElogAttachment::SetRecordId ( int  record_id)

set record id of the current attachment


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