mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-08 22:08:29 -05:00
21 lines
511 B
C++
21 lines
511 B
C++
#pragma once
|
|
|
|
#include <istream>
|
|
|
|
#include "Parsing/IParserLineStream.h"
|
|
|
|
class ParserInputStream final : public IParserLineStream
|
|
{
|
|
std::istream& m_stream;
|
|
std::string m_file_name;
|
|
int m_line_number;
|
|
|
|
public:
|
|
ParserInputStream(std::istream& stream, std::string fileName);
|
|
|
|
ParserLine NextLine() override;
|
|
bool IncludeFile(const std::string& filename) override;
|
|
void PopCurrentFile() override;
|
|
_NODISCARD bool IsOpen() const override;
|
|
_NODISCARD bool Eof() const override;
|
|
}; |