]> git.tdb.fi Git - libs/core.git/blobdiff - source/memory.h
Move files to prepare for assimilation into core
[libs/core.git] / source / memory.h
diff --git a/source/memory.h b/source/memory.h
deleted file mode 100644 (file)
index ba6c4d8..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-#ifndef MSP_IO_MEMORY_H_
-#define MSP_IO_MEMORY_H_
-
-#include "base.h"
-#include "seek.h"
-
-namespace Msp {
-namespace IO {
-
-class Memory: public Base
-{
-private:
-       char *begin;
-       char *end;
-       char *pos;
-
-public:
-       Memory(char *, unsigned);
-       Memory(char *, char *);
-       Memory(const char *, unsigned);
-       Memory(const char *, const char *);
-private:
-       void init(char *, char *, Mode);
-
-       virtual unsigned do_write(const char *, unsigned);
-       virtual unsigned do_read(char *, unsigned);
-public:
-       virtual unsigned put(char);
-       virtual bool getline(std::string &);
-       virtual int get();
-
-       unsigned seek(int, SeekType);
-       unsigned tell() const { return pos-begin; }
-
-       virtual Handle get_event_handle();
-
-private:
-       void check_mode(Mode) const;
-};
-
-} // namespace IO
-} // namespace Msp
-
-#endif