struct
#include <src/vt/utils/json/json_reader.h>
Reader Reader for JSON files either compressed or not.
Constructors, destructors, conversion operators
- Reader(std::string const& in_filename) explicit
- Construct the reader.
Public functions
- auto isCompressed() const -> bool
- Check if the file is compressed or not.
- auto readFile() -> std::unique_ptr<nlohmann::json>
- Read the file and output JSON.
Function documentation
vt:: util:: json:: Reader:: Reader(std::string const& in_filename) explicit
Construct the reader.
Parameters | |
---|---|
in_filename in | the file name to read |
bool vt:: util:: json:: Reader:: isCompressed() const
Check if the file is compressed or not.
Returns | whether the file is compressed |
---|
std::unique_ptr<nlohmann::json> vt:: util:: json:: Reader:: readFile()
Read the file and output JSON.
Returns | the JSON |
---|