This class provides a mechanism for decoding JSON data into value‐semantic objects. The decode methods are function templates that will decode any object that meets the requirements of a sequence, choice, or array object as defined in the bdlat_sequencefunctions, bdlat_choicefunctions, and bdlat_choicefunctions components respectively. These generic frameworks provide a common compile‐time interface for manipulating struct‐like and union‐like objects. In particular, the types generated by bas_codegen.pl provide the necessary interface and can be decoded using this component.
Synopsis
Declared in <baljsn_decoder.h>
class Decoder;
Member Functions
Name |
Description |
|
Construct a decoder object using the optionally specified |
|
|
|
|
Return a string containing any error, warning, or trace messages that were logged during the last call to the |
|
Return the number of unknown elements that were skipped during the previous decoding operation. Note that unknown elements are skipped only if |
Friends
Name |
Description |
This |
|
This class provides a functor that dispatches the appropriate |
Created with MrDocs