w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Retro::RosPrintBvi Class Reference

FIXME_docs. More...

#include <RosPrintBvi.hpp>

Public Member Functions

 RosPrintBvi (uint8_t val, size_t base=2, size_t nbit=8)
 Constructor. FIXME_docs.
 
 RosPrintBvi (uint16_t val, size_t base=2, size_t nbit=16)
 Constructor. FIXME_docs.
 
 RosPrintBvi (uint32_t val, size_t base=2, size_t nbit=32)
 Constructor. FIXME_docs.
 
void Print (std::ostream &os) const
 FIXME_docs.
 
void Print (std::string &os) const
 FIXME_docs.
 

Protected Member Functions

void Convert (char *pbuf) const
 FIXME_docs.
 

Protected Attributes

uint32_t fVal
 value to be printed
 
size_t fBase
 base: 2,8, or 16
 
size_t fNbit
 number of bits to print
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &os, const RosPrintBvi &obj)
 ostream insertion operator.
 
std::string & operator<< (std::string &os, const RosPrintBvi &obj)
 string insertion operator.
 

Detailed Description

FIXME_docs.

Definition at line 23 of file RosPrintBvi.hpp.

Constructor & Destructor Documentation

◆ RosPrintBvi() [1/3]

Retro::RosPrintBvi::RosPrintBvi ( uint8_t  val,
size_t  base = 2,
size_t  nbit = 8 
)
explicit

Constructor. FIXME_docs.

Definition at line 34 of file RosPrintBvi.cpp.

◆ RosPrintBvi() [2/3]

Retro::RosPrintBvi::RosPrintBvi ( uint16_t  val,
size_t  base = 2,
size_t  nbit = 16 
)
explicit

Constructor. FIXME_docs.

Definition at line 50 of file RosPrintBvi.cpp.

◆ RosPrintBvi() [3/3]

Retro::RosPrintBvi::RosPrintBvi ( uint32_t  val,
size_t  base = 2,
size_t  nbit = 32 
)
explicit

Constructor. FIXME_docs.

Definition at line 66 of file RosPrintBvi.cpp.

Member Function Documentation

◆ Print() [1/2]

void Retro::RosPrintBvi::Print ( std::ostream &  os) const

FIXME_docs.

Definition at line 82 of file RosPrintBvi.cpp.

References Convert(), fBase, fNbit, and fVal.

Referenced by operator<<().

◆ Print() [2/2]

void Retro::RosPrintBvi::Print ( std::string &  os) const

FIXME_docs.

Definition at line 100 of file RosPrintBvi.cpp.

References Convert(), fBase, fNbit, and fVal.

◆ Convert()

void Retro::RosPrintBvi::Convert ( char *  pbuf) const
protected

FIXME_docs.

Definition at line 120 of file RosPrintBvi.cpp.

References fBase, fNbit, and fVal.

Referenced by Print().

Friends And Related Function Documentation

◆ operator<<() [1/2]

std::ostream & operator<< ( std::ostream &  os,
const RosPrintBvi obj 
)
related

ostream insertion operator.

Definition at line 23 of file RosPrintBvi.ipp.

References Print().

◆ operator<<() [2/2]

std::string & operator<< ( std::string &  os,
const RosPrintBvi obj 
)
related

string insertion operator.

Definition at line 35 of file RosPrintBvi.ipp.

References Print().

Member Data Documentation

◆ fVal

uint32_t Retro::RosPrintBvi::fVal
protected

value to be printed

Definition at line 36 of file RosPrintBvi.hpp.

Referenced by Convert(), and Print().

◆ fBase

size_t Retro::RosPrintBvi::fBase
protected

base: 2,8, or 16

Definition at line 37 of file RosPrintBvi.hpp.

Referenced by Convert(), and Print().

◆ fNbit

size_t Retro::RosPrintBvi::fNbit
protected

number of bits to print

Definition at line 38 of file RosPrintBvi.hpp.

Referenced by Convert(), and Print().


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