UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 
70 
73 
76 
78  bool m_buf_all_hdrs_flag;
79  };
80  }; // db
81 }; // hds
82 
83 #endif /* factory_qsql.hpp */
Definition: dbcontext_qsql.hpp:15
Definition: seismic.hpp:19
Definition: factory_qsql.hpp:16
virtual Project * getProject() const
Definition: locker.hpp:50
size_t m_def_bodies_cache_size
Definition: factory_qsql.hpp:75
virtual Seismic * getSeismic(const std::string &project_str) const
void setBufferAllSeisHeadersFlag(const bool flag=true)
Definition: factory.hpp:18
void setDbContext(const ContextQSql &dbc)
Definition: project.hpp:16
size_t m_def_hdrs_cache_size
Definition: factory_qsql.hpp:72
void setDefaultSeisCacheSizes(const size_t hdrs_cache_size, const size_t bodies_cache_size)
const ContextQSql & dbContext() const
ContextQSql m_dbc
Definition: factory_qsql.hpp:69