X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Floader.h;h=5b96cb0954812f2f17ec1d01e4b1260f8c0cf2a4;hb=refs%2Fheads%2Fwip;hp=b9eee50d8cde99b49fc897952580fa1d1695893e;hpb=fbe7e81c08a6b5a3f9ccdcbeb4dd4d351a5f4226;p=libs%2Fdatafile.git diff --git a/source/loader.h b/source/loader.h index b9eee50..5b96cb0 100644 --- a/source/loader.h +++ b/source/loader.h @@ -6,6 +6,7 @@ #include #include "loaderaction.h" #include "meta.h" +#include "mspdatafile_api.h" #include "parser.h" #include "statement.h" @@ -34,10 +35,10 @@ destructor. See also classes ObjectLoader and CollectionObjectLoader in objectloader.h. */ -class Loader: private NonCopyable +class MSPDATAFILE_API Loader: private NonCopyable { protected: - class ActionMap: public std::map, private NonCopyable + class MSPDATAFILE_API ActionMap: public std::map, private NonCopyable { public: ~ActionMap(); @@ -83,7 +84,7 @@ protected: } /** Loads a sub-object from the statement being processed with an extra - parameter for the Loader. The Loader class of the sub-object is + arguments for the Loader. The Loader class of the sub-object is automatically used. */ template void load_sub(S &s, Args &&... args) @@ -192,7 +193,7 @@ void load(T &obj, typename T::Loader::Collection &coll, const std::string &fn, A } /** -Loads an object from a file stored in a collection. The object must havea +Loads an object from a file stored in a collection. The object must have a public Loader class. Any extra arguments are passed to the Loader constructor. */ template