CANFilter

Manages the import/export of data which are using dbc files for parsing the log files.

Public Types

  • enum TimeHandling

Public Methods

void

CANFilter(FileType type, CANFilterPrivate *)

const QVector< AbstractColumn::ColumnMode >

columnModes() const

QString

fileInfoString(const QString &)

bool

load(XmlStreamReader *) override

QVector< QStringList >

preview(const QString &filename, int lines)

void

readDataFromFile(const QString &fileName, AbstractDataSource *=nullptr, ImportMode=ImportMode::Replace) override

void

save(QXmlStreamWriter *) const override

void

setConvertTimeToSeconds(bool)

bool

setDBCFile(const QString &file)

void

setTimeHandlingMode(TimeHandling)

QStringList

vectorNames() const

void

write(const QString &fileName, AbstractDataSource *) override

Detailed Description

class CANFilter : public AbstractFileFilter

Manages the import/export of data which are using dbc files for parsing the log files.

Subclassed by VectorBLFFilter

Public Functions

virtual void readDataFromFile(const QString &fileName, AbstractDataSource* = nullptr, ImportMode = ImportMode::Replace) override

reads the content of the file fileName to the data source dataSource.

virtual void write(const QString &fileName, AbstractDataSource*) override

writes the content of the data source dataSource to the file fileName.

bool setDBCFile(const QString &file)

setDBCFile Sets dbc file which is used to decode the messages

Parameters:

file –

Returns:

virtual void save(QXmlStreamWriter*) const override

Saves as XML.

virtual bool load(XmlStreamReader*) override

Loads from XML.

Public Static Functions

static QString fileInfoString(const QString&)

fileInfoString Information about the file content

Returns: