libdballe  9.11
Classes | Functions
csv.h File Reference

Routines to parse data in CSV format. More...

#include <wreport/var.h>
#include <vector>
#include <string>
#include <iosfwd>
#include <stdio.h>

Go to the source code of this file.

Classes

class  dballe::CSVReader
 
class  dballe::CSVWriter
 

Functions

bool dballe::csv_read_next (FILE *in, std::vector< std::string > &cols)
 Parse a CSV line. More...
 
void dballe::csv_output_quoted_string (std::ostream &out, const std::string &str)
 Output a string value, quoted if needed according to CSV rules.
 
void dballe::csv_output_quoted_string (FILE *out, const std::string &str)
 Output a string value, quoted if needed according to CSV rules.
 

Detailed Description

Routines to parse data in CSV format.

Function Documentation

◆ csv_read_next()

bool dballe::csv_read_next ( FILE *  in,
std::vector< std::string > &  cols 
)

Parse a CSV line.

Parameters
inThe file where to read from
colsThe parsed columns.
Returns
true if a new line was found, else false