UNIVERS
15.3
UNIVERS base processing software API
Main Page
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
include
hds_db
qsql
factory_qsql.hpp
1
/* factory_qsql.hpp */
2
/* $Id$ */
3
#ifndef __factory_qsql_hpp
4
#define __factory_qsql_hpp
5
6
#include <hds_db/base/factory.hpp>
7
#include <hds_db/qsql/dbcontext_qsql.hpp>
8
10
namespace
hds
11
{
13
namespace
db
14
{
16
class
FactoryQSql
:
public
Factory
17
{
18
public
:
19
21
FactoryQSql
();
22
24
FactoryQSql
(
const
ContextQSql
&dbc);
25
27
virtual
~FactoryQSql
();
28
29
31
void
setDbContext
(
const
ContextQSql
&dbc);
32
34
const
ContextQSql
&
dbContext
()
const
;
35
36
40
virtual
Project
*
getProject
()
const
;
41
46
virtual
Seismic
*
getSeismic
(
const
std::string &project_str)
const
;
47
51
virtual
Locker
* getLocker(
const
std::string &name =
"hds_db_locker"
)
const
;
52
53
58
void
setDefaultSeisCacheSizes
(
const
size_t
hdrs_cache_size,
59
const
size_t
bodies_cache_size);
60
64
void
setBufferAllSeisHeadersFlag
(
const
bool
flag =
true
);
65
66
protected
:
67
69
ContextQSql
m_dbc
;
70
72
size_t
m_def_hdrs_cache_size
;
73
75
size_t
m_def_bodies_cache_size
;
76
78
bool
m_buf_all_hdrs_flag;
79
};
80
};
// db
81
};
// hds
82
83
#endif
/* factory_qsql.hpp */
hds::db::ContextQSql
Definition:
dbcontext_qsql.hpp:15
hds::db::Seismic
Definition:
seismic.hpp:19
hds::db::FactoryQSql
Definition:
factory_qsql.hpp:16
hds::db::FactoryQSql::getProject
virtual Project * getProject() const
hds::db::Locker
Definition:
locker.hpp:50
hds::db::FactoryQSql::m_def_bodies_cache_size
size_t m_def_bodies_cache_size
Definition:
factory_qsql.hpp:75
hds::db::FactoryQSql::getSeismic
virtual Seismic * getSeismic(const std::string &project_str) const
hds::db::FactoryQSql::setBufferAllSeisHeadersFlag
void setBufferAllSeisHeadersFlag(const bool flag=true)
hds::db::Factory
Definition:
factory.hpp:18
hds::db::FactoryQSql::setDbContext
void setDbContext(const ContextQSql &dbc)
hds::db::Project
Definition:
project.hpp:16
hds::db::FactoryQSql::FactoryQSql
FactoryQSql()
hds::db::FactoryQSql::m_def_hdrs_cache_size
size_t m_def_hdrs_cache_size
Definition:
factory_qsql.hpp:72
hds::db::FactoryQSql::setDefaultSeisCacheSizes
void setDefaultSeisCacheSizes(const size_t hdrs_cache_size, const size_t bodies_cache_size)
hds::db::FactoryQSql::~FactoryQSql
virtual ~FactoryQSql()
hds::db::FactoryQSql::dbContext
const ContextQSql & dbContext() const
hds::db::FactoryQSql::m_dbc
ContextQSql m_dbc
Definition:
factory_qsql.hpp:69
Generated by
1.8.5