#include <factory_qsql.hpp>
Factory for Qt Sql database object generation.
hds::db::FactoryQSql::FactoryQSql |
( |
| ) |
|
Default construntor without database context.
hds::db::FactoryQSql::FactoryQSql |
( |
const ContextQSql & |
dbc | ) |
|
Construct factory with data base context provided.
virtual hds::db::FactoryQSql::~FactoryQSql |
( |
| ) |
|
|
virtual |
const ContextQSql& hds::db::FactoryQSql::dbContext |
( |
| ) |
const |
Access to current database context.
virtual Project* hds::db::FactoryQSql::getProject |
( |
| ) |
const |
|
virtual |
Creates new ProjectQSql object and return the pointer.
Result should be deleted.
- Returns
- NULL on error.
Implements hds::db::Factory.
virtual Seismic* hds::db::FactoryQSql::getSeismic |
( |
const std::string & |
project_str | ) |
const |
|
virtual |
Creates new SeismicQSql object and return the pointer.
Result should be deleted.
- Parameters
-
project_str | Name of the project. |
- Returns
- NULL on error or new object.
Implements hds::db::Factory.
void hds::db::FactoryQSql::setBufferAllSeisHeadersFlag |
( |
const bool |
flag = true | ) |
|
Set flag of full seismic headers buffering.
All seismicss will be generated with these parameters.
- Parameters
-
flag | Headers buferization flag. |
void hds::db::FactoryQSql::setDbContext |
( |
const ContextQSql & |
dbc | ) |
|
Set new database context.
void hds::db::FactoryQSql::setDefaultSeisCacheSizes |
( |
const size_t |
hdrs_cache_size, |
|
|
const size_t |
bodies_cache_size |
|
) |
| |
Set default seismic cache sizes.
All seismicss will be generated with these parameters.
- Parameters
-
hdrs_cache_size | Size of cache of headers. |
bodies_cache_size | Size of cache of bodies. |
< Current database context. Current default size of cache of headers.
size_t hds::db::FactoryQSql::m_def_bodies_cache_size |
|
protected |
Flag of buffering of all headers.
size_t hds::db::FactoryQSql::m_def_hdrs_cache_size |
|
protected |
Current default size of cache of bodies.
The documentation for this class was generated from the following file:
- /net/opt/univers/ubp-i-15.3-centos7-x64.urij/include/hds_db/qsql/factory_qsql.hpp