RWReadFromFile Class Reference

FIFO read memory. More...

#include <specialmem.h>

Inheritance diagram for RWReadFromFile:
Inheritance graph
[legend]
Collaboration diagram for RWReadFromFile:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RWReadFromFile (TraceValueRegister *registry, const std::string &tracename, const std::string &filename)

Protected Member Functions

unsigned char get () const
void set (unsigned char)

Protected Attributes

std::istream & is
std::ifstream ifs

Detailed Description

FIFO read memory.

Memory register which will fulfill all reads with a byte drawn from a given (FIFO) file. The input format is binary.

Definition at line 58 of file specialmem.h.


Constructor & Destructor Documentation

RWReadFromFile::RWReadFromFile ( TraceValueRegister registry,
const std::string &  tracename,
const std::string &  filename 
)

The input filename can be '-' which will make this object use cin then.

Definition at line 53 of file specialmem.cpp.

References ifs.


Member Function Documentation

unsigned char RWReadFromFile::get (  )  const [protected, virtual]

This function as the oppposite to get() is expected to read the real byte.

Implements RWMemoryMember.

Definition at line 67 of file specialmem.cpp.

References is.

void RWReadFromFile::set ( unsigned  nv  )  [protected, virtual]

This function is the function which will be called by the above access operators and is expected to do the real work when writing a byte.

Implements RWMemoryMember.

Definition at line 63 of file specialmem.cpp.


Member Data Documentation

std::ifstream RWReadFromFile::ifs [mutable, protected]

Definition at line 70 of file specialmem.h.

Referenced by RWReadFromFile().

std::istream& RWReadFromFile::is [protected]

Definition at line 69 of file specialmem.h.

Referenced by get().


The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:53:02 2012 for Simulavr by  doxygen 1.6.3