TOML serializer implementation
Overloaded constructor for TOML serializers
Constructor to create new serializer instance
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_serializer), | intent(out) | :: | self |
Instance of the TOML serializer |
||
type(toml_ser_config), | intent(in), | optional | :: | config |
Configuration for serializer |
Write string representation of JSON value to a file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_value), | intent(inout) | :: | val |
TOML value to visit |
||
character(len=*), | intent(in) | :: | filename |
File name to write to |
||
type(toml_error), | intent(out), | allocatable | :: | error |
Error handling |
|
type(toml_ser_config), | intent(in), | optional | :: | config |
Configuration for serializer |
Write string representation of JSON value to a connected formatted unit
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_value), | intent(inout) | :: | val |
TOML value to visit |
||
integer, | intent(in) | :: | io |
Formatted unit to write to |
||
type(toml_error), | intent(out), | allocatable | :: | error |
Error handling |
|
type(toml_ser_config), | intent(in), | optional | :: | config |
Configuration for serializer |
Create a string representing the JSON value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_value), | intent(inout) | :: | val |
TOML value to visit |
||
character(len=:), | intent(out), | allocatable | :: | string |
Formatted unit to write to |
|
type(toml_error), | intent(out), | allocatable | :: | error |
Error handling |
|
type(toml_ser_config), | intent(in), | optional | :: | config |
Configuration for serializer |
Create standard constructor
Default constructor for TOML serializer
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_ser_config), | intent(in), | optional | :: | config |
Configuration for serializer |
Instance of the TOML serializer
TOML serializer to produduce a TOML document from a datastructure
Create standard constructor
private function new_serializer_func (config) | Default constructor for TOML serializer |
procedure, public :: visit | ../../ Visit a TOML value |
Serialize a JSON value to a string and return it.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_value), | intent(inout) | :: | val |
TOML value to visit |
||
type(toml_ser_config), | intent(in), | optional | :: | config |
Configuration for serializer |
Serialized JSON value
Constructor to create new serializer instance
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_serializer), | intent(out) | :: | self |
Instance of the TOML serializer |
||
type(toml_ser_config), | intent(in), | optional | :: | config |
Configuration for serializer |