12struct CLASS_DECL_ACME write_text_stream_struct
16 ::i8 m_chSeparator =
' ';
18 const_char_pointer m_pszEolSeparator =
"\r\n";
20 const_char_pointer m_pszEolSeparator =
"\n";
24 write_text_stream_struct();
25 write_text_stream_struct(
const write_text_stream_struct & writetextstreamstruct) =
default;
26 write_text_stream_struct(write_text_stream_struct && writetextstreamstruct) =
default;
29 void set_width(::i32 width) { m_pprintingformat->m_width = width; }
31 void set_precision(::i32 precision) { m_pprintingformat->m_precision = precision; }
41class CLASS_DECL_ACME write_text_stream :
42 virtual public write_text_stream_struct
47 ::file_pointer m_pfile;
51 write_text_stream(const ::file_pointer & pfile);
52 write_text_stream(::file_pointer && pfile);
53 write_text_stream(
const write_text_stream &
stream);
54 write_text_stream(write_text_stream &&
stream);
55 write_text_stream(const ::file_pointer & pfile, write_text_stream_struct && streamstruct);
56 virtual ~write_text_stream();
101 inline ::file::fmtflags & fmtflags() {
return m_pprintingformat->m_fmtflags; }
102 inline ::file::fmtflags fmtflags()
const {
return m_pprintingformat->m_fmtflags; }
105 void print(const ::range < const ansi_character * > & str);
106 void print(::ansi_character ansicharacter) { write(&ansicharacter, 1); }
107 void print(::wd16_character wd16character) { ::i8 sz[8]; write((const_char_pointer )&sz, wd16_to_ansi(sz, &wd16character, 1)); }
108 void print(::wd32_character wd32character) { ::i8 sz[8]; write((const_char_pointer )& sz, wd32_to_ansi(sz, &wd32character, 1)); }
111 template < prototype_number NUMBER >
112 void write_number(NUMBER number);
114 template < prototype_number NUMBER >
115 void write_number(NUMBER number, const_char_pointer pszFormat);
169 void append_format(const_char_pointer pszFormat, ...);
209 write_text_stream & operator <<(::file::fmtflags e)
212 m_pprintingformat->set_format_flags(e);
220 template <
typename ENUM >
224 return *
this << e.m_eenum;
229 write_text_stream & operator <<(
bool b);
257 write_text_stream & operator <<(::i8 ch);
273 write_text_stream & operator <<(enum_start_reference);
281 write_text_stream & operator <<(uchar uch);
301 write_text_stream & operator <<(unichar wch);
324 template < prototype_
signed_not_8bit SIGNED >
325 write_text_stream & operator <<(SIGNED i);
342 template < prototype_
unsigned_not_8bit UNSIGNED >
343 write_text_stream & operator <<(UNSIGNED u);
359 template <
typename T >
360 void print_string_copy(
const T & t);
434 template < prototype_
floating FLOATING >
435 write_text_stream & operator <<(FLOATING f);
483 write_text_stream & operator <<(const_char_pointer psz);
513 write_text_stream & operator <<(const ::range < const_char_pointer >&
range);
521 write_text_stream& operator <<(const ::platform::type & type)
524 return *
this << type.name();
529 write_text_stream & operator <<(const ::scoped_string & scopedstr);
567 template < prototype_
character CHARACTER2,
character_count sizeMaximumLength >
568 write_text_stream & operator <<(const ::inline_string < CHARACTER2, sizeMaximumLength > & inlinestring);
598 template <
typename TYPE >
599 write_text_stream & write(
const TYPE & t);
609 void raw_print(const ::scoped_string & scopedstr);
627 void write(
const void * psz, character_count s);
Definition write_text_stream.h:43