3 This file is part of libmspdatafile
4 Copyright © 2006 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #include "collection.h"
13 Collection::~Collection()
15 for(ItemMap::iterator i=items.begin(); i!=items.end(); ++i)
17 for(ItemKeywordSeq::iterator i=keywords.begin(); i!=keywords.end(); ++i)
19 for(ItemCreatorSeq::iterator i=creators.begin(); i!=creators.end(); ++i)
23 bool Collection::contains(const std::string &n) const
25 return items.count(n);
29 Collection::Loader::Loader(Collection &c):
32 for(ItemKeywordSeq::const_iterator i=coll.keywords.begin(); i!=coll.keywords.end(); ++i)
33 (*i)->add_to_loader(*this);
36 } // namespace DataFile