Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
JDecoder.h File Reference
#include <JVal.h>
Include dependency graph for JDecoder.h:

Go to the source code of this file.

Classes

struct  JDecoderStackNode
 Used internally in JDecoder for nested data structures. More...
 
struct  JDecoderV
 Used internally in JDecoder, where one instance represents one node in the pointer value tree. More...
 
struct  JDecoder
 JDecoder implements the parser callback API JParserIntf and builds a pointer value tree when JDecoder::get is called. More...
 

Macros

#define JD_MNUM(o, m)   #m, &(o)->m
 JDecoder::get helper macro, used when setting a number pointer in an object. More...
 
#define JD_MSTR(o, m)   #m, &(o)->m, sizeof((o)->m)
 JDecoder::get helper macro, used when setting a string pointer in an object. More...
 
#define JD_ASTR(o, m)   &(o)->m, sizeof((o)->m)
 JDecoder::get helper macro, used when setting a string pointer in an array. More...
 

Typedefs

typedef JDecoder JDecoder
 JDecoder implements the parser callback API JParserIntf and builds a pointer value tree when JDecoder::get is called. More...
 

Enumerations

enum  JDecoderS {
  JDecoderS_FormatErr = -100 , JDecoderS_NameNotFound , JDecoderS_Overflow , JDecoderS_StringOverflow ,
  JDecoderS_Unbalanced , JDecoderS_Underflow , JDecoderS_Unknown , JDecoderS_BufNotAligned ,
  JDecoderS_ChainedErr , JDecoderS_OK = 0
}
 JDecoder Status. More...
 

Functions

int JDecoder_vget (JDecoder *o, const char *fmt, va_list *argList)
 Build the same schema as get(), consuming a variable argument list. More...
 
int JDecoder_get (JDecoder *o, const char *fmt,...)
 Build a pointer value tree that is used by the integrated parser callback function when the parser feeds elements to the JDecoder instance. More...
 
void JDecoder_constructor (JDecoder *o, U8 *buf, int bufSize, int extraStackLen)
 Create/initialize a JDecoder instance. More...