Public Member Functions | Protected Member Functions | Private Attributes | List of all members
DataLoadCSV Class Reference

#include <dataload_csv.h>

Inheritance diagram for DataLoadCSV:
Inheritance graph
[legend]

Public Member Functions

virtual const std::vector< const char * > & compatibleFileExtensions () const override
 Provide a list of file extensions that this plugin can open. More...
 
 DataLoadCSV ()
 
virtual const char * name () const override
 Name of the plugin type, NOT the particular instance. More...
 
virtual bool readDataFromFile (PJ::FileLoadInfo *fileload_info, PlotDataMapRef &destination) override
 
bool xmlLoadState (const QDomElement &parent_element) override
 Override this method to load the status of the plugin from XML. More...
 
bool xmlSaveState (QDomDocument &doc, QDomElement &parent_element) const override
 Override this method to save the status of the plugin to XML. More...
 
virtual ~DataLoadCSV ()
 
- Public Member Functions inherited from PJ::DataLoader
 DataLoader ()=default
 
const ParserFactoriesparserFactories () const
 
void setParserFactories (ParserFactories *parsers)
 
virtual ~DataLoader ()=default
 
- Public Member Functions inherited from PJ::PlotJugglerPlugin
virtual const std::vector< QAction * > & availableActions ()
 
virtual bool isDebugPlugin ()
 
virtual QWidget * optionsWidget ()
 optionsWidget pointer to a persistent widget used to set the plugin options . More...
 
 PlotJugglerPlugin ()=default
 
QDomElement xmlSaveState (QDomDocument &doc) const
 

Protected Member Functions

int launchDialog (QFile &file, std::vector< std::string > *ordered_names)
 
void parseHeader (QFile &file, std::vector< std::string > &ordered_names)
 

Private Attributes

QCSVHighlighter _csvHighlighter
 
DateTimeHelp_dateTime_dialog
 
std::string _default_time_axis
 
QChar _delimiter
 
QDialog * _dialog
 
std::vector< const char * > _extensions
 
FileLoadInfo_fileInfo
 
QStandardItemModel * _model
 
Ui::DialogCSV * _ui
 
bool multiple_columns_warning_ = true
 

Detailed Description

Definition at line 14 of file dataload_csv.h.

Constructor & Destructor Documentation

◆ DataLoadCSV()

DataLoadCSV::DataLoadCSV ( )

Definition at line 95 of file dataload_csv.cpp.

◆ ~DataLoadCSV()

DataLoadCSV::~DataLoadCSV ( )
virtual

Definition at line 143 of file dataload_csv.cpp.

Member Function Documentation

◆ compatibleFileExtensions()

const std::vector< const char * > & DataLoadCSV::compatibleFileExtensions ( ) const
overridevirtual

Provide a list of file extensions that this plugin can open.

Implements PJ::DataLoader.

Definition at line 150 of file dataload_csv.cpp.

◆ launchDialog()

int DataLoadCSV::launchDialog ( QFile &  file,
std::vector< std::string > *  ordered_names 
)
protected

Definition at line 294 of file dataload_csv.cpp.

◆ name()

virtual const char* DataLoadCSV::name ( ) const
inlineoverridevirtual

Name of the plugin type, NOT the particular instance.

Implements PJ::PlotJugglerPlugin.

Definition at line 29 of file dataload_csv.h.

◆ parseHeader()

void DataLoadCSV::parseHeader ( QFile &  file,
std::vector< std::string > &  ordered_names 
)
protected

Definition at line 155 of file dataload_csv.cpp.

◆ readDataFromFile()

bool DataLoadCSV::readDataFromFile ( PJ::FileLoadInfo fileload_info,
PlotDataMapRef destination 
)
overridevirtual

Implements PJ::DataLoader.

Definition at line 483 of file dataload_csv.cpp.

◆ xmlLoadState()

bool DataLoadCSV::xmlLoadState ( const QDomElement &  parent_element)
overridevirtual

Override this method to load the status of the plugin from XML.

Reimplemented from PJ::PlotJugglerPlugin.

Definition at line 843 of file dataload_csv.cpp.

◆ xmlSaveState()

bool DataLoadCSV::xmlSaveState ( QDomDocument &  doc,
QDomElement &  parent_element 
) const
overridevirtual

Override this method to save the status of the plugin to XML.

Reimplemented from PJ::PlotJugglerPlugin.

Definition at line 827 of file dataload_csv.cpp.

Member Data Documentation

◆ _csvHighlighter

QCSVHighlighter DataLoadCSV::_csvHighlighter
private

Definition at line 50 of file dataload_csv.h.

◆ _dateTime_dialog

DateTimeHelp* DataLoadCSV::_dateTime_dialog
private

Definition at line 56 of file dataload_csv.h.

◆ _default_time_axis

std::string DataLoadCSV::_default_time_axis
private

Definition at line 46 of file dataload_csv.h.

◆ _delimiter

QChar DataLoadCSV::_delimiter
private

Definition at line 48 of file dataload_csv.h.

◆ _dialog

QDialog* DataLoadCSV::_dialog
private

Definition at line 54 of file dataload_csv.h.

◆ _extensions

std::vector<const char*> DataLoadCSV::_extensions
private

Definition at line 44 of file dataload_csv.h.

◆ _fileInfo

FileLoadInfo* DataLoadCSV::_fileInfo
private

Definition at line 52 of file dataload_csv.h.

◆ _model

QStandardItemModel* DataLoadCSV::_model
private

Definition at line 58 of file dataload_csv.h.

◆ _ui

Ui::DialogCSV* DataLoadCSV::_ui
private

Definition at line 55 of file dataload_csv.h.

◆ multiple_columns_warning_

bool DataLoadCSV::multiple_columns_warning_ = true
private

Definition at line 60 of file dataload_csv.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:28