ColumnStringIO

A description for ColumnStringIO.

class ColumnStringIO : public AbstractColumn

String-IO interface of Column.

Public Functions

virtual AbstractColumn::ColumnMode columnMode() const override

Return the column mode.

This function is most used by tables but can also be used by plots. The column mode specifies how to interpret the values in the column additional to the data type.

virtual AbstractColumn::PlotDesignation plotDesignation() const override

Return the column plot designation.

virtual int rowCount() const override

Return the data vector size.

virtual QString textAt(int) const override

Return the content of row ‘row’.

Use this only when columnMode() is Text

virtual int availableRowCount(int max = -1) const override

Return the number of available data rows.

virtual void setTextAt(int, const QString&) override

Set the content of row ‘row’.

Use this only when columnMode() is Text

virtual bool copy(const AbstractColumn*) override

Copy another column of the same type.

This function will return false if the data type of ‘other’ is not the same as the type of ‘this’. Use a filter to convert a column to another type.

virtual bool copy(const AbstractColumn *source, int source_start, int dest_start, int num_rows) override

Copies part of another column of the same type.

This function will return false if the data type of ‘other’ is not the same as the type of ‘this’.

Parameters:
  • source – pointer to the column to copy

  • source_start – first row to copy in the column to copy

  • destination_start – first row to copy in

  • num_rows – the number of rows to copy

virtual void replaceTexts(int start_row, const QVector<QString> &texts) override

Replace a range of values.

Use this only when columnMode() is Text

inline virtual void save(QXmlStreamWriter*) const override

Save as XML.

inline virtual bool load(XmlStreamReader*, bool preview) override

Load from XML.

XmlStreamReader supports errors as well as warnings. If only warnings (non-critical errors) occur, this function must return the reader at the end element corresponding to the current element at the time the function was called.

This function is normally intended to be called directly after the ctor. If you want to call load on an aspect that has been altered, you must make sure beforehand that it is in the same state as after creation, e.g., remove all its child aspects.

Returns:

false on error