cpp_drawing/input_file.hpp
2025-09-29 19:13:57 +02:00

24 lines
344 B
C++

#pragma once
#include <filesystem>
#include <fstream>
#include "shapes/group.hpp"
class InputFile
{
public:
InputFile(const std::filesystem::path& path);
shapes::Group Parse();
size_t GetNumProcessedCmds() const
{
return m_cmdsProcessed;
}
private:
std::ifstream m_file;
size_t m_cmdsProcessed;
};