FIFO write memory. More...
#include <specialmem.h>
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 |
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.
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.
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.
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().