1
0

test: scan

This commit is contained in:
2026-02-21 14:47:30 +02:00
parent 0f40f89cbb
commit 6a3a7541ea
6 changed files with 73 additions and 9 deletions

View File

@@ -124,10 +124,10 @@ int main(int argc, char** argv) {
using FloatType = float;
using IndexType = std::uint32_t;
CATCH_AND_RETURN(scan_data, wavefront::scan_error, 1, wavefront::scan(
auto scan_data = wavefront::scan(
settings.input(),
settings.selected_objects(),
settings.selected_groups())
settings.selected_groups()
);
std::cerr << "Scanned " << scan_data.total_lines << " lines" << std::endl;

View File

@@ -11,8 +11,6 @@
#include "scan.hpp"
namespace wavefront {
scan_error::scan_error(const std::string &message) : std::runtime_error(message) {}
scan_result::scan_result() :
total_lines(0),
line_data(),

View File

@@ -10,11 +10,6 @@
#include "settings.hpp"
namespace wavefront {
class scan_error : public std::runtime_error {
public:
explicit scan_error(const std::string &message);
};
struct scan_result {
std::size_t total_lines;
std::map<std::size_t, std::string> line_data;