Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MemoryFile Class Reference

#include <MemoryImpl.h>

Inheritance diagram for MemoryFile:

IMemory List of all members.

Public Member Functions

 MemoryFile (const std::string file)
virtual ~MemoryFile ()
virtual void fillBuffer (u8 *buffer, u64 offset, unsigned int length) const
virtual u8 getByte (u64 offset) const
virtual void putByte (u64 offset, u8 value) const

Private Member Functions

 MemoryFile ()
 MemoryFile (const MemoryFile &source)
MemoryFileoperator= (const MemoryFile &source)

Private Attributes

const std::string filename
FILE * fd
bool rw

Constructor & Destructor Documentation

MemoryFile const std::string  file  )  [explicit]
 

Definition at line 101 of file Memory.cpp.

References _, MemoryFile::fd, and MemoryFile::filename.

~MemoryFile  )  [virtual]
 

Definition at line 122 of file Memory.cpp.

References MemoryFile::fd.

MemoryFile  )  [private]
 

MemoryFile const MemoryFile source  )  [private]
 


Member Function Documentation

void fillBuffer u8 buffer,
u64  offset,
unsigned int  length
const [virtual]
 

Implements IMemory.

Definition at line 135 of file Memory.cpp.

References _, MemoryFile::fd, FSEEK, and u8.

Referenced by MemoryFile::getByte().

u8 getByte u64  offset  )  const [virtual]
 

Implements IMemory.

Definition at line 127 of file Memory.cpp.

References MemoryFile::fillBuffer(), and u8.

MemoryFile& operator= const MemoryFile source  )  [private]
 

void putByte u64  offset,
u8  value
const [virtual]
 

Implements IMemory.

Definition at line 157 of file Memory.cpp.

References _, MemoryFile::fd, MemoryFile::filename, FSEEK, MemoryFile::rw, and u8.


Member Data Documentation

FILE* fd [mutable, private]
 

Definition at line 57 of file MemoryImpl.h.

Referenced by MemoryFile::fillBuffer(), MemoryFile::MemoryFile(), MemoryFile::putByte(), and MemoryFile::~MemoryFile().

const std::string filename [private]
 

Definition at line 56 of file MemoryImpl.h.

Referenced by MemoryFile::MemoryFile(), and MemoryFile::putByte().

bool rw [private]
 

Definition at line 58 of file MemoryImpl.h.

Referenced by MemoryFile::putByte().


The documentation for this class was generated from the following files:
Generated on Wed Apr 11 16:25:11 2007 for SMBIOS Library by doxygen 1.3.5