UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Functions
hds::ldb Namespace Reference

Classes

struct  TT2NameElem
 

Functions

const QList< TT2NameElem > & getTT2NameList ()
 
QStringList projectsList ()
 
int removeProject (const QString &name_str)
 
QStringList seismicList (const QString &project_str)
 
int removeSeismic (const QString &project_str, const QString &seis_str)
 
bool checkSeismic (const QString &project, const QString &name)
 
QStringList dbItemsList (const QString &project, dbNameStruct *dbfrom, QList< QStringList > &items)
 
int removeDbt (const QString &project, dbNameStruct &dbns)
 
bool dbNameStructCmp (const dbNameStruct &dbns1, const dbNameStruct &dbns2)
 
QString sizeStr (const qint64 &size)
 

Detailed Description

LDB area.

Function Documentation

bool hds::ldb::checkSeismic ( const QString &  project,
const QString &  name 
)

Does seismic data for provided project and with provided name correct.

QStringList hds::ldb::dbItemsList ( const QString &  project,
dbNameStruct dbfrom,
QList< QStringList > &  items 
)
Get list of dbitems for provided data base name structure. 

Return headers of the dbitems list or empty list on error. Resulted list of items.

Parameters
projectProject to get list from.
dbfromTable to get list from.
bool hds::ldb::dbNameStructCmp ( const dbNameStruct dbns1,
const dbNameStruct dbns2 
)

Does provided dbNameStructs equal.

const QList<TT2NameElem>& hds::ldb::getTT2NameList ( )

Access to LDB table types to it's labels.

QStringList hds::ldb::projectsList ( )
Get list of projects. 

List will be empty on any error.

int hds::ldb::removeDbt ( const QString &  project,
dbNameStruct dbns 
)
Remove database table of provided type. 
Returns
OK if all good, ErrCode otherwise.
int hds::ldb::removeProject ( const QString &  name_str)
Remove project with provided name. 
Returns
OK if all good, ErrCode otherwise.
int hds::ldb::removeSeismic ( const QString &  project_str,
const QString &  seis_str 
)
Remove seismic from the project. 
Parameters
project_strName of project.
seis_strName of seismic.
Returns
OK if all good, ErrCode otherwise.
QStringList hds::ldb::seismicList ( const QString &  project_str)
Get list of seismic for provided project. 

List will be empty on any error.

QString hds::ldb::sizeStr ( const qint64 &  size)

Get string of size provided in bytes as string in kB, MB, etc .