]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/collectionsource.h
Move the definition of Input's operator bool to the header
[libs/datafile.git] / source / collectionsource.h
index e5647d8231449f2793703eaea083876fd8b0f705..3aa2190c736fa720766437586e0bbe649c1d7e08 100644 (file)
@@ -4,6 +4,7 @@
 #include <list>
 #include <string>
 #include <msp/io/seekable.h>
+#include "mspdatafile_api.h"
 
 namespace Msp {
 namespace DataFile {
@@ -15,15 +16,15 @@ class CollectionItemTypeBase;
 Provides automatically loadable objects for collections.  This is a base class;
 see DirectorySource and PackSource for concrete classes.
 */
-class CollectionSource
+class MSPDATAFILE_API CollectionSource
 {
 public:
        typedef std::list<std::string> NameList;
 
 protected:
-       CollectionSource() { }
+       CollectionSource() = default;
 public:
-       virtual ~CollectionSource() { }
+       virtual ~CollectionSource() = default;
 
        /// Determines whether an object is available from this source.
        virtual bool is_loadable(const CollectionItemTypeBase &type, const std::string &name) const = 0;