mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-15 09:17:57 -05:00
Use shared ptr for line filenames to be able to still use filenames when original file has been closed
This commit is contained in:
@ -1,13 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <istream>
|
||||
#include <memory>
|
||||
|
||||
#include "Parsing/IParserLineStream.h"
|
||||
|
||||
class ParserSingleInputStream final : public IParserLineStream
|
||||
{
|
||||
std::istream& m_stream;
|
||||
std::string m_file_name;
|
||||
std::shared_ptr<std::string> m_file_name;
|
||||
int m_line_number;
|
||||
|
||||
public:
|
||||
|
Reference in New Issue
Block a user