torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::bitstream::Hex16 Class Reference

#include <OutputStreamHelpers.hpp>

Public Member Functions

 Hex16 (boost::uint16_t rhs)
 

Private Attributes

boost::uint16_t mWord
 

Friends

std::ostream & operator<< (std::ostream &os, const Hex16 &rhs)
 16-bit word hex inserter. More...
 

Detailed Description

Definition at line 62 of file bitstream/OutputStreamHelpers.hpp.

Constructor & Destructor Documentation

torc::bitstream::Hex16::Hex16 ( boost::uint16_t  rhs)
inline

Definition at line 65 of file bitstream/OutputStreamHelpers.hpp.

65 : mWord(rhs) {};

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Hex16 rhs 
)
friend

16-bit word hex inserter.

Definition at line 41 of file bitstream/OutputStreamHelpers.cpp.

41  {
42  return os << std::hex << std::setfill('0') << std::setw(8) << inWord.mWord << std::dec;
43  }

Field Documentation

boost::uint16_t torc::bitstream::Hex16::mWord
private

Definition at line 63 of file bitstream/OutputStreamHelpers.hpp.


The documentation for this class was generated from the following file: