RWWriteToFile Class Reference

FIFO write memory. More...

#include <specialmem.h>

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

List of all members.

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

std::ostream & os
std::ofstream ofs

Detailed Description

FIFO write memory.

Memory register which will redirect all write accesses to the given (FIFO) file. The output format in the file is binary.

Definition at line 39 of file specialmem.h.


Constructor & Destructor Documentation

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

The output filename can be '-' which will make this object use cout then.

Definition at line 33 of file specialmem.cpp.

References ofs.


Member Function Documentation

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

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

Implements RWMemoryMember.

Definition at line 48 of file specialmem.cpp.

void RWWriteToFile::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 43 of file specialmem.cpp.

References os.


Member Data Documentation

std::ofstream RWWriteToFile::ofs [protected]

Definition at line 51 of file specialmem.h.

Referenced by RWWriteToFile().

std::ostream& RWWriteToFile::os [protected]

Definition at line 50 of file specialmem.h.

Referenced by set().


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