BDE 4.39.x Production Release
Loading...
Searching...
No Matches
baljsn::Decoder_ElementVisitor Struct Reference

#include <baljsn_decoder.h>

Detailed Description

This class implements a visitor for decoding elements within a sequence, choice, or array type. This is a component-private class and should not be used outside of this component.

Note
Note that the operators provided in this class match the function signatures required of visitors decoding into elements of compatible types.

See baljsn_decoder

Public Member Functions

template<class TYPE >
int operator() (TYPE *value)
 
template<class TYPE , class INFO >
int operator() (TYPE *value, const INFO &info)
 

Public Attributes

Decoderd_decoder_p
 
int d_mode
 

Member Function Documentation

◆ operator()() [1/2]

template<class TYPE >
int baljsn::Decoder_ElementVisitor::operator() ( TYPE *  value)
inline

Decode into the specified value the data in the JSON format. Return 0 on success and a non-zero value otherwise.

◆ operator()() [2/2]

template<class TYPE , class INFO >
int baljsn::Decoder_ElementVisitor::operator() ( TYPE *  value,
const INFO &  info 
)
inline

Decode into the specified value using the specified info the data in the JSON format. Return 0 on success and a non-zero value otherwise.

Member Data Documentation

◆ d_decoder_p

Decoder* baljsn::Decoder_ElementVisitor::d_decoder_p

◆ d_mode

int baljsn::Decoder_ElementVisitor::d_mode

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