mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 16:45:44 +00:00
30 lines
732 B
C++
30 lines
732 B
C++
#pragma once
|
|
|
|
#include "Parsing/IParserLineStream.h"
|
|
#include "Parsing/PostProcessing/IPostProcessor.h"
|
|
#include "Persistence/IDataRepository.h"
|
|
#include "ZoneCodeGeneratorArguments.h"
|
|
|
|
#include <string>
|
|
|
|
class CommandsFileReader
|
|
{
|
|
public:
|
|
CommandsFileReader(const ZoneCodeGeneratorArguments* args, std::string filename);
|
|
|
|
bool ReadCommandsFile(IDataRepository* repository);
|
|
|
|
private:
|
|
bool OpenBaseStream();
|
|
void SetupStreamProxies();
|
|
void SetupPostProcessors();
|
|
|
|
const ZoneCodeGeneratorArguments* m_args;
|
|
std::string m_filename;
|
|
|
|
std::vector<std::unique_ptr<IParserLineStream>> m_open_streams;
|
|
IParserLineStream* m_stream;
|
|
|
|
std::vector<std::unique_ptr<IPostProcessor>> m_post_processors;
|
|
};
|