51 [[nodiscard]] auto
new_line() const noexcept -> const
xtd::
string&;
69 virtual auto
write(const
xtd::
string& value) ->
void;
79 auto
write(
double value) ->
void;
84 auto
write(
float value) ->
void;
130 template<class value_t>
131 auto
write(value_t value) ->
void {
write(xtd::string::format(
"{}", value));}
137 template<
class ...args_t>
138 auto write(
const xtd::string& fmt, args_t&& ... args)
noexcept ->
void {
write(xtd::string::format(fmt, std::forward<args_t>(args)...));}
208 template<
class value_t>
215 template<
class ...args_t>
272 friend class text_writer;
274 synchronized_text_writer() =
delete;
Represents a null text writer.
Definition text_writer.hpp:251
auto write(const xtd::string &) -> void override
Writes the specified string value to the text stream.
Represents a synchronized text writer.
Definition text_writer.hpp:267
auto write(const xtd::string &value) -> void override
Writes the specified string value to the text stream.
Represents a writer that can write a sequential series of characters.
Definition text_writer.hpp:36
auto write_line(int16 value) -> void
Writes the specified int16 value and new line to the text stream.
auto write(const xtd::string &fmt, args_t &&... args) noexcept -> void
Writes the specified arguments with specified format to the text stream.
Definition text_writer.hpp:138
auto write_line(uint64 value) -> void
Writes the specified uint64 value and new line to the text stream.
auto write_line(value_t value) -> void
Writes the specified value_t value and new line to the text stream.
Definition text_writer.hpp:209
auto write_line(xtd::byte value) -> void
Writes the specified xtd::byte value and new line to the text stream.
auto write_line(const xtd::string &value) -> void
Writes the specified string value and new line to the text stream.
virtual auto flush() -> void
Clears all buffers for the current writer and causes any buffered data to be written to the underlyin...
auto write_line(const xtd::string &fmt, args_t &&... args) noexcept -> void
Writes the specified arguments with specified format to the text stream.
Definition text_writer.hpp:216
auto write_line(int32 value) -> void
Writes the specified int32 value and new line to the text stream.
static auto synchronised(text_writer &writer) noexcept -> synchronized_text_writer
Creates a thread-safe (synchronized) wrapper around the specified text_writer object.
auto write_line(int64 value) -> void
Writes the specified int64 value and new line to the text stream.
auto write_line(uint32 value) -> void
Writes the specified uint32 value and new line to the text stream.
virtual auto close() -> void
Closes the xtd::io::text_reader and releases any system resources associated with the text_reader.
virtual auto write(const xtd::string &value) -> void
Writes the specified string value to the text stream.
static auto null() noexcept -> null_text_writer &
Provides a text_writer with no backing store that can be written to, but not read from.
text_writer()=default
Initializes a new instance of the xtd::io::text_writer class.
auto write_line(double value) -> void
Writes the specified double value and new line to the text stream.
auto write_line(uint16 value) -> void
Writes the specified uint16 value and new line to the text stream.
auto new_line() const noexcept -> const xtd::string &
Gets the line terminator string used by the current text_writer.
auto write_line(sbyte value) -> void
Writes the specified sbyte value and new line to the text stream.
auto write_line(bool value) -> void
Writes the specified bool value and new line to the text stream.
auto write(value_t value) -> void
Writes the specified value_t value to the text stream.
Definition text_writer.hpp:131
auto write_line(float value) -> void
Writes the specified float value and new line to the text stream.
auto write_line() -> void
Writes new line to the text stream.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
Contains core_export_ keyword.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
std::int64_t int64
Represents a 64-bit signed integer.
Definition int64.hpp:23
std::uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.hpp:23
std::int8_t sbyte
Represents a 8-bit signed integer.
Definition sbyte.hpp:23
std::uint16_t uint16
Represents a 16-bit unsigned integer.
Definition uint16.hpp:23
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
std::int16_t int16
Represents a 16-bit signed integer.
Definition int16.hpp:23
std::uint64_t uint64
Represents a 64-bit unsigned integer.
Definition uint64.hpp:23
std::uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.hpp:23
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition binary_reader.hpp:17
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::object class.
Contains xtd::string alias.