38 #include <geogram/basic/file_system.h> 39 #include <geogram/basic/line_stream.h> 64 Logger::out(
"I/O",
"Loading file ", filename,
"..." );
66 std::unique_ptr< WellGroupIOHandler > handler =
68 handler->load( filename, wells );
72 const std::string& format )
77 Logger::err(
"I/O",
"Currently supported file formats are: " );
78 for(
const std::string& name :
85 "I/O",
"Unsupported file format: ", format );
91 const std::string& filename )
93 return create( GEO::FileSystem::extension( filename ) );
101 WellGroupIOHandlerFactory::register_creator< WLIOHandler >(
"wl" );
102 WellGroupIOHandlerFactory::register_creator< SmeshIOHandler >(
static std::vector< Key > list_creators()
static std::unique_ptr< BaseClass > create(const Key &key, const Args &... args)
static std::unique_ptr< WellGroupIOHandler > get_handler(const std::string &filename)
static void err(const std::string &feature, const Args &... args)
static void out(const std::string &feature, const Args &... args)
void RINGMESH_API well_load(const std::string &filename, WellGroup3D &wells)
static std::unique_ptr< WellGroupIOHandler > create(const std::string &format)
Classes to build GeoModel from various inputs.