Gestion d'un document JSON. Plus de détails...
Classes | |
| class | Impl |
Types publics | |
| enum | eParseFlag { ParseNoFlags = 0 , ParseCommentsFlag = 1 , ParseNumbersAsStringsFlag = 2 } |
Fonctions membres publiques | |
| void | parse (Span< const Byte > bytes, Int16 flags=ParseNoFlags) |
| Lit le fichier au format UTF-8. | |
| void | parse (Span< const std::byte > bytes, Int16 flags=ParseNoFlags) |
| Lit le fichier au format UTF-8. | |
| void | parse (Span< const Byte > bytes, StringView file_name, Int16 flags=ParseNoFlags) |
| Lit le fichier au format UTF-8. | |
| void | parse (Span< const std::byte > bytes, StringView file_name, Int16 flags=ParseNoFlags) |
| Lit le fichier au format UTF-8. | |
| JSONValue | root () const |
| Elément racine. | |
Attributs privés | |
| Impl * | m_p = nullptr |
Gestion d'un document JSON.
Définition à la ligne 239 du fichier arccore/src/common/arccore/common/JSONReader.h.
Définition à la ligne 246 du fichier arccore/src/common/arccore/common/JSONReader.h.
| Arcane::JSONDocument::JSONDocument | ( | ) |
Définition à la ligne 409 du fichier JSONReader.cc.
| Arcane::JSONDocument::~JSONDocument | ( | ) |
Définition à la ligne 415 du fichier JSONReader.cc.
| void Arcane::JSONDocument::parse | ( | Span< const Byte > | bytes, |
| Int16 | flags = ParseNoFlags ) |
Lit le fichier au format UTF-8.
Définition à la ligne 520 du fichier JSONReader.cc.
Références Arcane::asBytes(), et parse().
Référencé par Arcane::VariableIOReaderMng::_readMetaData(), Arcane::Application::initialize(), parse(), parse(), et parse().
| void Arcane::JSONDocument::parse | ( | Span< const Byte > | bytes, |
| StringView | file_name, | ||
| Int16 | flags = ParseNoFlags ) |
Lit le fichier au format UTF-8.
Définition à la ligne 529 du fichier JSONReader.cc.
Références Arcane::asBytes(), et parse().
| void Arcane::JSONDocument::parse | ( | Span< const std::byte > | bytes, |
| Int16 | flags = ParseNoFlags ) |
Lit le fichier au format UTF-8.
Définition à la ligne 511 du fichier JSONReader.cc.
Références parse().
| void Arcane::JSONDocument::parse | ( | Span< const std::byte > | bytes, |
| StringView | file_name, | ||
| Int16 | flags = ParseNoFlags ) |
Lit le fichier au format UTF-8.
Définition à la ligne 475 du fichier JSONReader.cc.
Références ARCCORE_FATAL, ParseResult::Code(), GenericDocument< Encoding, Allocator, StackAllocator >::GetParseError(), GenericDocument< Encoding, Allocator, StackAllocator >::HasParseError(), kParseCommentsFlag, kParseNoFlags, kParseNumbersAsStringsFlag, ParseResult::Offset(), GenericDocument< Encoding, Allocator, StackAllocator >::Parse(), ParseCommentsFlag, ParseNoFlags, et ParseNumbersAsStringsFlag.
| JSONValue Arcane::JSONDocument::root | ( | ) | const |
Elément racine.
Définition à la ligne 538 du fichier JSONReader.cc.
Référencé par Arcane::VariableIOReaderMng::_readMetaData(), et Arcane::Application::initialize().
|
private |
Définition à la ligne 277 du fichier arccore/src/common/arccore/common/JSONReader.h.