cxxtools::BinaryFormat< CharType > Struct Template Reference

#include <cxxtools/convert.h>

Inheritance diagram for cxxtools::BinaryFormat< CharType >:
cxxtools::NumberFormat< CharType >

Public Types

typedef CharType CharT
- Public Types inherited from cxxtools::NumberFormat< CharType >
typedef CharType CharT

Static Public Member Functions

static CharT toChar (unsigned char n)
static unsigned char toDigit (CharT ch)
 Converts a character to a digit.
- Static Public Member Functions inherited from cxxtools::NumberFormat< CharType >
static CharT plus ()
static CharT minus ()

Static Public Attributes

static const unsigned base = 2

Member Typedef Documentation

template<typename CharType>
typedef CharType cxxtools::BinaryFormat< CharType >::CharT

Member Function Documentation

template<typename CharType>
static CharT cxxtools::BinaryFormat< CharType >::toChar ( unsigned char  n)
template<typename CharType>
static unsigned char cxxtools::BinaryFormat< CharType >::toDigit ( CharT  ch)

Converts a character to a digit.

Returns a number equal or less than the base on success or a number greater than base on failure.

Member Data Documentation

template<typename CharType>
const unsigned cxxtools::BinaryFormat< CharType >::base = 2

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