MCPcopy Create free account
hub / github.com/KDE/labplot / appendVector

Method appendVector

src/backend/datasources/filters/AsciiFilter.cpp:1599–1623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1597}
1598
1599void AsciiFilterPrivate::DataContainer::appendVector(AbstractColumn::ColumnMode cm) {
1600 void* vector;
1601 switch (cm) {
1602 case AbstractColumn::ColumnMode::Double:
1603 vector = new QVector<double>();
1604 break;
1605 case AbstractColumn::ColumnMode::Integer:
1606 vector = new QVector<int>();
1607 break;
1608 case AbstractColumn::ColumnMode::BigInt:
1609 vector = new QVector<qint64>();
1610 break;
1611 case AbstractColumn::ColumnMode::Text:
1612 vector = new QVector<QString>();
1613 break;
1614 case AbstractColumn::ColumnMode::DateTime:
1615 case AbstractColumn::ColumnMode::Day:
1616 case AbstractColumn::ColumnMode::Month:
1617 vector = new QVector<QDateTime>();
1618 break;
1619 }
1620
1621 m_dataContainer.push_back(vector);
1622 m_columnModes.append(cm);
1623}
1624
1625int AsciiFilterPrivate::DataContainer::rowCount(unsigned long index) const {
1626 if (index >= m_dataContainer.size())

Callers 2

readFromDeviceMethod · 0.45

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected