Public Member Functions | |
File (const std::string &aPath, int aFlags) | |
~File () | |
const std::string & | getPath () const |
void | setPath (const std::string &aPath) |
void | setOffset (size_t aOffset) |
void | open () |
void | close () |
void | read (const uint32_t aAddr, const uint32_t aNrWords, std::vector< uint32_t > &aValues) |
void | write (const uint32_t aAddr, const std::vector< std::pair< const uint8_t *, size_t > > &aData) |
Private Attributes | |
std::string | mPath |
int | mFd |
int | mFlags |
off_t | mOffset |
void * | mMmapPtr |
void * | mMmapIOPtr |
Definition at line 96 of file ProtocolMmap.hpp.
uhal::Mmap::File::File | ( | const std::string & | aPath, |
int | aFlags | ||
) |
Definition at line 110 of file ProtocolMmap.cpp.
uhal::Mmap::File::~File | ( | ) |
Definition at line 121 of file ProtocolMmap.cpp.
void uhal::Mmap::File::close | ( | ) |
Definition at line 175 of file ProtocolMmap.cpp.
References uhal::Error, uhal::Integer(), uhal::log(), MAP_SIZE, and uhal::Quote().
Referenced by uhal::Mmap::disconnect().
const std::string & uhal::Mmap::File::getPath | ( | ) | const |
Definition at line 127 of file ProtocolMmap.cpp.
Referenced by uhal::Mmap::connect(), uhal::Mmap::read(), and uhal::Mmap::write().
void uhal::Mmap::File::open | ( | ) |
Definition at line 149 of file ProtocolMmap.cpp.
References uhal::Integer(), uhal::log(), MAP_SIZE, and uhal::Quote().
void uhal::Mmap::File::read | ( | const uint32_t | aAddr, |
const uint32_t | aNrWords, | ||
std::vector< uint32_t > & | aValues | ||
) |
Definition at line 195 of file ProtocolMmap.cpp.
Referenced by uhal::Mmap::connect(), and uhal::Mmap::read().
void uhal::Mmap::File::setOffset | ( | size_t | aOffset | ) |
Definition at line 139 of file ProtocolMmap.cpp.
Referenced by uhal::Mmap::Mmap().
void uhal::Mmap::File::setPath | ( | const std::string & | aPath | ) |
Definition at line 133 of file ProtocolMmap.cpp.
void uhal::Mmap::File::write | ( | const uint32_t | aAddr, |
const std::vector< std::pair< const uint8_t *, size_t > > & | aData | ||
) |
Definition at line 208 of file ProtocolMmap.cpp.
References uhal::Integer(), and uhal::log().
Referenced by uhal::Mmap::write().
|
private |
Definition at line 115 of file ProtocolMmap.hpp.
|
private |
Definition at line 116 of file ProtocolMmap.hpp.
|
private |
Definition at line 119 of file ProtocolMmap.hpp.
|
private |
Definition at line 118 of file ProtocolMmap.hpp.
|
private |
Definition at line 117 of file ProtocolMmap.hpp.
|
private |
Definition at line 114 of file ProtocolMmap.hpp.