5#include "../core_export.h"
17 class null_text_writer;
18 class synchronized_text_writer;
51 const
xtd::
string& new_line() const noexcept;
53 void new_line(const
xtd::
string& new_line) noexcept;
69 virtual
void write(const
xtd::
string& value);
74 void write(
bool value);
79 void write(
double value);
84 void write(
float value);
109 void write(
xtd::
byte value);
130 template<typename value_t>
137 template<
typename ... args_t>
208 template<
typename value_t>
215 template<
typename ... args_t>
Represents text as a sequence of character units.
Definition basic_string.h:79
Represents a null text writer.
Definition text_writer.h:251
void write(const xtd::string &) override
Writes the specified string value to the text stream.
Represents a synchronized text writer.
Definition text_writer.h:267
void write(const xtd::string &value) override
Writes the specified string value to the text stream.
Represents a writer that can write a sequential series of characters.
Definition text_writer.h:36
void write(value_t value)
Writes the specified value_t value to the text stream.
Definition text_writer.h:131
void write_line(int16 value)
Writes the specified int16 value and new line to the text stream.
void write_line(uint64 value)
Writes the specified uint64 value and new line to the text stream.
void write_line(double value)
Writes the specified double value and new line to the text stream.
void write_line(int32 value)
Writes the specified int32 value and new line to the text stream.
void write_line(xtd::byte value)
Writes the specified xtd::byte value and new line to the text stream.
static null_text_writer & null() noexcept
Provides a text_writer with no backing store that can be written to, but not read from.
void write_line(sbyte value)
Writes the specified sbyte value and new line to the text stream.
void write_line(const xtd::string &value)
Writes the specified string value and new line to the text stream.
void write_line(uint32 value)
Writes the specified uint32 value and new line to the text stream.
void write(const xtd::string &fmt, args_t &&... args) noexcept
Writes the specified arguments with specified format to the text stream.
Definition text_writer.h:138
text_writer()=default
Initializes a new instance of the xtd::io::text_writer class.
void write_line(value_t value)
Writes the specified value_t value and new line to the text stream.
Definition text_writer.h:209
void write_line(const xtd::string &fmt, args_t &&... args) noexcept
Writes the specified arguments with specified format to the text stream.
Definition text_writer.h:216
void write_line(float value)
Writes the specified float value and new line to the text stream.
static synchronized_text_writer synchronised(text_writer &writer) noexcept
Creates a thread-safe (synchronized) wrapper around the specified text_writer object.
void write_line(bool value)
Writes the specified bool value and new line to the text stream.
void write_line()
Writes new line to the text stream.
void write_line(int64 value)
Writes the specified int64 value and new line to the text stream.
void write_line(uint16 value)
Writes the specified uint16 value and new line to the text stream.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
#define core_export_
Define shared library export.
Definition core_export.h:13
int16_t int16
Represents a 16-bit signed integer.
Definition int16.h:23
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
int64_t int64
Represents a 64-bit signed integer.
Definition int64.h:23
int8_t sbyte
Represents a 8-bit signed integer.
Definition sbyte.h:23
uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.h:23
uint64_t uint64
Represents a 64-bit unsigned integer.
Definition uint64.h:23
uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.h:23
uint16_t uint16
Represents a 16-bit unsigned integer.
Definition uint16.h:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10