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

Base class for print objects. **. More...

#include <RosPrintfBase.hpp>

Inheritance diagram for Retro::RosPrintfBase:
[legend]

Public Member Functions

 RosPrintfBase (const char *form, int width, int prec)
 Constructor.
 
virtual ~RosPrintfBase ()
 Destructor.
 
virtual void ToStream (std::ostream &os) const =0
 Concrete implementation of the ostream insertion.
 

Protected Attributes

const char * fForm
 format string
 
int fWidth
 field width
 
int fPrec
 field precision
 

Related Functions

(Note that these are not member functions.)

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

Detailed Description

Base class for print objects. **.

Definition at line 24 of file RosPrintfBase.hpp.

Constructor & Destructor Documentation

◆ RosPrintfBase()

Retro::RosPrintfBase::RosPrintfBase ( const char *  form,
int  width,
int  prec 
)
inline

Constructor.

Parameters
formformat descriptor string
widthfield width
precprecision

Definition at line 38 of file RosPrintfBase.ipp.

◆ ~RosPrintfBase()

Retro::RosPrintfBase::~RosPrintfBase ( )
virtual

Destructor.

Definition at line 29 of file RosPrintfBase.cpp.

Member Function Documentation

◆ ToStream()

Retro::RosPrintfBase::ToStream ( std::ostream &  os) const
pure virtual

Concrete implementation of the ostream insertion.

Implemented in Retro::RosPrintfS< T >.

Referenced by operator<<().

Friends And Related Function Documentation

◆ operator<<() [1/2]

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

string insertion

Definition at line 38 of file RosPrintfBase.cpp.

References ToStream().

◆ operator<<() [2/2]

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

ostream insertion

Definition at line 50 of file RosPrintfBase.ipp.

References ToStream().

Member Data Documentation

◆ fForm

const char* Retro::RosPrintfBase::fForm
protected

format string

Definition at line 32 of file RosPrintfBase.hpp.

◆ fWidth

int Retro::RosPrintfBase::fWidth
protected

field width

Definition at line 33 of file RosPrintfBase.hpp.

◆ fPrec

int Retro::RosPrintfBase::fPrec
protected

field precision

Definition at line 34 of file RosPrintfBase.hpp.


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