6#include "../optional.hpp" 
   77      std::optional<std::reference_wrapper<std::ostream>> 
base_stream() 
const;
 
   90      using text_writer::write;
 
   98      std::ostream* stream_ = 
nullptr;
 
   99      bool auto_flush_ = 
false;
 
  100      bool delete_when_destroy_ = 
false;
 
Represents text as a sequence of character units.
Definition basic_string.hpp:79
 
Performs operations on std::basic_string instances that contain file or directory path information....
Definition path.hpp:36
 
Implements a xtd::io::text_writer for writing characters to a stream.
Definition stream_writer.hpp:28
 
stream_writer(std::ostream &stream)
Initializes a new instance of the stream_writer class for the specified stream.
 
stream_writer(const xtd::string &path)
Initializes a new instance of the stream_writer class for the specified file name.
 
void flush() override
Clears all buffers for the current writer and causes any buffered data to be written to the underlyin...
 
std::optional< std::reference_wrapper< std::ostream > > base_stream() const
Returns the underlying stream.
 
bool auto_flush() const
Gets a value indicating whether the xtd::io::stream_writer will flush its buffer to the underlying st...
 
void write(const xtd::string &value) override
Writes the specified string value to the text stream.
 
void close() override
Closes the stream_writer object and the underlying stream, and releases any system resources associat...
 
void auto_flush(bool auto_flush)
Sets a value indicating whether the xtd::io::stream_writer will flush its buffer to the underlying st...
 
stream_writer(const xtd::string &path, bool append)
Initializes a new instance of the xtd::io::stream_writer class for the specified file on the specifie...
 
stream_writer(std::ostream &stream, bool append)
Initializes a new instance of the stream_writer class for the specified stream.
 
Represents a writer that can write a sequential series of characters.
Definition text_writer.hpp:36
 
#define core_export_
Define shared library export.
Definition core_export.hpp:13
 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
 
Contains xtd::io::text_writer class.