Simple C Expat Wrapper (SCEW)  1.1.7
Data Structures | Typedefs | Functions
reader.h File Reference

SCEW reader common functions. More...

#include "export.h"
#include "bool.h"
#include <expat.h>
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  scew_reader_hooks
 This is the set of functions that are implemented by all SCEW reader sources. More...
 

Typedefs

typedef struct scew_reader scew_reader
 This is the type delcaration for SCEW readers.
 

Functions

SCEW_API scew_readerscew_reader_create (scew_reader_hooks const *hooks, void *data)
 Creates a new SCEW reader with the given scew_reader_hooks implementation. More...
 
SCEW_API void * scew_reader_data (scew_reader *reader)
 Returns the reference to the internal data structure being used by the given reader. More...
 
SCEW_API size_t scew_reader_read (scew_reader *reader, XML_Char *buffer, size_t char_no)
 Reads data from the given reader in store it in the specified buffer. More...
 
SCEW_API scew_bool scew_reader_end (scew_reader *reader)
 Tells whether the given reader has reached its end. More...
 
SCEW_API scew_bool scew_reader_error (scew_reader *reader)
 Tells whether an error was found while reading from the given reader. More...
 
SCEW_API scew_bool scew_reader_close (scew_reader *reader)
 Closes the given reader. More...
 
SCEW_API void scew_reader_free (scew_reader *reader)
 Frees the memory allocated by the given reader. More...
 

Detailed Description

SCEW reader common functions.

Author
Aleix Conchillo Flaque aleix.nosp@m.@mem.nosp@m.ber.f.nosp@m.sf.o.nosp@m.rg
Date
Sun Nov 23, 2008 13:36