BDE 4.14.0 Production release
Loading...
Searching...
No Matches
baljsn::Decoder_ElementVisitor Struct Reference

#include <baljsn_decoder.h>

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
 

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 that the operators provided in this class match the function signatures required of visitors decoding into elements of compatible types.

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: