23 lines
No EOL
371 B
C++
23 lines
No EOL
371 B
C++
#pragma once
|
|
|
|
#include "FileSystemPath.h"
|
|
#include "Stream.h"
|
|
#include "JsonDocument.h"
|
|
|
|
class JsonParser
|
|
{
|
|
public:
|
|
Ptr<JsonDocument> read(const FileSystemPath& input_file);
|
|
|
|
Ptr<JsonDocument> read(InputStream<Byte>& stream);
|
|
|
|
private:
|
|
enum class State
|
|
{
|
|
READY,
|
|
IN_OBJECT,
|
|
IN_ARRAY,
|
|
IN_STRING,
|
|
IN_NUMBER
|
|
};
|
|
}; |