ALib C++ Library
Library Version: 2312 R0
Documentation generated by doxygen
Public Fields | Public Methods | List of all members
TFormat< TChar >::Oct Struct Reference

#include <format.hpp>

Class Description

template<typename TChar>
struct aworx::lib::strings::TFormat< TChar >::Oct


Implements a temporary object which is appended to instances of type AString.

Appends an integral value in octal format.

See also
Class TNumberFormat for more information on formatting options for octal number output.

Definition at line 387 of file format.hpp.

Public Fields

TNumberFormat< TChar > * nf
 NumberFormat::Computational. More...
 
uint64_t theValue
 The value to write.
 
int theWidth
 

Public Methods

template<typename TIntegral >
 Oct (TIntegral value, int overrideWidth=0, TNumberFormat< TChar > *numberFormat=nullptr)
 
template<typename TIntegral >
 Oct (TIntegral value, TNumberFormat< TChar > *numberFormat)
 

Constructor & Destructor Documentation

◆ Oct() [1/2]

Oct ( TIntegral  value,
int  overrideWidth = 0,
TNumberFormat< TChar > *  numberFormat = nullptr 
)
inline

Constructor, taking the value and formatting parameters.

Template Parameters
TIntegralValue type which has to be statically castable to std::uint64_t.
Parameters
valueThe value to write.
overrideWidthDefaults to 0 which denotes to choose the value of field NumberFormat::OctFieldWidth.
numberFormatThe number format to use. Defaults to nullptr which chooses the static singleton found in NumberFormat::Computational.

Definition at line 411 of file format.hpp.

◆ Oct() [2/2]

Oct ( TIntegral  value,
TNumberFormat< TChar > *  numberFormat 
)
inline

Constructor, taking the value and a just an object of type NumberFormat.

Template Parameters
TIntegralValue type which has to be statically castable to std::uint64_t.
Parameters
valueThe value to write.
numberFormatThe number format to use. Defaults to nullptr which chooses the static singleton found in NumberFormat::Computational.

Definition at line 428 of file format.hpp.

Member Data Documentation

◆ nf

TNumberFormat<TChar>* nf

NumberFormat::Computational.

The number format to use. Defaults to nullptr which chooses

Definition at line 395 of file format.hpp.

◆ theWidth

int theWidth

The minimum width of the number to write. Defaults to 0 which denotes to choose the value of field NumberFormat::OctFieldWidth.

Definition at line 391 of file format.hpp.


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