(*i)->add_to_loader(*this);
}
+
+CollectionItemTypeBase::CollectionItemTypeBase():
+ tag(0)
+{ }
+
+CollectionItemTypeBase::~CollectionItemTypeBase()
+{
+ delete tag;
+}
+
} // namespace DataFile
} // namespace Msp
template<typename T>
class Tag: public TagBase
- {
- public:
- virtual ~Tag() { }
- };
+ { };
std::string kwd;
TagBase *tag;
- CollectionItemTypeBase(): tag(0) { }
+ CollectionItemTypeBase();
public:
- virtual ~CollectionItemTypeBase()
- { delete tag; }
+ virtual ~CollectionItemTypeBase();
virtual void add_to_loader(Collection::Loader &) const = 0;
virtual bool can_create() const = 0;