Mercurial > hg > svcore
comparison base/Model.cpp @ 43:b8aae4f883b7
* More document structure / main window / file I/O work
author | Chris Cannam |
---|---|
date | Fri, 10 Mar 2006 12:28:22 +0000 |
parents | a6ef94ecbe74 |
children | 39ae3dee27b9 |
comparison
equal
deleted
inserted
replaced
42:7bf163161b88 | 43:b8aae4f883b7 |
---|---|
8 */ | 8 */ |
9 | 9 |
10 #include "Model.h" | 10 #include "Model.h" |
11 #include "PlayParameterRepository.h" | 11 #include "PlayParameterRepository.h" |
12 | 12 |
13 #include <iostream> | |
14 | |
13 const int Model::COMPLETION_UNKNOWN = -1; | 15 const int Model::COMPLETION_UNKNOWN = -1; |
14 | 16 |
15 Model::~Model() | 17 Model::~Model() |
16 { | 18 { |
19 std::cerr << "Model::~Model(" << this << ")" << std::endl; | |
20 | |
17 // Subclasses have to handle adding themselves to the repository, | 21 // Subclasses have to handle adding themselves to the repository, |
18 // if they want to be played. We can't do it from here because | 22 // if they want to be played. We can't do it from here because |
19 // the repository would be unable to tell whether we were playable | 23 // the repository would be unable to tell whether we were playable |
20 // or not (because dynamic_cast won't work from the base class ctor) | 24 // or not (because dynamic_cast won't work from the base class ctor) |
21 PlayParameterRepository::instance()->removeModel(this); | 25 PlayParameterRepository::instance()->removeModel(this); |