stdio_ostream represents an async ostream derived from a standard synchronous stream, as defined by the "std" namespace. It is constructed from a reference to a standard stream, which must be valid for the lifetime of the asynchronous stream.
More...
#include <interopstream.h>
Inheritance diagram for Concurrency::streams::stdio_ostream< CharType >:
Public Member Functions
template<typename AlterCharType >
Close the stream, preventing further write operations.
More...
Close the stream with exception, preventing further write operations.
More...
Put a single character into the stream.
More...
template<typename T >
Write a single value of "blittable" type T into the stream.
More...
Write a number of characters from a given stream buffer into the stream.
More...
pplx::task< size_t >
print (const std::basic_string< CharType > &str) const
Write the specified string to the output stream.
More...
template<typename T >
Write a value of type
T
to the output stream.
More...
template<typename T >
Write a value of type
T
to the output stream and append a newline character.
More...
Flush any buffered output data.
More...
pos_type
seek (pos_type pos) const
Seeks to the specified write position.
More...
pos_type
seek (off_type off, std::ios_base::seekdir way) const
Seeks to the specified write position.
More...
Get the current write position, i.e. the offset from the beginning of the stream.
More...
can_seek is used to determine whether the stream supports seeking.
More...
Test whether the stream has been initialized with a valid stream buffer.
More...
Test whether the stream has been initialized or not.
More...
Test whether the stream is open for writing.
More...
concurrency::streams::streambuf< CharType >
streambuf () const
Get the underlying stream buffer.
More...
Additional Inherited Members
typedef traits::int_type int_type
typedef traits::pos_type pos_type
typedef traits::off_type off_type
Detailed Description
template<typename CharType>
class Concurrency::streams::stdio_ostream< CharType >
stdio_ostream represents an async ostream derived from a standard synchronous stream, as defined by the "std" namespace. It is constructed from a reference to a standard stream, which must be valid for the lifetime of the asynchronous stream.
- Template Parameters
-
CharType The data type of the basic element of the
stdio_ostream
.
Since std streams are not reference-counted, great care must be taken by an application to make sure that the std stream does not get destroyed until all uses of the asynchronous stream are done and have been serviced.
Constructor & Destructor Documentation
template<typename CharType >
template<typename AlterCharType >
Constructor
- Template Parameters
-
AlterCharType The data type of the basic element of the source output stream.
- Parameters
-
stream The synchronous stream that this is using for its I/O
template<typename CharType >
Copy constructor
- Parameters
-
other The source object
Member Function Documentation
template<typename CharType >
Assignment operator
- Parameters
-
other The source object
- Returns
- A reference to the output stream object that contains the result of the assignment.
The documentation for this class was generated from the following file: