]> git.tdb.fi Git - libs/datafile.git/blob - source/collection.cpp
Make Collection::contains check for type
[libs/datafile.git] / source / collection.cpp
1 #include "collection.h"
2
3 namespace Msp {
4 namespace DataFile {
5
6 Collection::~Collection()
7 {
8         for(TypeList::iterator i = types.begin(); i!=types.end(); ++i)
9                 delete *i;
10 }
11
12
13 Collection::Loader::Loader(Collection &c):
14         coll(c)
15 {       
16         for(TypeList::const_iterator i = coll.types.begin(); i!=coll.types.end(); ++i)
17                 (*i)->add_to_loader(*this);
18 }
19
20 } // namespace DataFile
21 } // namespace Msp