#include <msp/io/file.h>
#include "loaderaction.h"
#include "meta.h"
+#include "mspdatafile_api.h"
#include "parser.h"
#include "statement.h"
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<StatementKey, LoaderAction *>, private NonCopyable
+ class MSPDATAFILE_API ActionMap: public std::map<StatementKey, LoaderAction *>, private NonCopyable
{
public:
~ActionMap();
}
/** 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<typename S, typename... Args>
void load_sub(S &s, Args &&... args)
}
/**
-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<typename T, typename C, typename... Args>