\hypertarget{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer}{}\section{Mike42\textbackslash{}Escpos\textbackslash{}Print\+Buffers\textbackslash{}Escpos\+Print\+Buffer Class Reference}
\label{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer}\index{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Buffers\textbackslash{}\+Escpos\+Print\+Buffer@{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Buffers\textbackslash{}\+Escpos\+Print\+Buffer}}


Inheritance diagram for Mike42\textbackslash{}Escpos\textbackslash{}Print\+Buffers\textbackslash{}Escpos\+Print\+Buffer\+:
% FIG 0


Collaboration diagram for Mike42\textbackslash{}Escpos\textbackslash{}Print\+Buffers\textbackslash{}Escpos\+Print\+Buffer\+:
% FIG 1
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a7bde3306adc9d70372cd204c3a0c54a5}{\+\_\+\+\_\+construct} ()
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a39aad0835900e10aa7e7699d86ff07a4}{flush} ()
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a93c5beb2d70ffe1ae22628991e29393f}{get\+Printer} ()
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_aecb9ca7d1fa8f43431524db16b3ff60e}{set\+Printer} (\hyperlink{classMike42_1_1Escpos_1_1Printer}{Printer} \$printer=null)
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a85457ce8bd33f580fbb0fc2ab54e80d0}{write\+Text} (\$text)
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a59ec5241f98fc6cd51cfee19342ad78e}{write\+Text\+Raw} (\$text)
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
const \hyperlink{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_adb4b8628f5779863f0b83a70f9f821b4}{C\+O\+M\+P\+R\+E\+S\+S\+\_\+\+C\+A\+C\+H\+E} = true
\item 
const \hyperlink{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a116c94ddd8314eca65f1455492da29a9}{I\+N\+P\+U\+T\+\_\+\+E\+N\+C\+O\+D\+I\+N\+G} = \char`\"{}U\+T\+F-\/8\char`\"{}
\item 
const \hyperlink{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a68bab97e0c46eb456eb1c426fc0bcb17}{R\+E\+P\+L\+A\+C\+E\+M\+E\+N\+T\+\_\+\+C\+H\+A\+R} = \char`\"{}?\char`\"{}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class manages newlines and character encoding for the target printer, and can be interchanged for an image-\/bassed buffer (\hyperlink{classMike42_1_1Escpos_1_1PrintBuffers_1_1ImagePrintBuffer}{Image\+Print\+Buffer}) if you can't get it operating properly on your machine. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a7bde3306adc9d70372cd204c3a0c54a5}{}\index{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}!\+\_\+\+\_\+construct@{\+\_\+\+\_\+construct}}
\index{\+\_\+\+\_\+construct@{\+\_\+\+\_\+construct}!Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}}
\subsubsection[{\+\_\+\+\_\+construct}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Buffers\textbackslash{}\+Escpos\+Print\+Buffer\+::\+\_\+\+\_\+construct (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a7bde3306adc9d70372cd204c3a0c54a5}
Empty print buffer. 

\subsection{Member Function Documentation}
\hypertarget{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a39aad0835900e10aa7e7699d86ff07a4}{}\index{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}!flush@{flush}}
\index{flush@{flush}!Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}}
\subsubsection[{flush}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Buffers\textbackslash{}\+Escpos\+Print\+Buffer\+::flush (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a39aad0835900e10aa7e7699d86ff07a4}
Cause the buffer to send any partial input and wait on a newline. If the printer is already on a new line, this does nothing. 

Implements \hyperlink{interfaceMike42_1_1Escpos_1_1PrintBuffers_1_1PrintBuffer_a27a593f10bb3ebf23035bc715185f903}{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Buffers\textbackslash{}\+Print\+Buffer}.

\hypertarget{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a93c5beb2d70ffe1ae22628991e29393f}{}\index{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}!get\+Printer@{get\+Printer}}
\index{get\+Printer@{get\+Printer}!Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}}
\subsubsection[{get\+Printer}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Buffers\textbackslash{}\+Escpos\+Print\+Buffer\+::get\+Printer (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a93c5beb2d70ffe1ae22628991e29393f}
Used by \hyperlink{namespaceMike42_1_1Escpos}{Escpos} to check if a printer is set. 

Implements \hyperlink{interfaceMike42_1_1Escpos_1_1PrintBuffers_1_1PrintBuffer_a534dceed0453bffe04d5226281792389}{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Buffers\textbackslash{}\+Print\+Buffer}.

\hypertarget{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_aecb9ca7d1fa8f43431524db16b3ff60e}{}\index{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}!set\+Printer@{set\+Printer}}
\index{set\+Printer@{set\+Printer}!Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}}
\subsubsection[{set\+Printer}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Buffers\textbackslash{}\+Escpos\+Print\+Buffer\+::set\+Printer (
\begin{DoxyParamCaption}
\item[{{\bf Printer}}]{\$printer = {\ttfamily null}}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_aecb9ca7d1fa8f43431524db16b3ff60e}
Used by \hyperlink{namespaceMike42_1_1Escpos}{Escpos} to hook up one-\/to-\/one link between buffers and printers.


\begin{DoxyParams}[1]{Parameters}
\hyperlink{classMike42_1_1Escpos_1_1Printer}{Printer} | null & {\em \$printer} & New printer \\
\hline
\end{DoxyParams}


Implements \hyperlink{interfaceMike42_1_1Escpos_1_1PrintBuffers_1_1PrintBuffer_a40fec41715c8f6a5db1e8d2e641834b4}{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Buffers\textbackslash{}\+Print\+Buffer}.

\hypertarget{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a85457ce8bd33f580fbb0fc2ab54e80d0}{}\index{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}!write\+Text@{write\+Text}}
\index{write\+Text@{write\+Text}!Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}}
\subsubsection[{write\+Text}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Buffers\textbackslash{}\+Escpos\+Print\+Buffer\+::write\+Text (
\begin{DoxyParamCaption}
\item[{}]{\$text}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a85457ce8bd33f580fbb0fc2ab54e80d0}
Accept U\+T\+F-\/8 text for printing.


\begin{DoxyParams}[1]{Parameters}
string & {\em \$text} & Text to print \\
\hline
\end{DoxyParams}


Implements \hyperlink{interfaceMike42_1_1Escpos_1_1PrintBuffers_1_1PrintBuffer_aeeab8ff585f1862f8b75fd2980656709}{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Buffers\textbackslash{}\+Print\+Buffer}.

\hypertarget{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a59ec5241f98fc6cd51cfee19342ad78e}{}\index{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}!write\+Text\+Raw@{write\+Text\+Raw}}
\index{write\+Text\+Raw@{write\+Text\+Raw}!Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}}
\subsubsection[{write\+Text\+Raw}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Buffers\textbackslash{}\+Escpos\+Print\+Buffer\+::write\+Text\+Raw (
\begin{DoxyParamCaption}
\item[{}]{\$text}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a59ec5241f98fc6cd51cfee19342ad78e}
Accept 8-\/bit text in the current encoding and add it to the buffer.


\begin{DoxyParams}[1]{Parameters}
string & {\em \$text} & Text to print, already the target encoding. \\
\hline
\end{DoxyParams}


Implements \hyperlink{interfaceMike42_1_1Escpos_1_1PrintBuffers_1_1PrintBuffer_a7983b2aadd432e61cefa104747e12917}{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Buffers\textbackslash{}\+Print\+Buffer}.



\subsection{Member Data Documentation}
\hypertarget{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_adb4b8628f5779863f0b83a70f9f821b4}{}\index{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}!C\+O\+M\+P\+R\+E\+S\+S\+\_\+\+C\+A\+C\+H\+E@{C\+O\+M\+P\+R\+E\+S\+S\+\_\+\+C\+A\+C\+H\+E}}
\index{C\+O\+M\+P\+R\+E\+S\+S\+\_\+\+C\+A\+C\+H\+E@{C\+O\+M\+P\+R\+E\+S\+S\+\_\+\+C\+A\+C\+H\+E}!Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}}
\subsubsection[{C\+O\+M\+P\+R\+E\+S\+S\+\_\+\+C\+A\+C\+H\+E}]{\setlength{\rightskip}{0pt plus 5cm}const Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Buffers\textbackslash{}\+Escpos\+Print\+Buffer\+::\+C\+O\+M\+P\+R\+E\+S\+S\+\_\+\+C\+A\+C\+H\+E = true}\label{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_adb4b8628f5779863f0b83a70f9f821b4}
True to cache output as .z, false to leave un-\/compressed (useful for debugging) \hypertarget{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a116c94ddd8314eca65f1455492da29a9}{}\index{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}!I\+N\+P\+U\+T\+\_\+\+E\+N\+C\+O\+D\+I\+N\+G@{I\+N\+P\+U\+T\+\_\+\+E\+N\+C\+O\+D\+I\+N\+G}}
\index{I\+N\+P\+U\+T\+\_\+\+E\+N\+C\+O\+D\+I\+N\+G@{I\+N\+P\+U\+T\+\_\+\+E\+N\+C\+O\+D\+I\+N\+G}!Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}}
\subsubsection[{I\+N\+P\+U\+T\+\_\+\+E\+N\+C\+O\+D\+I\+N\+G}]{\setlength{\rightskip}{0pt plus 5cm}const Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Buffers\textbackslash{}\+Escpos\+Print\+Buffer\+::\+I\+N\+P\+U\+T\+\_\+\+E\+N\+C\+O\+D\+I\+N\+G = \char`\"{}U\+T\+F-\/8\char`\"{}}\label{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a116c94ddd8314eca65f1455492da29a9}
The input encoding of the buffer. \hypertarget{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a68bab97e0c46eb456eb1c426fc0bcb17}{}\index{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}!R\+E\+P\+L\+A\+C\+E\+M\+E\+N\+T\+\_\+\+C\+H\+A\+R@{R\+E\+P\+L\+A\+C\+E\+M\+E\+N\+T\+\_\+\+C\+H\+A\+R}}
\index{R\+E\+P\+L\+A\+C\+E\+M\+E\+N\+T\+\_\+\+C\+H\+A\+R@{R\+E\+P\+L\+A\+C\+E\+M\+E\+N\+T\+\_\+\+C\+H\+A\+R}!Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer@{Mike42\+::\+Escpos\+::\+Print\+Buffers\+::\+Escpos\+Print\+Buffer}}
\subsubsection[{R\+E\+P\+L\+A\+C\+E\+M\+E\+N\+T\+\_\+\+C\+H\+A\+R}]{\setlength{\rightskip}{0pt plus 5cm}const Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Buffers\textbackslash{}\+Escpos\+Print\+Buffer\+::\+R\+E\+P\+L\+A\+C\+E\+M\+E\+N\+T\+\_\+\+C\+H\+A\+R = \char`\"{}?\char`\"{}}\label{classMike42_1_1Escpos_1_1PrintBuffers_1_1EscposPrintBuffer_a68bab97e0c46eb456eb1c426fc0bcb17}
Un-\/recognised characters will be replaced with this. 

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
C\+:/www/aplusnet/incahellas.\+com/public\+\_\+html/lib/escpos-\/php-\/development/src/\+Mike42/\+Escpos/\+Print\+Buffers/Escpos\+Print\+Buffer.\+php\end{DoxyCompactItemize}
