cpp_drawing/input_file.hpp
2025-09-26 18:39:24 +02:00

26 lines
380 B
C++

#pragma once
#include <filesystem>
#include <fstream>
#include <memory>
#include <vector>
#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;
};