rasdaman API
Public Types | Public Member Functions | Static Public Attributes | List of all members
MemoryFileSystem Class Reference

#include <ecwmemfs.hh>

Public Types

enum  m_Error { No_Error = 0, Error = 1 }
 

Public Member Functions

 MemoryFileSystem ()
 
m_Error open (const char *fileName)
 open file an read into memory - completely More...
 
m_Error open (const char *memorySource, r_Bytes mSize)
 use this memory chunk with mSize bytes length More...
 
m_Error close ()
 close and deinitialise (delete only my own data) More...
 
 ~MemoryFileSystem ()
 call close More...
 
m_Error read (void *buffer, r_Bytes bSize)
 read bSize bytes into buffer, only if bSize bytes are available More...
 
unsigned long long tell ()
 get current position More...
 
m_Error seek (unsigned long long offset)
 go to offset bytes from begining of memory More...
 

Static Public Attributes

static const char * memorySrc
 if you use open(const* char) and the pointer is memorySrcName then no file will be read but this pointer More...
 
static const char * memorySrcName
 file names which point to this will not read from file system but from memorySrc More...
 
static r_Bytes memorySrcLength
 the length of the memorySrc chunk must be specified in memoryLength More...
 

Member Enumeration Documentation

Enumerator
No_Error 
Error 

Constructor & Destructor Documentation

MemoryFileSystem::MemoryFileSystem ( )
MemoryFileSystem::~MemoryFileSystem ( )

call close

Member Function Documentation

m_Error MemoryFileSystem::close ( )

close and deinitialise (delete only my own data)

m_Error MemoryFileSystem::open ( const char *  fileName)

open file an read into memory - completely

m_Error MemoryFileSystem::open ( const char *  memorySource,
r_Bytes  mSize 
)

use this memory chunk with mSize bytes length

m_Error MemoryFileSystem::read ( void *  buffer,
r_Bytes  bSize 
)

read bSize bytes into buffer, only if bSize bytes are available

m_Error MemoryFileSystem::seek ( unsigned long long  offset)

go to offset bytes from begining of memory

unsigned long long MemoryFileSystem::tell ( )

get current position

Member Data Documentation

const char* MemoryFileSystem::memorySrc
static

if you use open(const* char) and the pointer is memorySrcName then no file will be read but this pointer

r_Bytes MemoryFileSystem::memorySrcLength
static

the length of the memorySrc chunk must be specified in memoryLength

const char* MemoryFileSystem::memorySrcName
static

file names which point to this will not read from file system but from memorySrc


The documentation for this class was generated from the following file: