ReactOS 0.4.16-dev-822-gbcedb53
__crt_stdio_output::stream_output_adapter< Character > Class Template Reference

#include <corecrt_internal_stdio_output.h>

Inheritance diagram for __crt_stdio_output::stream_output_adapter< Character >:
Collaboration diagram for __crt_stdio_output::stream_output_adapter< Character >:

Public Types

typedef __acrt_stdio_char_traits< Character > char_traits
 

Public Member Functions

 stream_output_adapter (FILE *const public_stream) throw ()
 
bool validate (__crt_cached_ptd_host &ptd) const throw ()
 
bool write_character_without_count_update (Character const c, __crt_cached_ptd_host &ptd) const throw ()
 
void write_string (Character const *const string, int const length, int *const count_written, __crt_cached_ptd_host &ptd) const throw ()
 
- Public Member Functions inherited from __crt_stdio_output::output_adapter_common< Character, stream_output_adapter< Character > >
void write_character (Character const c, int *const count_written, __crt_cached_ptd_host &ptd) const throw ()
 

Private Types

using oac_base = output_adapter_common< Character, stream_output_adapter< Character > >
 

Private Attributes

__crt_stdio_stream _stream
 

Additional Inherited Members

- Protected Member Functions inherited from __crt_stdio_output::output_adapter_common< Character, stream_output_adapter< Character > >
void write_string_impl (Character const *const string, int const length, int *const count_written, __crt_cached_ptd_host &ptd) const throw ()
 

Detailed Description

template<typename Character>
class __crt_stdio_output::stream_output_adapter< Character >

Definition at line 162 of file corecrt_internal_stdio_output.h.

Member Typedef Documentation

◆ char_traits

Definition at line 170 of file corecrt_internal_stdio_output.h.

◆ oac_base

template<typename Character >
using __crt_stdio_output::stream_output_adapter< Character >::oac_base = output_adapter_common<Character, stream_output_adapter<Character> >
private

Definition at line 166 of file corecrt_internal_stdio_output.h.

Constructor & Destructor Documentation

◆ stream_output_adapter()

template<typename Character >
__crt_stdio_output::stream_output_adapter< Character >::stream_output_adapter ( FILE *const  public_stream)
throw (
)
inline

Definition at line 172 of file corecrt_internal_stdio_output.h.

173 : _stream{public_stream}
174 {
175 }

Member Function Documentation

◆ validate()

template<typename Character >
bool __crt_stdio_output::stream_output_adapter< Character >::validate ( __crt_cached_ptd_host &  ptd) const
throw (
)
inline

Definition at line 177 of file corecrt_internal_stdio_output.h.

178 {
180
181 return char_traits::validate_stream_is_ansi_if_required(_stream.public_stream());
182 }
#define EINVAL
Definition: acclib.h:90
#define _UCRT_VALIDATE_RETURN(ptd, expr, errorcode, retexpr)
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
Definition: cvt.cpp:355

◆ write_character_without_count_update()

template<typename Character >
bool __crt_stdio_output::stream_output_adapter< Character >::write_character_without_count_update ( Character const  c,
__crt_cached_ptd_host &  ptd 
) const
throw (
)
inline

Definition at line 184 of file corecrt_internal_stdio_output.h.

185 {
186 if (_stream.is_string_backed() && _stream->_base == nullptr)
187 {
188 return true;
189 }
190
191 return char_traits::puttc_nolock_internal(c, _stream.public_stream(), ptd) != char_traits::eof;
192 }
static int_type _STLP_CALL eof()
Definition: char_traits.h:193
const GLubyte * c
Definition: glext.h:8905

◆ write_string()

template<typename Character >
void __crt_stdio_output::stream_output_adapter< Character >::write_string ( Character const *const  string,
int const  length,
int *const  count_written,
__crt_cached_ptd_host &  ptd 
) const
throw (
)
inline

Definition at line 194 of file corecrt_internal_stdio_output.h.

200 {
201 if (_stream.is_string_backed() && _stream->_base == nullptr)
202 {
203 *count_written += length;
204 return;
205 }
206
207 write_string_impl(string, length, count_written, ptd);
208 }
void write_string_impl(Character const *const string, int const length, int *const count_written, __crt_cached_ptd_host &ptd) const
GLuint GLsizei GLsizei * length
Definition: glext.h:6040

Member Data Documentation

◆ _stream


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