| 75 | [[nodiscard]] virtual Object read( const Args&... args ) = 0; |
| 76 | |
| 77 | ~Input() |
| 78 | { |
| 79 | if( inspect_required_ ) |
| 80 | { |
| 81 | geode::Logger::warn( |
| 82 | "[Input] The file loader notified INCONSISTENCIES in the " |
| 83 | "given data file. In consequence, the loaded structure is " |
| 84 | "likely BROKEN, and there is NO GUARANTEE that any further " |
| 85 | "operation will work on it without repairing it first. We " |
| 86 | "highly recommend inspecting the data to make sure these " |
| 87 | "inconsistencies do not impact your following work. To do " |
| 88 | "so, you can for example use the Open-Source " |
| 89 | "OpenGeode-Inspector or the online free tool: " |
| 90 | "https://geode-solutions.com/tools/validity_checker" ); |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | protected: |
| 95 | explicit Input( std::string_view filename ) : IOFile( filename ) {} |