\hypertarget{class_qore_1_1_pipe_output_stream}{}\doxysection{Qore\+::Pipe\+Output\+Stream Class Reference}
\label{class_qore_1_1_pipe_output_stream}\index{Qore::PipeOutputStream@{Qore::PipeOutputStream}}


This class is not intended to be instantiated directly, please see \mbox{\hyperlink{class_qore_1_1_stream_pipe}{Stream\+Pipe}}.  




Inheritance diagram for Qore\+::Pipe\+Output\+Stream\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=215pt]{class_qore_1_1_pipe_output_stream__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
nothing \mbox{\hyperlink{class_qore_1_1_pipe_output_stream_ac5c91f4c13fd56c359c02027c71ff3d3}{close}} ()
\begin{DoxyCompactList}\small\item\em Closes the output stream and releases any resources. \end{DoxyCompactList}\item 
nothing \mbox{\hyperlink{class_qore_1_1_pipe_output_stream_a1110fa8d45d803447666a838fba64a52}{report\+Error}} (\mbox{\hyperlink{group__type__conversion__functions_ga0231dbb472dd230310af7c7c34f56e92}{hash}} ex)
\begin{DoxyCompactList}\small\item\em Causes all operations on both pipe streams to wake up and throw an exception. \end{DoxyCompactList}\item 
nothing \mbox{\hyperlink{class_qore_1_1_pipe_output_stream_ae3e794eea23aa086733f96aa54520e09}{write}} (\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} data)
\begin{DoxyCompactList}\small\item\em Writes bytes to the output stream. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_qore_1_1_pipe_output_stream_ac4e0d18633e2389eb08975450cad5032}\label{class_qore_1_1_pipe_output_stream_ac4e0d18633e2389eb08975450cad5032}} 
\mbox{\hyperlink{class_qore_1_1_pipe_output_stream_ac4e0d18633e2389eb08975450cad5032}{constructor}} ()
\begin{DoxyCompactList}\small\item\em Creates the \mbox{\hyperlink{class_qore_1_1_pipe_output_stream}{Pipe\+Output\+Stream}}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This class is not intended to be instantiated directly, please see \mbox{\hyperlink{class_qore_1_1_stream_pipe}{Stream\+Pipe}}. 

\begin{DoxyNote}{Note}
stream classes are not designed to be accessed from multiple threads; they have been implemented without locking for fast and efficient use when used from a single thread. For methods that would be unsafe to use in another thread, any use of such methods in threads other than the thread where the constructor was called will cause a {\ttfamily STREAM-\/\+THREAD-\/\+ERROR} to be thrown, unless the stream is handed off to another thread using the \mbox{\hyperlink{class_qore_1_1_stream_base_a017fc847a42d5c670cb9640a94522666}{Stream\+Base\+::unassign\+Thread()}} method in the thread that currently owns the stream, and the \mbox{\hyperlink{class_qore_1_1_stream_base_ab6b33cb1944c46aca8e9984ddfd65452}{Stream\+Base\+::reassign\+Thread()}} method in the new thread.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}

\begin{DoxyItemize}
\item \mbox{\hyperlink{class_qore_1_1_stream_writer}{Stream\+Writer}} for a class that can be used to \mbox{\hyperlink{class_qore_1_1_pipe_output_stream_ae3e794eea23aa086733f96aa54520e09}{write}} various kinds of data to an \mbox{\hyperlink{class_qore_1_1_output_stream}{Output\+Stream}}
\item \mbox{\hyperlink{class_qore_1_1_stream_pipe}{Qore\+::\+Stream\+Pipe}}
\end{DoxyItemize}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+13 
\end{DoxySince}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_qore_1_1_pipe_output_stream_ac5c91f4c13fd56c359c02027c71ff3d3}\label{class_qore_1_1_pipe_output_stream_ac5c91f4c13fd56c359c02027c71ff3d3}} 
\index{Qore::PipeOutputStream@{Qore::PipeOutputStream}!close@{close}}
\index{close@{close}!Qore::PipeOutputStream@{Qore::PipeOutputStream}}
\doxysubsubsection{\texorpdfstring{close()}{close()}}
{\footnotesize\ttfamily nothing Qore\+::\+Pipe\+Output\+Stream\+::close (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Closes the output stream and releases any resources. 


\begin{DoxyExceptions}{Exceptions}
{\em OUTPUT-\/\+STREAM-\/\+CLOSED-\/\+ERROR} & the output stream has already been closed \\
\hline
{\em STREAM-\/\+THREAD-\/\+ERROR} & this exception is thrown if this method is called from any thread other than the thread that created the object \\
\hline
\end{DoxyExceptions}


Implements \mbox{\hyperlink{class_qore_1_1_output_stream_a2125e17612767b9636554b282638e883}{Qore\+::\+Output\+Stream}}.

\mbox{\Hypertarget{class_qore_1_1_pipe_output_stream_a1110fa8d45d803447666a838fba64a52}\label{class_qore_1_1_pipe_output_stream_a1110fa8d45d803447666a838fba64a52}} 
\index{Qore::PipeOutputStream@{Qore::PipeOutputStream}!reportError@{reportError}}
\index{reportError@{reportError}!Qore::PipeOutputStream@{Qore::PipeOutputStream}}
\doxysubsubsection{\texorpdfstring{reportError()}{reportError()}}
{\footnotesize\ttfamily nothing Qore\+::\+Pipe\+Output\+Stream\+::report\+Error (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__type__conversion__functions_ga0231dbb472dd230310af7c7c34f56e92}{hash}}}]{ex }\end{DoxyParamCaption})}



Causes all operations on both pipe streams to wake up and throw an exception. 

Normally used from the background thread to report an error to the main thread. 
\begin{DoxyParams}{Parameters}
{\em ex} & the exception, must contain strings \textquotesingle{}err\textquotesingle{} and \textquotesingle{}desc\textquotesingle{} \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_qore_1_1_pipe_output_stream_ae3e794eea23aa086733f96aa54520e09}\label{class_qore_1_1_pipe_output_stream_ae3e794eea23aa086733f96aa54520e09}} 
\index{Qore::PipeOutputStream@{Qore::PipeOutputStream}!write@{write}}
\index{write@{write}!Qore::PipeOutputStream@{Qore::PipeOutputStream}}
\doxysubsubsection{\texorpdfstring{write()}{write()}}
{\footnotesize\ttfamily nothing Qore\+::\+Pipe\+Output\+Stream\+::write (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}}}]{data }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Writes bytes to the output stream. 


\begin{DoxyExceptions}{Exceptions}
{\em OUTPUT-\/\+STREAM-\/\+CLOSED-\/\+ERROR} & the output stream has already been closed \\
\hline
{\em STREAM-\/\+THREAD-\/\+ERROR} & this exception is thrown if this method is called from any thread other than the thread that created the object \\
\hline
\end{DoxyExceptions}


Implements \mbox{\hyperlink{class_qore_1_1_output_stream_a9054b0475c4829d10f956d8f6df6f2ac}{Qore\+::\+Output\+Stream}}.

