Quick Links:

bal | bbl | bdl | bsl

Public Member Functions | Public Attributes

baljsn::Decoder_ElementVisitor Struct Reference

#include <baljsn_decoder.h>

List of all members.

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.

See Component baljsn_decoder


Member Function Documentation

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

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

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

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

decoder (held, not owned)

formatting mode


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