S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_helper_expat.h File Reference
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include "expat.h"

Go to the source code of this file.

Data Structures

struct  SOPC_HelperExpatCtx
 

Macros

#define SKIP_TAG_LEN   256
 
#define LOG(str)
 
#define LOG_XML_ERROR(parser, str)
 
#define LOGF(format, ...)
 
#define LOG_XML_ERRORF(parser, format, ...)
 
#define LOG_MEMORY_ALLOCATION_FAILURE   LOG("Memory allocation failure")
 

Typedefs

typedef struct SOPC_HelperExpatCtx SOPC_HelperExpatCtx
 

Functions

void SOPC_HelperExpat_CharDataReset (SOPC_HelperExpatCtx *ctx)
 
bool SOPC_HelperExpat_CharDataAppend (SOPC_HelperExpatCtx *ctx, const char *data, size_t len)
 
const char * SOPC_HelperExpat_CharDataStripped (SOPC_HelperExpatCtx *ctx)
 
void SOPC_HelperExpat_PushSkipTag (SOPC_HelperExpatCtx *ctx, const char *name)
 
bool SOPC_HelperExpat_IsSkipTagActive (SOPC_HelperExpatCtx *ctx)
 
bool SOPC_HelperExpat_PopSkipTag (SOPC_HelperExpatCtx *ctx, const char *name)
 
const char * SOPC_HelperExpat_GetAttr (SOPC_HelperExpatCtx *ctx, const char *attrName, const XML_Char **attrs)
 

Macro Definition Documentation

◆ SKIP_TAG_LEN

#define SKIP_TAG_LEN   256

◆ LOG

#define LOG ( str)

◆ LOG_XML_ERROR

#define LOG_XML_ERROR ( parser,
str )

◆ LOGF

#define LOGF ( format,
... )

◆ LOG_XML_ERRORF

#define LOG_XML_ERRORF ( parser,
format,
... )

◆ LOG_MEMORY_ALLOCATION_FAILURE

#define LOG_MEMORY_ALLOCATION_FAILURE   LOG("Memory allocation failure")

Typedef Documentation

◆ SOPC_HelperExpatCtx

typedef struct SOPC_HelperExpatCtx SOPC_HelperExpatCtx

Function Documentation

◆ SOPC_HelperExpat_CharDataReset()

void SOPC_HelperExpat_CharDataReset ( SOPC_HelperExpatCtx * ctx)

◆ SOPC_HelperExpat_CharDataAppend()

bool SOPC_HelperExpat_CharDataAppend ( SOPC_HelperExpatCtx * ctx,
const char * data,
size_t len )

◆ SOPC_HelperExpat_CharDataStripped()

const char * SOPC_HelperExpat_CharDataStripped ( SOPC_HelperExpatCtx * ctx)

◆ SOPC_HelperExpat_PushSkipTag()

void SOPC_HelperExpat_PushSkipTag ( SOPC_HelperExpatCtx * ctx,
const char * name )

◆ SOPC_HelperExpat_IsSkipTagActive()

bool SOPC_HelperExpat_IsSkipTagActive ( SOPC_HelperExpatCtx * ctx)

◆ SOPC_HelperExpat_PopSkipTag()

bool SOPC_HelperExpat_PopSkipTag ( SOPC_HelperExpatCtx * ctx,
const char * name )

◆ SOPC_HelperExpat_GetAttr()

const char * SOPC_HelperExpat_GetAttr ( SOPC_HelperExpatCtx * ctx,
const char * attrName,
const XML_Char ** attrs )