Classes | |
| class | Impl |
Public Types | |
| enum | eParseFlag { ParseNoFlags = 0 , ParseCommentsFlag = 1 , ParseNumbersAsStringsFlag = 2 } |
Public Member Functions | |
| void | parse (Span< const Byte > bytes, Int16 flags=ParseNoFlags) |
| Reads the file in UTF-8 format. | |
| void | parse (Span< const std::byte > bytes, Int16 flags=ParseNoFlags) |
| Reads the file in UTF-8 format. | |
| void | parse (Span< const Byte > bytes, StringView file_name, Int16 flags=ParseNoFlags) |
| Reads the file in UTF-8 format. | |
| void | parse (Span< const std::byte > bytes, StringView file_name, Int16 flags=ParseNoFlags) |
| Reads the file in UTF-8 format. | |
| JSONValue | root () const |
| Root element. | |
Definition at line 239 of file arccore/src/common/arccore/common/JSONReader.h.
| Enumerator | |
|---|---|
| ParseNoFlags | No flags are set. |
| ParseCommentsFlag | Allow one-line (//) and multi-line (/**/) comments. |
| ParseNumbersAsStringsFlag | Parse all numbers (ints/doubles) as strings. |
Definition at line 246 of file arccore/src/common/arccore/common/JSONReader.h.
| Arcane::JSONDocument::JSONDocument | ( | ) |
Definition at line 406 of file JSONReader.cc.
| Arcane::JSONDocument::~JSONDocument | ( | ) |
Definition at line 412 of file JSONReader.cc.
| void Arcane::JSONDocument::parse | ( | Span< const Byte > | bytes, |
| Int16 | flags = ParseNoFlags ) |
Reads the file in UTF-8 format.
Definition at line 517 of file JSONReader.cc.
References Arcane::asBytes(), and parse().
| void Arcane::JSONDocument::parse | ( | Span< const Byte > | bytes, |
| StringView | file_name, | ||
| Int16 | flags = ParseNoFlags ) |
Reads the file in UTF-8 format.
Definition at line 526 of file JSONReader.cc.
References Arcane::asBytes(), and parse().
| void Arcane::JSONDocument::parse | ( | Span< const std::byte > | bytes, |
| Int16 | flags = ParseNoFlags ) |
| void Arcane::JSONDocument::parse | ( | Span< const std::byte > | bytes, |
| StringView | file_name, | ||
| Int16 | flags = ParseNoFlags ) |
Reads the file in UTF-8 format.
Definition at line 472 of file JSONReader.cc.
References ARCCORE_FATAL, Arcane::SpanImpl< T, SizeType, Extent >::data(), ParseCommentsFlag, ParseNoFlags, ParseNumbersAsStringsFlag, and Arcane::SpanImpl< T, SizeType, Extent >::size().
| JSONValue Arcane::JSONDocument::root | ( | ) | const |
Root element.
Definition at line 535 of file JSONReader.cc.