]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/rawdata.h
Move the definition of Input's operator bool to the header
[libs/datafile.git] / source / rawdata.h
index 2744744b36cb2b3ead8f4ca13128cfc4f056df35..c17f907b52fd015d63f077029036dec00a36a7c6 100644 (file)
@@ -4,13 +4,14 @@
 #include <string>
 #include <msp/core/noncopyable.h>
 #include <msp/io/base.h>
+#include "mspdatafile_api.h"
 
 namespace Msp {
 namespace DataFile {
 
 class Collection;
 
-class RawData: public NonCopyable
+class MSPDATAFILE_API RawData: public NonCopyable
 {
 private:
        enum Flags
@@ -38,6 +39,8 @@ public:
        void load();
        void load_into(void *);
 
+       void write_io(IO::Base &, bool = false);
+
        std::size_t get_size() const { return size; }
        const void *get_data() const { return data; }
 };