|
torc-master
|
Encapsulation of a device or family digest stream. More...
#include <DigestStream.hpp>
Inheritance diagram for torc::architecture::DigestStream:
Collaboration diagram for torc::architecture::DigestStream:Public Member Functions | |
| DigestStream (const boost::filesystem::path &inPath) | |
| Public constructor. More... | |
| size_t | getBytesRead (void) const |
| Returns the number of bytes read. More... | |
| void | readSectionHeader (string &outHeader) |
| Read and return a section header. More... | |
| std::istream & | read (uint8_t &outValue) |
| Read and return a uint8_t. More... | |
| std::istream & | read (uint16_t &outValue) |
| Read and return a uint16_t. More... | |
| std::istream & | read (uint32_t &outValue) |
| Read and return a uint32_t. More... | |
| std::istream & | read (char *s, std::streamsize n) |
| Read and return a character string. More... | |
Protected Types | |
| typedef std::string | string |
| Imported type name. More... | |
| typedef boost::uint16_t | uint16_t |
| Imported type name. More... | |
| typedef boost::uint32_t | uint32_t |
| Imported type name. More... | |
| typedef char | DigestSectionHeader [16] |
| Definition of a digest section header. More... | |
Protected Attributes | |
| size_t | mBytesRead |
| The number of bytes read. More... | |
Encapsulation of a device or family digest stream.
DigestStreams are used to read family and device database files.
Definition at line 32 of file DigestStream.hpp.
|
protected |
Definition of a digest section header.
Definition at line 42 of file DigestStream.hpp.
|
protected |
Imported type name.
Definition at line 36 of file DigestStream.hpp.
|
protected |
Imported type name.
Definition at line 38 of file DigestStream.hpp.
|
protected |
Imported type name.
Definition at line 40 of file DigestStream.hpp.
|
inline |
Public constructor.
Definition at line 48 of file DigestStream.hpp.
|
inline |
Returns the number of bytes read.
Definition at line 52 of file DigestStream.hpp.
Here is the caller graph for this function:
|
inline |
Read and return a uint8_t.
| outValue | The uint8_t that was read from the stream. |
Definition at line 64 of file DigestStream.hpp.
Here is the caller graph for this function:
|
inline |
Read and return a uint16_t.
| outValue | The uint16_t that was read from the stream. |
Definition at line 72 of file DigestStream.hpp.
|
inline |
Read and return a uint32_t.
| outValue | The uint32_t that was read from the stream. |
Definition at line 80 of file DigestStream.hpp.
|
inline |
Read and return a character string.
This overrides the superclass behavior exclusively for the sake of tracking the number of bytes read.
| s | The character pointer to read into. |
| n | The number of characters to read. |
Definition at line 91 of file DigestStream.hpp.
|
inline |
Read and return a section header.
| outHeader | The section header that was read from the stream. |
Definition at line 56 of file DigestStream.hpp.
Here is the caller graph for this function:
|
protected |
The number of bytes read.
Definition at line 45 of file DigestStream.hpp.