Alamo
Static Public Member Functions
IO::JSON Class Reference

#include <JSON.H>

Static Public Member Functions

static std::string Escape (const std::string &value)
 
static void Indent (std::ostream &os, int indent)
 
static void Comma (std::ostream &os, bool &first, int indent)
 
static void WriteStringField (std::ostream &os, bool &first, int indent, const std::string &name, const std::string &value)
 
static void WriteBoolField (std::ostream &os, bool &first, int indent, const std::string &name, bool value)
 
static void WriteIntField (std::ostream &os, bool &first, int indent, const std::string &name, int value)
 
static void WriteStringArray (std::ostream &os, const std::vector< std::string > &values)
 
static void WriteStringArrayField (std::ostream &os, bool &first, int indent, const std::string &name, const std::vector< std::string > &values)
 
static void WriteSourceField (std::ostream &os, bool &first, int indent, const std::source_location &location)
 

Detailed Description

Definition at line 11 of file JSON.H.

Member Function Documentation

◆ Comma()

static void IO::JSON::Comma ( std::ostream &  os,
bool &  first,
int  indent 
)
inlinestatic

Definition at line 39 of file JSON.H.

◆ Escape()

static std::string IO::JSON::Escape ( const std::string &  value)
inlinestatic

Definition at line 14 of file JSON.H.

◆ Indent()

static void IO::JSON::Indent ( std::ostream &  os,
int  indent 
)
inlinestatic

Definition at line 34 of file JSON.H.

◆ WriteBoolField()

static void IO::JSON::WriteBoolField ( std::ostream &  os,
bool &  first,
int  indent,
const std::string &  name,
bool  value 
)
inlinestatic

Definition at line 53 of file JSON.H.

◆ WriteIntField()

static void IO::JSON::WriteIntField ( std::ostream &  os,
bool &  first,
int  indent,
const std::string &  name,
int  value 
)
inlinestatic

Definition at line 60 of file JSON.H.

◆ WriteSourceField()

static void IO::JSON::WriteSourceField ( std::ostream &  os,
bool &  first,
int  indent,
const std::source_location &  location 
)
inlinestatic

Definition at line 87 of file JSON.H.

◆ WriteStringArray()

static void IO::JSON::WriteStringArray ( std::ostream &  os,
const std::vector< std::string > &  values 
)
inlinestatic

Definition at line 67 of file JSON.H.

◆ WriteStringArrayField()

static void IO::JSON::WriteStringArrayField ( std::ostream &  os,
bool &  first,
int  indent,
const std::string &  name,
const std::vector< std::string > &  values 
)
inlinestatic

Definition at line 78 of file JSON.H.

◆ WriteStringField()

static void IO::JSON::WriteStringField ( std::ostream &  os,
bool &  first,
int  indent,
const std::string &  name,
const std::string &  value 
)
inlinestatic

Definition at line 46 of file JSON.H.


The documentation for this class was generated from the following file: