gsystem
Loading...
Searching...
No Matches
GSystemSQLiteFactory Class Reference

Load a GSystem from a sqlite database. More...

#include <systemSqliteFactory.h>

Public Member Functions

 GSystemFactory (const std::shared_ptr< GOptions > &g)
 Construct the factory with shared configuration.
 
- Public Member Functions inherited from GSystemFactory
 ~GSystemFactory () override=default
 
 GSystemFactory (const std::shared_ptr< GOptions > &g)
 Construct the factory with shared configuration.
 
void loadSystem (GSystem *system)
 Load a system by invoking the concrete factory steps.
 
void addPossibleFileLocation (const std::string &fl)
 Add a candidate directory for file searches.
 
- Public Member Functions inherited from GBase< GSystemFactory >
 GBase (const std::shared_ptr< GOptions > &gopt, std::string logger_name="")
 
 GBase (const std::shared_ptr< GLogger > &logger)
 
 GBase (const GBase &)=default
 
 GBase (GBase &&) noexcept=default
 
virtual ~GBase ()
 
GBaseoperator= (const GBase &)=default
 
GBaseoperator= (GBase &&) noexcept=default
 

Additional Inherited Members

- Protected Attributes inherited from GSystemFactory
std::vector< std::string > possibleLocationOfFiles
 List of candidate directories used by file-based factories.
 
- Protected Attributes inherited from GBase< GSystemFactory >
std::shared_ptr< GLoggerlog
 

Detailed Description

This factory populates:

  • materials from the materials table;
  • geometry volumes from the geometry table.

Database lifetime:

  • The sqlite connection is created on-demand during the first load call.
  • The DB handle is closed in closeSystem().

Special-case behavior:

  • The ROOT/world system (ROOTWORLDGVOLUMENAME) is skipped by design (it is injected separately).

Definition at line 27 of file systemSqliteFactory.h.

Member Function Documentation

◆ GSystemFactory()

GSystemFactory::GSystemFactory ( const std::shared_ptr< GOptions > & g)
inlineexplicit
Parameters
gShared options/configuration instance.

Definition at line 44 of file systemFactory.h.


The documentation for this class was generated from the following files: