Stream insertion operators
Declared in <bdljsn_error.h>
Write "null" -- the invariant value of the specified object -- to the specified output stream in a single-line format and return a reference to stream. Note that this method has the same behavior as ` object.print(stream, 0, -1); `
std::ostream&
operator<<(
std::ostream& stream,
JsonNull const& object);
» more...
Write the value of the specified object to the specified output stream in a single-line format, and return a non-const reference to stream. If stream is not valid on entry, this operation has no effect. Note that this human-readable format is not fully specified and can change without notice. Also note that this method has the same behavior as object.print(stream, 0, -1).
std::ostream&
operator<<(
std::ostream& stream,
JsonNumber const& object);
» more...
Write the string representation of the specified enumeration value to the specified output stream in a single-line format, and return a reference to stream. See toAscii for what constitutes the string representation of a bdljsn::JsonType::Enum value. Note that this method has the same behavior as ` bdljsn::JsonType::print(stream, value, 0, -1); `
std::ostream&
operator<<(
std::ostream& stream,
JsonType::Enum value);
» more...
Write the value of the specified object to the specified output stream in a single-line format, and return a reference to stream. If stream is not valid on entry, this operation has no effect. Note that this human-readable format is not fully specified, can change without notice, and is logically equivalent to: ` print(stream, 0, -1); `
std::ostream&
operator<<(
std::ostream& stream,
JsonArray const& object);
» more...
Write the value of the specified object to the specified output stream in a single-line format, and return a reference to stream. If stream is not valid on entry, this operation has no effect. Note that this human-readable format is not fully specified, can change without notice, and is logically equivalent to: ` print(stream, 0, -1); `
std::ostream&
operator<<(
std::ostream& stream,
JsonObject const& object);
» more...
Write the value of the specified object to the specified output stream in a single-line format, and return a reference to stream. If stream is not valid on entry, this operation has no effect. Note that this human-readable format is not fully specified, can change without notice, and is logically equivalent to: ` print(stream, 0, -1); `
std::ostream&
operator<<(
std::ostream& stream,
Json const& object);
» more...
Write the string representation of the specified enumeration value to the specified output stream in a single-line format, and return a reference to stream. See toAscii for what constitutes the string representation of a bdljsn::WriteStyle::Enum value. Note that this method has the same behavior as ` bdljsn::WriteStyle::print(stream, value, 0, -1); `
std::ostream&
operator<<(
std::ostream& stream,
WriteStyle::Enum value);
» more...
Write the value of the specified object to the specified output stream in a single-line format, and return a non-const reference to stream. If stream is not valid on entry, this operation has no effect. Note that this human-readable format is not fully specified and can change without notice. Also note that this method has the same behavior as object.print(stream, 0, -1), but with the attribute names elided.
std::ostream&
operator<<(
std::ostream& stream,
Location const& object);
» more...
Write the value of the specified object to the specified output stream in a single-line format, and return a non-const reference to stream. If stream is not valid on entry, this operation has no effect. Note that this human-readable format is not fully specified and can change without notice. Also note that this method has the same behavior as object.print(stream, 0, -1), but with the attribute names elided.
std::ostream&
operator<<(
std::ostream& stream,
Error const& object);
» more...
Format the specified rhs to the specified output stream in a single line format and return a non-const reference to stream.
std::ostream&
operator<<(
std::ostream& stream,
ReadOptions const& rhs);
» more...
Format the specified rhs to the specified output stream and return a non-const reference stream.
std::ostream&
operator<<(
std::ostream& stream,
WriteOptions const& rhs);
» more...