#include <DigestStream.hpp>
| Public Member Functions | |
| DigestStream (const boost::filesystem::path &inPath) | |
| Public constructor. | |
| size_t | getBytesRead (void) const | 
| Returns the number of bytes read. | |
| void | readSectionHeader (string &outHeader) | 
| Read and return a section header. | |
| std::istream & | read (uint8_t &outValue) | 
| Read and return a uint8_t. | |
| std::istream & | read (uint16_t &outValue) | 
| Read and return a uint16_t. | |
| std::istream & | read (uint32_t &outValue) | 
| Read and return a uint32_t. | |
| std::istream & | read (char *s, std::streamsize n) | 
| Read and return a character string. | |
| Protected Types | |
| typedef std::string | string | 
| Imported type name. | |
| typedef boost::uint16_t | uint16_t | 
| Imported type name. | |
| typedef boost::uint32_t | uint32_t | 
| Imported type name. | |
| typedef char | DigestSectionHeader [16] | 
| Definition of a digest section header. | |
| Protected Attributes | |
| size_t | mBytesRead | 
| The number of bytes read. | |
DigestStreams are used to read family and device database files.
Definition at line 32 of file DigestStream.hpp.
| typedef std::string torc::architecture::DigestStream::string  [protected] | 
| typedef boost::uint16_t torc::architecture::DigestStream::uint16_t  [protected] | 
| typedef boost::uint32_t torc::architecture::DigestStream::uint32_t  [protected] | 
| typedef char torc::architecture::DigestStream::DigestSectionHeader[16]  [protected] | 
| torc::architecture::DigestStream::DigestStream | ( | const boost::filesystem::path & | inPath | ) |  [inline] | 
| size_t torc::architecture::DigestStream::getBytesRead | ( | void | ) | const  [inline] | 
| void torc::architecture::DigestStream::readSectionHeader | ( | string & | outHeader | ) |  [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.
| std::istream& torc::architecture::DigestStream::read | ( | uint8_t & | outValue | ) |  [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.
| std::istream& torc::architecture::DigestStream::read | ( | uint16_t & | outValue | ) |  [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.
| std::istream& torc::architecture::DigestStream::read | ( | uint32_t & | outValue | ) |  [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.
| std::istream& torc::architecture::DigestStream::read | ( | char * | s, | |
| std::streamsize | n | |||
| ) |  [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.
| size_t torc::architecture::DigestStream::mBytesRead  [protected] | 
 1.5.6
 1.5.6