OpenZGY/C++ API and Internals (ALPHA)
Access seismic data stored in ZGY format.
Public Types | Public Member Functions | Static Public Member Functions | List of all members
InternalZGY::FileFactory Class Reference

Public Types

typedef std::function< std::shared_ptr< FileADT >const std::string &, OpenMode, const OpenZGY::IOContext *)> factory_t
 

Public Member Functions

std::shared_ptr< FileADTcreate (const std::string &filename, OpenMode mode, const OpenZGY::IOContext *iocontext)
 
void add_factory (const factory_t &factory)
 

Static Public Member Functions

static FileFactoryinstance ()
 

Member Function Documentation

◆ create()

std::shared_ptr< FileADT > InternalZGY::FileFactory::create ( const std::string &  filename,
OpenMode  mode,
const OpenZGY::IOContext iocontext 
)

Try the registered factories in the order of registration until one is found that can handle this file. Caveat: If registration is done using static initializers then that order is undefined. So when a factory decides whether to handle a file or not it should not make assumptions about where it is in the list.


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