Orcus
Loading...
Searching...
No Matches
orcus::csv_handler Class Reference

Public Member Functions

void begin_parse ()
 
void end_parse ()
 
void begin_row ()
 
void end_row ()
 
void cell (std::string_view value, 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 ( std::string_view value,
bool transient )
inline

Called after every cell is parsed.

Parameters
valuecell content.
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.