Orcus
Loading...
Searching...
No Matches
Public Member Functions | List of all members
orcus::csv_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 orcus::csv_handler::begin_parse ( )
inline

Called when the parser starts parsing a stream.

◆ begin_row()

void orcus::csv_handler::begin_row ( )
inline

Called at the beginning of every row.

◆ cell()

void orcus::csv_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 orcus::csv_handler::end_parse ( )
inline

Called when the parser finishes parsing a stream.

◆ end_row()

void orcus::csv_handler::end_row ( )
inline

Called at the end of every row.