Management of a JSON document. More...
Classes | |
| class | Impl |
Public Member Functions | |
| void | parse (Span< const Byte > bytes) |
| Reads the file in UTF-8 format. | |
| void | parse (Span< const std::byte > bytes) |
| Reads the file in UTF-8 format. | |
| void | parse (Span< const Byte > bytes, StringView file_name) |
| Reads the file in UTF-8 format. | |
| void | parse (Span< const std::byte > bytes, StringView file_name) |
| Reads the file in UTF-8 format. | |
| JSONValue | root () const |
| Root element. | |
Private Attributes | |
| Impl * | m_p |
Management of a JSON document.
Definition at line 231 of file arccore/src/common/arccore/common/JSONReader.h.
| Arcane::JSONDocument::JSONDocument | ( | ) |
Definition at line 348 of file JSONReader.cc.
| Arcane::JSONDocument::~JSONDocument | ( | ) |
Definition at line 355 of file JSONReader.cc.
Reads the file in UTF-8 format.
Definition at line 441 of file JSONReader.cc.
References Arcane::asBytes(), and parse().
Referenced by Arcane::VariableIOReaderMng::_readMetaData(), Arcane::Application::initialize(), parse(), parse(), and parse().
| void Arcane::JSONDocument::parse | ( | Span< const Byte > | bytes, |
| StringView | file_name ) |
Reads the file in UTF-8 format.
Definition at line 450 of file JSONReader.cc.
References Arcane::asBytes(), and parse().
| void Arcane::JSONDocument::parse | ( | Span< const std::byte > | bytes | ) |
Reads the file in UTF-8 format.
Definition at line 432 of file JSONReader.cc.
References parse().
| void Arcane::JSONDocument::parse | ( | Span< const std::byte > | bytes, |
| StringView | file_name ) |
Reads the file in UTF-8 format.
Definition at line 415 of file JSONReader.cc.
References ARCCORE_FATAL, ParseResult::Code(), GenericDocument< Encoding, Allocator, StackAllocator >::GetParseError(), GenericDocument< Encoding, Allocator, StackAllocator >::HasParseError(), ParseResult::Offset(), and GenericDocument< Encoding, Allocator, StackAllocator >::Parse().
| JSONValue Arcane::JSONDocument::root | ( | ) | const |
Root element.
Definition at line 459 of file JSONReader.cc.
Referenced by Arcane::VariableIOReaderMng::_readMetaData(), and Arcane::Application::initialize().
|
private |
Definition at line 255 of file arccore/src/common/arccore/common/JSONReader.h.