mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-08 13:58:31 -05:00
30 lines
816 B
C++
30 lines
816 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "ZoneCodeGeneratorArguments.h"
|
|
#include "Parsing/IPackValueSupplier.h"
|
|
#include "Parsing/IParserLineStream.h"
|
|
#include "Persistence/IDataRepository.h"
|
|
|
|
class HeaderFileReader
|
|
{
|
|
static constexpr const char* ZONE_CODE_GENERATOR_DEFINE_NAME = "__zonecodegenerator";
|
|
static constexpr const char* ZONE_CODE_GENERATOR_DEFINE_VALUE = "1";
|
|
|
|
const ZoneCodeGeneratorArguments* m_args;
|
|
std::string m_filename;
|
|
|
|
std::vector<std::unique_ptr<IParserLineStream>> m_open_streams;
|
|
IPackValueSupplier* m_pack_value_supplier;
|
|
IParserLineStream* m_stream;
|
|
|
|
bool OpenBaseStream();
|
|
void SetupStreamProxies();
|
|
|
|
public:
|
|
HeaderFileReader(const ZoneCodeGeneratorArguments* args, std::string filename);
|
|
|
|
bool ReadHeaderFile(IDataRepository* repository);
|
|
};
|