3 #ifndef SPECTMORPH_GENERIC_IN_HH
4 #define SPECTMORPH_GENERIC_IN_HH
37 virtual int read (
void *ptr,
size_t size) = 0;
45 virtual bool skip (
size_t size) = 0;
62 virtual unsigned char *
mmap_mem (
size_t& remaining) = 0;
Generic Input Stream.
Definition: smgenericin.hh:18
virtual GenericIn * open_subfile(size_t pos, size_t len)=0
virtual size_t get_pos()=0
virtual int read(void *ptr, size_t size)=0
virtual bool skip(size_t size)=0
static GenericIn * open(const std::string &filename)
Definition: smgenericin.cc:18
virtual unsigned char * mmap_mem(size_t &remaining)=0