OnixS C++ SGX Titan OUCH Trading Handler  1.2.0
API documentation
FormatSpec Class Reference

#include </work/src/NumberFormatting.h>

Public Member Functions

 FormatSpec ()
 
Char filler () const
 
void filler (Char filler)
 
size_t width () const
 
void width (size_t width)
 
size_t precision () const
 
void precision (size_t precision)
 

Detailed Description

Functions below serialize integer and decimal numbers in a "%<width>.<precision>" printf format. Formatted value is never truncated if width is less than a number of digits in a whole part of a number. Value truncating is used as rounding strategy when fractional part has grater precision than requested one.

Definition at line 276 of file NumberFormatting.h.

Constructor & Destructor Documentation

FormatSpec ( )
inline

Definition at line 283 of file NumberFormatting.h.

Member Function Documentation

Char filler ( ) const
inline

Definition at line 290 of file NumberFormatting.h.

void filler ( Char  filler)
inline

Definition at line 295 of file NumberFormatting.h.

size_t precision ( ) const
inline

Definition at line 310 of file NumberFormatting.h.

void precision ( size_t  precision)
inline

Definition at line 315 of file NumberFormatting.h.

size_t width ( ) const
inline

Definition at line 300 of file NumberFormatting.h.

void width ( size_t  width)
inline

Definition at line 305 of file NumberFormatting.h.


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