\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector}{}\section{Mike42\textbackslash{}Escpos\textbackslash{}Print\+Connectors\textbackslash{}Windows\+Print\+Connector Class Reference}
\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector}\index{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector@{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector}}


Inheritance diagram for Mike42\textbackslash{}Escpos\textbackslash{}Print\+Connectors\textbackslash{}Windows\+Print\+Connector\+:
% FIG 0


Collaboration diagram for Mike42\textbackslash{}Escpos\textbackslash{}Print\+Connectors\textbackslash{}Windows\+Print\+Connector\+:
% FIG 1
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_ae2cb0273331fe5a2d85080906688d64c}{\+\_\+\+\_\+construct} (\$dest)
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a06a4f248b01a407e11a9e755f52c70ee}{\+\_\+\+\_\+destruct} ()
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a9915f2eb350f7a77dcf8ac6125697679}{finalize} ()
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a796b13b3ef8b59916fd40882cde6f877}{read} (\$len)
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a2c3aaa60624cf6f765287b70c459b986}{write} (\$data)
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
const \hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_abb5ab981ac239f661c36d0b50630c789}{P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+L\+I\+N\+U\+X} = 0
\item 
const \hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a5b3d540ff0c2c6f0a8fe3648c969f8e7}{P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+M\+A\+C} = 1
\item 
const \hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a6bcaccc40e6652e19b6fbdf4115c152c}{P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+W\+I\+N} = 2
\item 
const \hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a22de598d5a85aa5350def7f40c4a1a4b}{R\+E\+G\+E\+X\+\_\+\+L\+O\+C\+A\+L} = \char`\"{}/$^\wedge$(L\+P\+T\textbackslash{}d$\vert$C\+O\+M\textbackslash{}d)\$/\char`\"{}
\item 
const \hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a2f5fbbb9e18fa85efe222b4224708194}{R\+E\+G\+E\+X\+\_\+\+P\+R\+I\+N\+T\+E\+R\+N\+A\+M\+E} = \char`\"{}/$^\wedge$\mbox{[}\textbackslash{}d\textbackslash{}w-\/\mbox{]}+(\textbackslash{}s\mbox{[}\textbackslash{}d\textbackslash{}w-\/\mbox{]}+)$\ast$\$/\char`\"{}
\item 
const \hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_af8b25cd42bb48593f894e84b695a3d3f}{R\+E\+G\+E\+X\+\_\+\+S\+M\+B} = \char`\"{}/$^\wedge$smb\+:\textbackslash{}/\textbackslash{}/(\mbox{[}\textbackslash{}s\textbackslash{}d\textbackslash{}w-\/\mbox{]}+(\+:\mbox{[}\textbackslash{}s\textbackslash{}d\textbackslash{}w+-\/\mbox{]}+)?@)?(\mbox{[}\textbackslash{}d\textbackslash{}w-\/\mbox{]}+\textbackslash{}.)$\ast$\mbox{[}\textbackslash{}d\textbackslash{}w-\/\mbox{]}+\textbackslash{}/(\mbox{[}\textbackslash{}d\textbackslash{}w-\/\mbox{]}+\textbackslash{}/)?\mbox{[}\textbackslash{}d\textbackslash{}w-\/\mbox{]}+(\textbackslash{}s\mbox{[}\textbackslash{}d\textbackslash{}w-\/\mbox{]}+)$\ast$\$/\char`\"{}
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_aec6b185d0404c2934feba86360ae5e9c}{finalize\+Linux} (\$data)
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_ad22556075b72038bfe170f4e289a69f6}{finalize\+Mac} (\$data)
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a8be914166ca5414acb60f7f65cac31f9}{finalize\+Win} (\$data)
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_afe94cd28e4e0384e65bd38433dd0a617}{get\+Current\+Platform} ()
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_ad1f8037f9e4bacab28da118320300c29}{run\+Command} (\$command, \&\$output\+Str, \&\$error\+Str, \$input\+Str=null)
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a9f0834cf404f08af73ef09ba0375f738}{run\+Copy} (\$from, \$to)
\item 
\hyperlink{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a340f6c27b8d49ad3f760b389f6ca1b18}{run\+Write} (\$data, \$filename)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Connector for sending print jobs to
\begin{DoxyItemize}
\item local ports on windows (C\+O\+M1, L\+P\+T1, etc)
\item shared (S\+M\+B) printers from any platform (smb\+://server/foo) For U\+S\+B printers or other ports, the trick is to share the printer with a generic text driver, then connect to the shared printer locally. 
\end{DoxyItemize}

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_ae2cb0273331fe5a2d85080906688d64c}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!\+\_\+\+\_\+construct@{\+\_\+\+\_\+construct}}
\index{\+\_\+\+\_\+construct@{\+\_\+\+\_\+construct}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{\+\_\+\+\_\+construct}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::\+\_\+\+\_\+construct (
\begin{DoxyParamCaption}
\item[{}]{\$dest}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_ae2cb0273331fe5a2d85080906688d64c}

\begin{DoxyParams}[1]{Parameters}
string & {\em \$dest} & \\
\hline
\end{DoxyParams}

\begin{DoxyExceptions}{Exceptions}
{\em Bad\+Method\+Call\+Exception} & \\
\hline
\end{DoxyExceptions}
\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a06a4f248b01a407e11a9e755f52c70ee}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!\+\_\+\+\_\+destruct@{\+\_\+\+\_\+destruct}}
\index{\+\_\+\+\_\+destruct@{\+\_\+\+\_\+destruct}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{\+\_\+\+\_\+destruct}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::\+\_\+\+\_\+destruct (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a06a4f248b01a407e11a9e755f52c70ee}
Print connectors should cause a N\+O\+T\+I\+C\+E if they are deconstructed when they have not been finalized. 

Implements \hyperlink{interfaceMike42_1_1Escpos_1_1PrintConnectors_1_1PrintConnector_a55b7f305e73ba0d617a47eb2ab5b405a}{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Print\+Connector}.



\subsection{Member Function Documentation}
\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a9915f2eb350f7a77dcf8ac6125697679}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!finalize@{finalize}}
\index{finalize@{finalize}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{finalize}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::finalize (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a9915f2eb350f7a77dcf8ac6125697679}
Finish using this print connector (close file, socket, send accumulated output, etc). 

Implements \hyperlink{interfaceMike42_1_1Escpos_1_1PrintConnectors_1_1PrintConnector_a1cb3ab37b06121fcafdb9d2d0679baa2}{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Print\+Connector}.

\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_aec6b185d0404c2934feba86360ae5e9c}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!finalize\+Linux@{finalize\+Linux}}
\index{finalize\+Linux@{finalize\+Linux}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{finalize\+Linux}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::finalize\+Linux (
\begin{DoxyParamCaption}
\item[{}]{\$data}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_aec6b185d0404c2934feba86360ae5e9c}
Send job to printer -- platform-\/specific Linux code.


\begin{DoxyParams}[1]{Parameters}
string & {\em \$data} & Print data \\
\hline
\end{DoxyParams}

\begin{DoxyExceptions}{Exceptions}
{\em Exception} & \\
\hline
\end{DoxyExceptions}
\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_ad22556075b72038bfe170f4e289a69f6}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!finalize\+Mac@{finalize\+Mac}}
\index{finalize\+Mac@{finalize\+Mac}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{finalize\+Mac}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::finalize\+Mac (
\begin{DoxyParamCaption}
\item[{}]{\$data}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_ad22556075b72038bfe170f4e289a69f6}
Send job to printer -- platform-\/specific Mac code.


\begin{DoxyParams}[1]{Parameters}
string & {\em \$data} & Print data \\
\hline
\end{DoxyParams}

\begin{DoxyExceptions}{Exceptions}
{\em Exception} & \\
\hline
\end{DoxyExceptions}
\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a8be914166ca5414acb60f7f65cac31f9}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!finalize\+Win@{finalize\+Win}}
\index{finalize\+Win@{finalize\+Win}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{finalize\+Win}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::finalize\+Win (
\begin{DoxyParamCaption}
\item[{}]{\$data}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a8be914166ca5414acb60f7f65cac31f9}
Send data to printer -- platform-\/specific Windows code.


\begin{DoxyParams}[1]{Parameters}
string & {\em \$data} & \\
\hline
\end{DoxyParams}
\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_afe94cd28e4e0384e65bd38433dd0a617}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!get\+Current\+Platform@{get\+Current\+Platform}}
\index{get\+Current\+Platform@{get\+Current\+Platform}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{get\+Current\+Platform}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::get\+Current\+Platform (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_afe94cd28e4e0384e65bd38433dd0a617}
\begin{DoxyReturn}{Returns}
string Current platform. Separated out for testing purposes. 
\end{DoxyReturn}
\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a796b13b3ef8b59916fd40882cde6f877}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!read@{read}}
\index{read@{read}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{read}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::read (
\begin{DoxyParamCaption}
\item[{}]{\$len}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a796b13b3ef8b59916fd40882cde6f877}
Read data from the printer.


\begin{DoxyParams}[1]{Parameters}
string & {\em \$len} & Length of data to read. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Data read from the printer, or false where reading is not possible. 
\end{DoxyReturn}


Implements \hyperlink{interfaceMike42_1_1Escpos_1_1PrintConnectors_1_1PrintConnector_aec57437e3927972269f0803e9f86782e}{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Print\+Connector}.

\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_ad1f8037f9e4bacab28da118320300c29}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!run\+Command@{run\+Command}}
\index{run\+Command@{run\+Command}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{run\+Command}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::run\+Command (
\begin{DoxyParamCaption}
\item[{}]{\$command, }
\item[{\&}]{\$output\+Str, }
\item[{\&}]{\$error\+Str, }
\item[{}]{\$input\+Str = {\ttfamily null}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_ad1f8037f9e4bacab28da118320300c29}
Run a command, pass it data, and retrieve its return value, standard output, and standard error.


\begin{DoxyParams}[1]{Parameters}
string & {\em \$command} & the command to run. \\
\hline
string & {\em \$output\+Str} & variable to fill with standard output. \\
\hline
string & {\em \$error\+Str} & variable to fill with standard error. \\
\hline
string & {\em \$input\+Str} & text to pass to the command's standard input (optional). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
number 
\end{DoxyReturn}
\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a9f0834cf404f08af73ef09ba0375f738}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!run\+Copy@{run\+Copy}}
\index{run\+Copy@{run\+Copy}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{run\+Copy}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::run\+Copy (
\begin{DoxyParamCaption}
\item[{}]{\$from, }
\item[{}]{\$to}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a9f0834cf404f08af73ef09ba0375f738}
Copy a file. Separated out so that nothing is actually printed during test runs.


\begin{DoxyParams}[1]{Parameters}
string & {\em \$from} & Source file \\
\hline
string & {\em \$to} & Destination file \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
boolean True if copy was successful, false otherwise 
\end{DoxyReturn}
\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a340f6c27b8d49ad3f760b389f6ca1b18}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!run\+Write@{run\+Write}}
\index{run\+Write@{run\+Write}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{run\+Write}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::run\+Write (
\begin{DoxyParamCaption}
\item[{}]{\$data, }
\item[{}]{\$filename}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a340f6c27b8d49ad3f760b389f6ca1b18}
Write data to a file. Separated out so that nothing is actually printed during test runs.


\begin{DoxyParams}[1]{Parameters}
string & {\em \$data} & Data to print \\
\hline
string & {\em \$filename} & Destination file \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
boolean True if write was successful, false otherwise 
\end{DoxyReturn}
\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a2c3aaa60624cf6f765287b70c459b986}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!write@{write}}
\index{write@{write}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{write}]{\setlength{\rightskip}{0pt plus 5cm}Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::write (
\begin{DoxyParamCaption}
\item[{}]{\$data}
\end{DoxyParamCaption}
)}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a2c3aaa60624cf6f765287b70c459b986}
Write data to the print connector.


\begin{DoxyParams}[1]{Parameters}
string & {\em \$data} & The data to write \\
\hline
\end{DoxyParams}


Implements \hyperlink{interfaceMike42_1_1Escpos_1_1PrintConnectors_1_1PrintConnector_afcfd2d805f8de8eb9c9d2abfbed232ab}{Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Print\+Connector}.



\subsection{Member Data Documentation}
\hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_abb5ab981ac239f661c36d0b50630c789}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+L\+I\+N\+U\+X@{P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+L\+I\+N\+U\+X}}
\index{P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+L\+I\+N\+U\+X@{P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+L\+I\+N\+U\+X}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+L\+I\+N\+U\+X}]{\setlength{\rightskip}{0pt plus 5cm}const Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::\+P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+L\+I\+N\+U\+X = 0}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_abb5ab981ac239f661c36d0b50630c789}
Represents Linux \hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a5b3d540ff0c2c6f0a8fe3648c969f8e7}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+M\+A\+C@{P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+M\+A\+C}}
\index{P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+M\+A\+C@{P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+M\+A\+C}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+M\+A\+C}]{\setlength{\rightskip}{0pt plus 5cm}const Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::\+P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+M\+A\+C = 1}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a5b3d540ff0c2c6f0a8fe3648c969f8e7}
Represents Mac \hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a6bcaccc40e6652e19b6fbdf4115c152c}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+W\+I\+N@{P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+W\+I\+N}}
\index{P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+W\+I\+N@{P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+W\+I\+N}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+W\+I\+N}]{\setlength{\rightskip}{0pt plus 5cm}const Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::\+P\+L\+A\+T\+F\+O\+R\+M\+\_\+\+W\+I\+N = 2}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a6bcaccc40e6652e19b6fbdf4115c152c}
Represents Windows \hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a22de598d5a85aa5350def7f40c4a1a4b}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!R\+E\+G\+E\+X\+\_\+\+L\+O\+C\+A\+L@{R\+E\+G\+E\+X\+\_\+\+L\+O\+C\+A\+L}}
\index{R\+E\+G\+E\+X\+\_\+\+L\+O\+C\+A\+L@{R\+E\+G\+E\+X\+\_\+\+L\+O\+C\+A\+L}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{R\+E\+G\+E\+X\+\_\+\+L\+O\+C\+A\+L}]{\setlength{\rightskip}{0pt plus 5cm}const Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::\+R\+E\+G\+E\+X\+\_\+\+L\+O\+C\+A\+L = \char`\"{}/$^\wedge$(L\+P\+T\textbackslash{}d$\vert$C\+O\+M\textbackslash{}d)\$/\char`\"{}}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a22de598d5a85aa5350def7f40c4a1a4b}
Valid local ports. \hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a2f5fbbb9e18fa85efe222b4224708194}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!R\+E\+G\+E\+X\+\_\+\+P\+R\+I\+N\+T\+E\+R\+N\+A\+M\+E@{R\+E\+G\+E\+X\+\_\+\+P\+R\+I\+N\+T\+E\+R\+N\+A\+M\+E}}
\index{R\+E\+G\+E\+X\+\_\+\+P\+R\+I\+N\+T\+E\+R\+N\+A\+M\+E@{R\+E\+G\+E\+X\+\_\+\+P\+R\+I\+N\+T\+E\+R\+N\+A\+M\+E}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{R\+E\+G\+E\+X\+\_\+\+P\+R\+I\+N\+T\+E\+R\+N\+A\+M\+E}]{\setlength{\rightskip}{0pt plus 5cm}const Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::\+R\+E\+G\+E\+X\+\_\+\+P\+R\+I\+N\+T\+E\+R\+N\+A\+M\+E = \char`\"{}/$^\wedge$\mbox{[}\textbackslash{}d\textbackslash{}w-\/\mbox{]}+(\textbackslash{}s\mbox{[}\textbackslash{}d\textbackslash{}w-\/\mbox{]}+)$\ast$\$/\char`\"{}}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_a2f5fbbb9e18fa85efe222b4224708194}
Valid printer name. \hypertarget{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_af8b25cd42bb48593f894e84b695a3d3f}{}\index{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}!R\+E\+G\+E\+X\+\_\+\+S\+M\+B@{R\+E\+G\+E\+X\+\_\+\+S\+M\+B}}
\index{R\+E\+G\+E\+X\+\_\+\+S\+M\+B@{R\+E\+G\+E\+X\+\_\+\+S\+M\+B}!Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector@{Mike42\+::\+Escpos\+::\+Print\+Connectors\+::\+Windows\+Print\+Connector}}
\subsubsection[{R\+E\+G\+E\+X\+\_\+\+S\+M\+B}]{\setlength{\rightskip}{0pt plus 5cm}const Mike42\textbackslash{}\+Escpos\textbackslash{}\+Print\+Connectors\textbackslash{}\+Windows\+Print\+Connector\+::\+R\+E\+G\+E\+X\+\_\+\+S\+M\+B = \char`\"{}/$^\wedge$smb\+:\textbackslash{}/\textbackslash{}/(\mbox{[}\textbackslash{}s\textbackslash{}d\textbackslash{}w-\/\mbox{]}+(\+:\mbox{[}\textbackslash{}s\textbackslash{}d\textbackslash{}w+-\/\mbox{]}+)?@)?(\mbox{[}\textbackslash{}d\textbackslash{}w-\/\mbox{]}+\textbackslash{}.)$\ast$\mbox{[}\textbackslash{}d\textbackslash{}w-\/\mbox{]}+\textbackslash{}/(\mbox{[}\textbackslash{}d\textbackslash{}w-\/\mbox{]}+\textbackslash{}/)?\mbox{[}\textbackslash{}d\textbackslash{}w-\/\mbox{]}+(\textbackslash{}s\mbox{[}\textbackslash{}d\textbackslash{}w-\/\mbox{]}+)$\ast$\$/\char`\"{}}\label{classMike42_1_1Escpos_1_1PrintConnectors_1_1WindowsPrintConnector_af8b25cd42bb48593f894e84b695a3d3f}
Valid smb\+:// U\+R\+I containing hostname \& printer with optional user \& optional password only. 

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\+Connectors/Windows\+Print\+Connector.\+php\end{DoxyCompactItemize}
