comparison data/model/DenseTimeValueModel.cpp @ 1742:52705a328b34 by-id

Rejig ById so as to put everything in a single pool, so that at the core you can go from numeric id (untyped) to anything the object can be dynamic_cast to. Useful for building other abstractions like PlayParameter-type registrations that don't know about e.g. Models. Probably some more tweaking needed. Also add tests
author Chris Cannam
date Fri, 28 Jun 2019 17:36:30 +0100
parents 0d89abd631ac
children 77543124651b
comparison
equal deleted inserted replaced
1741:9d82b164f264 1742:52705a328b34
18 18
19 #include <QStringList> 19 #include <QStringList>
20 20
21 DenseTimeValueModel::DenseTimeValueModel() 21 DenseTimeValueModel::DenseTimeValueModel()
22 { 22 {
23 PlayParameterRepository::getInstance()->addPlayable(this); 23 PlayParameterRepository::getInstance()->addPlayable(getId().untyped);
24 } 24 }
25 25
26 DenseTimeValueModel::~DenseTimeValueModel() 26 DenseTimeValueModel::~DenseTimeValueModel()
27 { 27 {
28 PlayParameterRepository::getInstance()->removePlayable(this); 28 PlayParameterRepository::getInstance()->removePlayable(getId().untyped);
29 } 29 }
30 30
31 QString 31 QString
32 DenseTimeValueModel::toDelimitedDataString(QString delimiter, 32 DenseTimeValueModel::toDelimitedDataString(QString delimiter,
33 DataExportOptions, 33 DataExportOptions,