Ecrivain au format JSON.
Plus de détails...
#include <arcane/utils/JSONWriter.h>
|
enum class | FormatFlags { None = 0
, HexFloat = 1
, Default = HexFloat
} |
|
|
| JSONWriter (FormatFlags format_flags=FormatFlags::Default) |
|
void | beginObject () |
|
void | endObject () |
|
void | beginArray () |
|
void | endArray () |
|
void | writeKey (StringView key) |
|
void | writeValue (StringView str) |
|
void | write (StringView key, const char *v) |
|
void | write (StringView key, std::string_view v) |
|
void | write (StringView key, bool v) |
|
void | write (StringView key, long long v) |
|
void | write (StringView key, long v) |
|
void | write (StringView key, int v) |
|
void | write (StringView key, unsigned long long v) |
|
void | write (StringView key, unsigned long v) |
|
void | write (StringView key, unsigned int v) |
|
void | write (StringView key, Real v) |
|
void | write (StringView key, StringView str) |
|
void | writeIfNotNull (StringView key, const String &str) |
|
void | write (StringView key, Span< const Int32 > view) |
|
void | write (StringView key, Span< const Int64 > view) |
|
void | write (StringView key, Span< const Real > view) |
|
StringView | getBuffer () const |
|
Ecrivain au format JSON.
- Avertissement
- API Interne. Ne pas utiliser en dehors de Arcane.
Définition à la ligne 32 du fichier JSONWriter.h.
◆ FormatFlags
enum class Arcane::JSONWriter::FormatFlags |
|
strong |
◆ JSONWriter()
Arcane::JSONWriter::JSONWriter |
( |
FormatFlags |
format_flags = FormatFlags::Default | ) |
|
◆ ~JSONWriter()
Arcane::JSONWriter::~JSONWriter |
( |
| ) |
|
◆ beginArray()
void Arcane::JSONWriter::beginArray |
( |
| ) |
|
◆ beginObject()
void Arcane::JSONWriter::beginObject |
( |
| ) |
|
◆ endArray()
void Arcane::JSONWriter::endArray |
( |
| ) |
|
◆ endObject()
void Arcane::JSONWriter::endObject |
( |
| ) |
|
◆ getBuffer()
StringView Arcane::JSONWriter::getBuffer |
( |
| ) |
const |
◆ write() [1/14]
void Arcane::JSONWriter::write |
( |
StringView |
key, |
|
|
bool |
v |
|
) |
| |
◆ write() [2/14]
void Arcane::JSONWriter::write |
( |
StringView |
key, |
|
|
const char * |
v |
|
) |
| |
◆ write() [3/14]
void Arcane::JSONWriter::write |
( |
StringView |
key, |
|
|
int |
v |
|
) |
| |
|
inline |
◆ write() [4/14]
void Arcane::JSONWriter::write |
( |
StringView |
key, |
|
|
long long |
v |
|
) |
| |
|
inline |
◆ write() [5/14]
void Arcane::JSONWriter::write |
( |
StringView |
key, |
|
|
long |
v |
|
) |
| |
|
inline |
◆ write() [6/14]
void Arcane::JSONWriter::write |
( |
StringView |
key, |
|
|
Real |
v |
|
) |
| |
◆ write() [7/14]
void Arcane::JSONWriter::write |
( |
StringView |
key, |
|
|
Span< const Int32 > |
view |
|
) |
| |
◆ write() [8/14]
void Arcane::JSONWriter::write |
( |
StringView |
key, |
|
|
Span< const Int64 > |
view |
|
) |
| |
◆ write() [9/14]
void Arcane::JSONWriter::write |
( |
StringView |
key, |
|
|
Span< const Real > |
view |
|
) |
| |
◆ write() [10/14]
void Arcane::JSONWriter::write |
( |
StringView |
key, |
|
|
std::string_view |
v |
|
) |
| |
◆ write() [11/14]
◆ write() [12/14]
void Arcane::JSONWriter::write |
( |
StringView |
key, |
|
|
unsigned int |
v |
|
) |
| |
|
inline |
◆ write() [13/14]
void Arcane::JSONWriter::write |
( |
StringView |
key, |
|
|
unsigned long long |
v |
|
) |
| |
|
inline |
◆ write() [14/14]
void Arcane::JSONWriter::write |
( |
StringView |
key, |
|
|
unsigned long |
v |
|
) |
| |
|
inline |
◆ writeIfNotNull()
◆ writeKey()
void Arcane::JSONWriter::writeKey |
( |
StringView |
key | ) |
|
◆ writeValue()
void Arcane::JSONWriter::writeValue |
( |
StringView |
str | ) |
|
La documentation de cette classe a été générée à partir des fichiers suivants :