Blender V5.0
blender::csv_parse::CsvRecord Class Reference

#include <BLI_csv_parse.hh>

Public Member Functions

#CsvRecord inline functions.
 CsvRecord (Span< Span< char > > fields)
int64_t size () const
IndexRange index_range () const
Span< char > field (const int64_t index) const
StringRef field_str (const int64_t index) const

Detailed Description

Contains the fields of a single record of a .csv file. Usually that corresponds to a single line.

Definition at line 22 of file BLI_csv_parse.hh.

Constructor & Destructor Documentation

◆ CsvRecord()

blender::csv_parse::CsvRecord::CsvRecord ( Span< Span< char > > fields)
inline

Definition at line 141 of file BLI_csv_parse.hh.

Member Function Documentation

◆ field()

Span< char > blender::csv_parse::CsvRecord::field ( const int64_t index) const
inline

Get the field at the given index. Empty data is returned if the index is too large.

Definition at line 153 of file BLI_csv_parse.hh.

References BLI_assert.

Referenced by field_str(), blender::io::csv::parse_column_as_floats(), and blender::io::csv::parse_column_as_ints().

◆ field_str()

StringRef blender::csv_parse::CsvRecord::field_str ( const int64_t index) const
inline

◆ index_range()

IndexRange blender::csv_parse::CsvRecord::index_range ( ) const
inline

◆ size()

int64_t blender::csv_parse::CsvRecord::size ( ) const
inline

Number of fields in the record.

Definition at line 143 of file BLI_csv_parse.hh.


The documentation for this class was generated from the following file: