simulavr
1.1.0
|
FIFO read memory. More...
#include <specialmem.h>
Public Member Functions | |
RWReadFromFile (TraceValueRegister *registry, const std::string &tracename, const std::string &filename) | |
![]() | |
RWMemoryMember (TraceValueRegister *registry, const std::string &tracename="", const int index=-1) | |
RWMemoryMember (void) | |
operator unsigned char () const | |
Read access on memory. More... | |
unsigned char | operator= (unsigned char val) |
Write access on memory. More... | |
unsigned char | operator= (const RWMemoryMember &mm) |
Write access on memory. More... | |
virtual | ~RWMemoryMember () |
virtual void | set_bit (unsigned int bitaddr) |
virtual void | clear_bit (unsigned int bitaddr) |
const std::string & | GetTraceName (void) |
bool | IsInvalid (void) const |
Protected Member Functions | |
unsigned char | get () const |
void | set (unsigned char) |
Protected Attributes | |
std::istream & | is |
std::ifstream | ifs |
![]() | |
TraceValue * | tv |
TraceValueRegister * | registry |
const std::string | tracename |
const bool | isInvalid |
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 64 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 56 of file specialmem.cpp.
References ifs.
|
protectedvirtual |
This function as the oppposite to get() is expected to read the real byte.
Implements RWMemoryMember.
Definition at line 71 of file specialmem.cpp.
References is.
|
protectedvirtual |
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 66 of file specialmem.cpp.
References avr_warning, and global_suppress_memory_warnings.
|
mutableprotected |
Definition at line 78 of file specialmem.h.
Referenced by RWReadFromFile().
|
protected |
Definition at line 77 of file specialmem.h.
Referenced by get().