Orcus
Public Member Functions | List of all members
csv_parser_handler Class Reference

Public Member Functions

void begin_parse ()
 
void end_parse ()
 
void begin_row ()
 
void end_row ()
 
void cell (const char *p, size_t n, bool transient)
 

Member Function Documentation

§ begin_parse()

void csv_parser_handler::begin_parse ( )
inline

Called when the parser starts parsing a stream.

§ begin_row()

void csv_parser_handler::begin_row ( )
inline

Called at the beginning of every row.

§ cell()

void csv_parser_handler::cell ( const char *  p,
size_t  n,
bool  transient 
)
inline

Called after every cell is parsed.

Parameters
ppointer to the first character of a cell content.
nnumber of characters the cell content consists of.
transientwhen true, the text content has been converted and is stored in a temporary buffer. In such case, there is no guarantee that the text content remain available after the end of the call. When this value is false, the text content is guaranteed to be valid so long as the original CSV stream content is valid.

§ end_parse()

void csv_parser_handler::end_parse ( )
inline

Called when the parser finishes parsing a stream.

§ end_row()

void csv_parser_handler::end_row ( )
inline

Called at the end of every row.