# HG changeset patch # User Chris Cannam # Date 1536230940 -3600 # Node ID 12b7a9613eb5943190433f17c71fc6afe0c92131 # Parent 5f1b2a117a4f5e1d46eb71112a882954b03c8a79 Add quicker accessor for numeric status diff -r 5f1b2a117a4f -r 12b7a9613eb5 data/fileio/CSVFormat.h --- a/data/fileio/CSVFormat.h Wed Sep 05 11:56:45 2018 +0100 +++ b/data/fileio/CSVFormat.h Thu Sep 06 11:49:00 2018 +0100 @@ -121,6 +121,11 @@ return m_columnQualities; } + bool isColumnNumeric(int i) const { + return (m_columnQualities.size() > i && + m_columnQualities[i] & ColumnNumeric); + } + // read-only; only valid if format has been guessed: const QList &getExample() const { return m_example;