2005/5/9

     
 

class MemoryMappedFile

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::io::MemoryMappedFile Class Reference

#include <MemoryMappedFile.h>

Inheritance diagram for acdk::io::MemoryMappedFile:

acdk::io::File List of all members.

Detailed Description

Non function stub.

API: ACDK

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.7
Date:
Date
2005/04/09 19:26:45

Todo:
in which context this class should be: Reader/Writer? File?


Public Member Functions

 MemoryMappedFile (IN(::acdk::lang::RString) fname, IN(::acdk::lang::RString) mode, jlong offset, int len)
 MemoryMappedFile (IN(::acdk::io::File) file, jlong offset, int len)
 ~MemoryMappedFile ()
int adress ()
 Mapps the file at file offset with len into memory.

void flush ()

Private Member Functions

void _mapFile (jlong offset, int len)
void _unmapFile ()

Private Attributes

int _mappedAdress
HANDLE _mappedFileHandle


Constructor & Destructor Documentation

acdk::io::MemoryMappedFile::MemoryMappedFile IN(::acdk::lang::RString fname,
IN(::acdk::lang::RString mode,
jlong  offset,
int  len
 

acdk::io::MemoryMappedFile::MemoryMappedFile IN(::acdk::io::File file,
jlong  offset,
int  len
 

acdk::io::MemoryMappedFile::~MemoryMappedFile  ) 
 


Member Function Documentation

void acdk::io::MemoryMappedFile::_mapFile jlong  offset,
int  len
[private]
 

void acdk::io::MemoryMappedFile::_unmapFile  )  [private]
 

int acdk::io::MemoryMappedFile::adress  ) 
 

Mapps the file at file offset with len into memory.

Returns:
The adress will be returned as int

void acdk::io::MemoryMappedFile::flush  ) 
 


Member Data Documentation

int acdk::io::MemoryMappedFile::_mappedAdress [private]
 

HANDLE acdk::io::MemoryMappedFile::_mappedFileHandle [private]