stdex
Additional custom or not Standard C++ covered algorithms
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
stdex::basic_ostreamfmt< _Elem, _Traits > Class Template Reference

Binary stream writer. More...

#include <stdex/ios.hpp>

Inheritance diagram for stdex::basic_ostreamfmt< _Elem, _Traits >:
stdex::basic_iostreamfmt< _Elem, _Traits >

Public Types

using pos_type = typename _Traits::pos_type
 
using off_type = typename _Traits::off_type
 

Public Member Functions

 basic_ostreamfmt (std::basic_ostream< _Elem, _Traits > &stream)
 
pos_type tellp ()
 
basic_ostreamfmt< _Elem, _Traits > & seekp (pos_type pos)
 
basic_ostreamfmt< _Elem, _Traits > & seekp (off_type off, std::ios_base::seekdir dir)
 
bool good () const noexcept
 
bool eof () const noexcept
 
bool fail () const noexcept
 
bool bad () const noexcept
 
basic_ostreamfmt< _Elem, _Traits > & write (_In_reads_bytes_(size) const void *data, std::streamsize size)
 
template<class T >
basic_ostreamfmt< _Elem, _Traits > & write (T value)
 
basic_ostreamfmt< _Elem, _Traits > & write (const char *value)
 
basic_ostreamfmt< _Elem, _Traits > & write (const wchar_t *value)
 
template<class _Elem2 >
void vprintf (const _Elem2 *format, locale_t locale, va_list arg)
 Formats string using printf() and write it to stream.
 
template<class _Elem2 >
void printf (const _Elem2 *format, locale_t locale,...)
 Formats string using printf() and write it to stream.
 
basic_ostreamfmt< _Elem, _Traits > & operator<< (int8_t value)
 
basic_ostreamfmt< _Elem, _Traits > & operator<< (int16_t value)
 
basic_ostreamfmt< _Elem, _Traits > & operator<< (int32_t value)
 
basic_ostreamfmt< _Elem, _Traits > & operator<< (int64_t value)
 
basic_ostreamfmt< _Elem, _Traits > & operator<< (uint8_t value)
 
basic_ostreamfmt< _Elem, _Traits > & operator<< (uint16_t value)
 
basic_ostreamfmt< _Elem, _Traits > & operator<< (uint32_t value)
 
basic_ostreamfmt< _Elem, _Traits > & operator<< (uint64_t value)
 
basic_ostreamfmt< _Elem, _Traits > & operator<< (float value)
 
basic_ostreamfmt< _Elem, _Traits > & operator<< (double value)
 
basic_ostreamfmt< _Elem, _Traits > & operator<< (char value)
 
basic_ostreamfmt< _Elem, _Traits > & operator<< (const char *value)
 
basic_ostreamfmt< _Elem, _Traits > & operator<< (const wchar_t *value)
 

Public Attributes

std::basic_ostream< _Elem, _Traits > & sp
 

Detailed Description

template<class _Elem, class _Traits>
class stdex::basic_ostreamfmt< _Elem, _Traits >

Binary stream writer.

Member Function Documentation

◆ printf()

template<class _Elem , class _Traits >
template<class _Elem2 >
void stdex::basic_ostreamfmt< _Elem, _Traits >::printf ( const _Elem2 *  format,
locale_t  locale,
  ... 
)
inline

Formats string using printf() and write it to stream.

Parameters
[in]formatString template using printf() style
[in]localeStdlib locale used to perform formatting. Use NULL to use locale globally set by setlocale().

◆ vprintf()

template<class _Elem , class _Traits >
template<class _Elem2 >
void stdex::basic_ostreamfmt< _Elem, _Traits >::vprintf ( const _Elem2 *  format,
locale_t  locale,
va_list  arg 
)
inline

Formats string using printf() and write it to stream.

Parameters
[in]formatString template using printf() style
[in]localeStdlib locale used to perform formatting. Use NULL to use locale globally set by setlocale().
[in]argArguments to format

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