Skip to content

File xml_parser.h

FileList > base > xml_parser.h

Go to the source code of this file

  • #include "config.h"
  • #include "porting.h"
  • #include "expat.h"

Classes

Type Name
struct xml_element
struct xml_element_def
struct xml_parser_data

Public Types

Type Name
typedef int(* ELEM_DATA_FUNC
typedef int(* ELEM_END_FUNC
typedef int(* ELEM_START_FUNC
typedef struct xml_element XML_ELEMENT
typedef struct xml_element_def XML_ELEMENT_DEF
typedef struct xml_parser_data XML_PARSER_DATA

Public Functions

Type Name
int xml_check_att_value (const char ** attrs, const char * att_name, const char * att_value)
XML_PARSER_DATA * xml_create_subparser (XML_PARSER_DATA * data, char * new_file)
void xml_destroy_parser (void * data)
void xml_destroy_parser_data (void * data)
int xml_get_att_value (const char ** attrs, const char * att_name, char ** p_att_value)
XML_Parser xml_init_parser (void * data, const char * xml_file, const char * encoding, const XML_ELEMENT_DEF ** element_array, const int count)
void xml_parser_exec (XML_PARSER_DATA * pd)

Macros

Type Name
define DATA_FUNC (el) ([**el**](broker__monitor_8c.md#function-timeout)->def->data\_func)
define END_FUNC (el) ([**el**](broker__monitor_8c.md#function-timeout)->def->end\_func)
define MAX_ELEMENT_NAME 30
define MAX_ENCODE_LEN 10
define START_FUNC (el) ([**el**](broker__monitor_8c.md#function-timeout)->def->start\_func)
define XML_CUB_ERR_BASE 1
define XML_CUB_ERR_FILE_MISSING ([**XML\_CUB\_ERR\_BASE**](xml__parser_8h.md#define-xml_cub_err_base) + 5)
define XML_CUB_ERR_FILE_READ ([**XML\_CUB\_ERR\_BASE**](xml__parser_8h.md#define-xml_cub_err_base) + 3)
define XML_CUB_ERR_HEADER_ENCODING ([**XML\_CUB\_ERR\_BASE**](xml__parser_8h.md#define-xml_cub_err_base) + 2)
define XML_CUB_ERR_INCLUDE_LOOP ([**XML\_CUB\_ERR\_BASE**](xml__parser_8h.md#define-xml_cub_err_base) + 6)
define XML_CUB_ERR_PARSER ([**XML\_CUB\_ERR\_BASE**](xml__parser_8h.md#define-xml_cub_err_base) + 4)
define XML_CUB_ERR_PARSER_INIT_FAIL ([**XML\_CUB\_ERR\_BASE**](xml__parser_8h.md#define-xml_cub_err_base) + 7)
define XML_CUB_NO_ERROR 0
define XML_CUB_OUT_OF_MEMORY ([**XML\_CUB\_ERR\_BASE**](xml__parser_8h.md#define-xml_cub_err_base) + 1)
define XML_CUB_SCHEMA_BROKEN ([**XML\_CUB\_ERR\_BASE**](xml__parser_8h.md#define-xml_cub_err_base))
define XML_STATIC
define XML_USER_DATA (xml) ([**xml**](broker__monitor_8c.md#function-timeout)->ud)

Public Types Documentation

typedef ELEM_DATA_FUNC

typedef int(* ELEM_DATA_FUNC) (void *, const char *, int);

typedef ELEM_END_FUNC

typedef int(* ELEM_END_FUNC) (void *, const char *);

typedef ELEM_START_FUNC

typedef int(* ELEM_START_FUNC) (void *, const char **);

typedef XML_ELEMENT

typedef struct xml_element XML_ELEMENT;

typedef XML_ELEMENT_DEF

typedef struct xml_element_def XML_ELEMENT_DEF;

typedef XML_PARSER_DATA

typedef struct xml_parser_data XML_PARSER_DATA;

Public Functions Documentation

function xml_check_att_value

int xml_check_att_value (
    const  char ** attrs,
    const  char * att_name,
    const  char * att_value
) 

function xml_create_subparser

XML_PARSER_DATA * xml_create_subparser (
    XML_PARSER_DATA * data,
    char * new_file
) 

function xml_destroy_parser

void xml_destroy_parser (
    void * data
) 

function xml_destroy_parser_data

void xml_destroy_parser_data (
    void * data
) 

function xml_get_att_value

int xml_get_att_value (
    const  char ** attrs,
    const  char * att_name,
    char ** p_att_value
) 

function xml_init_parser

XML_Parser xml_init_parser (
    void * data,
    const  char * xml_file,
    const  char * encoding,
    const  XML_ELEMENT_DEF ** element_array,
    const  int count
) 

function xml_parser_exec

void xml_parser_exec (
    XML_PARSER_DATA * pd
) 

Macro Definition Documentation

define DATA_FUNC

#define DATA_FUNC (
    el
) `( el ->def->data_func)`

define END_FUNC

#define END_FUNC (
    el
) `( el ->def->end_func)`

define MAX_ELEMENT_NAME

#define MAX_ELEMENT_NAME `30`

define MAX_ENCODE_LEN

#define MAX_ENCODE_LEN `10`

define START_FUNC

#define START_FUNC (
    el
) `( el ->def->start_func)`

define XML_CUB_ERR_BASE

#define XML_CUB_ERR_BASE `1`

define XML_CUB_ERR_FILE_MISSING

#define XML_CUB_ERR_FILE_MISSING `( XML_CUB_ERR_BASE + 5)`

define XML_CUB_ERR_FILE_READ

#define XML_CUB_ERR_FILE_READ `( XML_CUB_ERR_BASE + 3)`

define XML_CUB_ERR_HEADER_ENCODING

#define XML_CUB_ERR_HEADER_ENCODING `( XML_CUB_ERR_BASE + 2)`

define XML_CUB_ERR_INCLUDE_LOOP

#define XML_CUB_ERR_INCLUDE_LOOP `( XML_CUB_ERR_BASE + 6)`

define XML_CUB_ERR_PARSER

#define XML_CUB_ERR_PARSER `( XML_CUB_ERR_BASE + 4)`

define XML_CUB_ERR_PARSER_INIT_FAIL

#define XML_CUB_ERR_PARSER_INIT_FAIL `( XML_CUB_ERR_BASE + 7)`

define XML_CUB_NO_ERROR

#define XML_CUB_NO_ERROR `0`

define XML_CUB_OUT_OF_MEMORY

#define XML_CUB_OUT_OF_MEMORY `( XML_CUB_ERR_BASE + 1)`

define XML_CUB_SCHEMA_BROKEN

#define XML_CUB_SCHEMA_BROKEN `( XML_CUB_ERR_BASE )`

define XML_STATIC

#define XML_STATIC 

define XML_USER_DATA

#define XML_USER_DATA (
    xml
) `( xml ->ud)`


The documentation for this class was generated from the following file cubrid/src/base/xml_parser.h