enderalse/SKSE/Plugins/fs_skse_plugin_functions/common/ITextParser.h
2021-10-06 02:45:46 +02:00

26 lines
463 B
C++

#pragma once
#include "common/IDataStream.h"
class ITextParser
{
public:
ITextParser();
ITextParser(IDataStream * stream);
~ITextParser();
void Attach(IDataStream * stream);
IDataStream * GetStream(void) { return m_stream; }
bool HitEOF(void) { return m_stream->HitEOF(); }
void SkipWhitespace(void);
void SkipLine(void);
void ReadLine(char * out, UInt32 length);
void ReadToken(char * out, UInt32 length);
private:
IDataStream * m_stream;
};