15 #ifndef BORNAGAIN_GUI_MODEL_DEVICE_INSTRUMENTCOLLECTION_H
16 #define BORNAGAIN_GUI_MODEL_DEVICE_INSTRUMENTCOLLECTION_H
18 #include <QStringList>
53 QVector<InstrumentItem*>
InstrumentItem * findInstrumentById(const QString &instrumentId) const
void emplace_back(InstrumentItem *item)
void serialize(Streamer &s)
QVector< InstrumentItem * > instrumentItems(const std::function< bool(const InstrumentItem *)> &accept) const
QVector< InstrumentItem * > m_instruments
void removeInstrument(InstrumentItem *instrument)
QVector< Instrument2DItem * > instrument2DItems() const
QVector< InstrumentItem * > collectedItems() const
QString suggestInstrumentName(const QString &baseName) const
InstrumentItem * insertCopy(const InstrumentItem &source)
Inserts a deep copy (also of any non xml data in a pointwise axis) The id will not be copied,...
bool instrumentExists(const QString &instrumentId) const
QStringList instrumentNames() const
Abstract base class for instrument-specific item classes.
Supports serialization to or deserialization from QXmlStream.
QString baseName(const QString &fileName)
Returns base name of file.