All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
icarus::ns::util::details::ZeroPadder< T, Fill > Struct Template Reference

A wrapper padding the dump of its data with zeroes (or C). More...

#include <BinaryDumpUtils.h>

Public Member Functions

 ZeroPadder (T data, unsigned int field, char pad=Fill)
 

Public Attributes

T const data
 
unsigned int const field
 
char const pad
 

Detailed Description

template<typename T, char Fill = '0'>
struct icarus::ns::util::details::ZeroPadder< T, Fill >

A wrapper padding the dump of its data with zeroes (or C).

Template Parameters
Ttype of data to be dumped
Fill(default: 0) fill character
See Also
icarus::ns::util::zeropad()

The wrapper allows zero-padding of data with a specified field width.

Definition at line 101 of file BinaryDumpUtils.h.

Constructor & Destructor Documentation

template<typename T, char Fill = '0'>
icarus::ns::util::details::ZeroPadder< T, Fill >::ZeroPadder ( data,
unsigned int  field,
char  pad = Fill 
)
inline

Member Data Documentation

template<typename T, char Fill = '0'>
T const icarus::ns::util::details::ZeroPadder< T, Fill >::data

Definition at line 102 of file BinaryDumpUtils.h.

template<typename T, char Fill = '0'>
unsigned int const icarus::ns::util::details::ZeroPadder< T, Fill >::field

Definition at line 103 of file BinaryDumpUtils.h.

template<typename T, char Fill = '0'>
char const icarus::ns::util::details::ZeroPadder< T, Fill >::pad

Definition at line 104 of file BinaryDumpUtils.h.


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