UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
hds::db::FactoryQSql Class Reference

#include <factory_qsql.hpp>

Inheritance diagram for hds::db::FactoryQSql:
hds::db::Factory

Public Member Functions

 FactoryQSql ()
 
 FactoryQSql (const ContextQSql &dbc)
 
virtual ~FactoryQSql ()
 
void setDbContext (const ContextQSql &dbc)
 
const ContextQSqldbContext () const
 
virtual ProjectgetProject () const
 
virtual SeismicgetSeismic (const std::string &project_str) const
 
Name of the locker.
Get locker object pointer with provided locker name. 
Returns
new Locker object.

Name of the locker.

Get locker object pointer with provided locker name. 
Returns
new Locker object.
ContextQSql m_dbc
 
size_t m_def_hdrs_cache_size
 
size_t m_def_bodies_cache_size
 
bool m_buf_all_hdrs_flag
 
virtual LockergetLocker (const std::string &name="hds_db_locker") const
 
void setDefaultSeisCacheSizes (const size_t hdrs_cache_size, const size_t bodies_cache_size)
 
void setBufferAllSeisHeadersFlag (const bool flag=true)
 

Detailed Description

Factory for Qt Sql database object generation.

Constructor & Destructor Documentation

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

Destroy factory.

Member Function Documentation

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_strName 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
flagHeaders 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_sizeSize of cache of headers.
bodies_cache_sizeSize of cache of bodies.

Member Data Documentation

ContextQSql hds::db::FactoryQSql::m_dbc
protected

< 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: