UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
service.hpp
1 /* service.hpp */
2 /* $Id$ */
3 #ifndef __hds_ldb_service_hpp
4 #define __hds_ldb_service_hpp
5 
6 #include <QList>
7 #include <QStringList>
8 
9 #include <ldb/dbnamedefs.h>
10 
12 namespace hds
13 {
15  namespace ldb
16  {
18  struct TT2NameElem
19  {
21  TT2NameElem(const QString &i_tt_str, const QString &i_label_str):
22  tt_str(i_tt_str), label_str(i_label_str) {/* nothing to do. */}
23 
24  QString tt_str;
25  QString label_str;
26  };
27 
29  const QList<TT2NameElem>& getTT2NameList();
30 
31 
34  QStringList projectsList();
35 
38  int removeProject(const QString &name_str);
39 
40 
43  QStringList seismicList(const QString &project_str);
44 
49  int removeSeismic(const QString &project_str, const QString &seis_str);
50 
52  bool checkSeismic(const QString &project, const QString &name);
53 
54 
57  QStringList dbItemsList(const QString &project,
58  dbNameStruct *dbfrom,
59  QList<QStringList> &items);
63  int removeDbt(const QString &project, dbNameStruct &dbns);
64 
66  bool dbNameStructCmp(const dbNameStruct &dbns1, const dbNameStruct &dbns2);
67 
68 
70  QString sizeStr(const qint64 &size);
71  };
72 };
73 
74 #endif /* hds_ldb_service.hpp */
QStringList projectsList()
Definition: dbnamedefs.h:67
int removeDbt(const QString &project, dbNameStruct &dbns)
bool checkSeismic(const QString &project, const QString &name)
QString label_str
Definition: service.hpp:25
int removeSeismic(const QString &project_str, const QString &seis_str)
Definition: service.hpp:18
QStringList dbItemsList(const QString &project, dbNameStruct *dbfrom, QList< QStringList > &items)
int removeProject(const QString &name_str)
QString tt_str
Definition: service.hpp:24
TT2NameElem(const QString &i_tt_str, const QString &i_label_str)
Definition: service.hpp:21
QString sizeStr(const qint64 &size)
const QList< TT2NameElem > & getTT2NameList()
QStringList seismicList(const QString &project_str)
bool dbNameStructCmp(const dbNameStruct &dbns1, const dbNameStruct &dbns2)