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