EHM DAL 0.2.3
Data abstraction layer for Eastside Hockey Manager
Loading...
Searching...
No Matches
ehm_dal::spreadsheet::SpreadsheetFileCsv Class Reference
Inheritance diagram for ehm_dal::spreadsheet::SpreadsheetFileCsv:

Public Member Functions

 SpreadsheetFileCsv (QFile &file)
 
bool read (std::vector< std::vector< QVariant > > &header, std::vector< std::vector< QVariant > > &cells, const qint32 header_count=0) override
 
bool writeCells (std::vector< QVariant > &prefix, std::vector< std::vector< QVariant > > &cells) override
 
bool writeHeader (std::vector< QVariant > &prefix, std::vector< std::vector< QVariant > > &header) override
 
bool isAsciiEnabled () const
 
bool isUtfEnabled () const
 
- Public Member Functions inherited from ehm_dal::spreadsheet::SpreadsheetFile
 SpreadsheetFile (QFile &file)
 
virtual bool read (std::vector< std::vector< QVariant > > &header, std::vector< std::vector< QVariant > > &cells, const qint32 header_count=0)=0
 
virtual bool writeCells (std::vector< QVariant > &prefix, std::vector< std::vector< QVariant > > &cells)=0
 
virtual bool writeHeader (std::vector< QVariant > &prefix, std::vector< std::vector< QVariant > > &header)=0
 
QString dateFormat () const
 
void setSilent (const bool silent)
 

Static Public Member Functions

static QString systemDelimiterDescription ()
 

Additional Inherited Members

- Protected Attributes inherited from ehm_dal::spreadsheet::SpreadsheetFile
const QRegularExpression numerical_ {"\\d*"}
 
QFile * file_ {nullptr}
 
qint32 header_count_ {2}
 
bool hide_progress_ {false}
 
widgets::ProgressDialog progress_dialog_ {QStringLiteral("Spreadsheet File"), 0, 1}
 

Member Function Documentation

◆ read()

bool ehm_dal::spreadsheet::SpreadsheetFileCsv::read ( std::vector< std::vector< QVariant > > &  header,
std::vector< std::vector< QVariant > > &  cells,
const qint32  header_count = 0 
)
overridevirtual

◆ writeCells()

bool ehm_dal::spreadsheet::SpreadsheetFileCsv::writeCells ( std::vector< QVariant > &  prefix,
std::vector< std::vector< QVariant > > &  cells 
)
overridevirtual

◆ writeHeader()

bool ehm_dal::spreadsheet::SpreadsheetFileCsv::writeHeader ( std::vector< QVariant > &  prefix,
std::vector< std::vector< QVariant > > &  header 
)
overridevirtual