\hypertarget{classcpphlib_1_1PPBITMANIPULATOR}{\section{cpphlib.\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R \-Class \-Reference}
\label{classcpphlib_1_1PPBITMANIPULATOR}\index{cpphlib.\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R@{cpphlib.\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}}
}


\-Bit and byte manipulator.  


\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
def \hyperlink{classcpphlib_1_1PPBITMANIPULATOR_a15f7bc49ba3e4cc12110773f5841169f}{\-\_\-\-\_\-init\-\_\-\-\_\-}
\item 
def \hyperlink{classcpphlib_1_1PPBITMANIPULATOR_a5f735af8ec6f4316cb92b15a5aa6a654}{int2binstr}
\begin{DoxyCompactList}\small\item\em \-Documentation for method. \end{DoxyCompactList}\item 
def \hyperlink{classcpphlib_1_1PPBITMANIPULATOR_adda4a5de91bd166d4a68bfa9094f7943}{binstr2int}
\begin{DoxyCompactList}\small\item\em \-Documentation for method. \end{DoxyCompactList}\item 
def \hyperlink{classcpphlib_1_1PPBITMANIPULATOR_a3b33ec47494a5eac0c6e1f00eec4e0bb}{binstr2hexstr}
\begin{DoxyCompactList}\small\item\em \-Documentation for method. \end{DoxyCompactList}\item 
def \hyperlink{classcpphlib_1_1PPBITMANIPULATOR_a1f593b8397c66401eb28dd7eeac115f6}{hexstr2binstr}
\begin{DoxyCompactList}\small\item\em \-Documentation for method. \end{DoxyCompactList}\item 
def \hyperlink{classcpphlib_1_1PPBITMANIPULATOR_a6ee1db09c1f056d3407298f836e818e8}{inversebinstr}
\begin{DoxyCompactList}\small\item\em \-Documentation for method. \end{DoxyCompactList}\item 
def \hyperlink{classcpphlib_1_1PPBITMANIPULATOR_ad9161752a063986b140659bb5287ceb3}{inverse1}
\begin{DoxyCompactList}\small\item\em \-Documentation for method. \end{DoxyCompactList}\item 
def \hyperlink{classcpphlib_1_1PPBITMANIPULATOR_a75d38520aec13a2ceba7aa929c087746}{inverse}
\begin{DoxyCompactList}\small\item\em \-Documentation for method. \end{DoxyCompactList}\item 
def \hyperlink{classcpphlib_1_1PPBITMANIPULATOR_ac200a8dc744df7559707162e5e1e0bd8}{getbitstate}
\begin{DoxyCompactList}\small\item\em \-Documentation for method. \end{DoxyCompactList}\item 
def \hyperlink{classcpphlib_1_1PPBITMANIPULATOR_a3a1b0f0e240532f8bea64f66f643debd}{setbitstate}
\begin{DoxyCompactList}\small\item\em \-Documentation for method. \end{DoxyCompactList}\item 
def \hyperlink{classcpphlib_1_1PPBITMANIPULATOR_a2dd3e95f61275c2b901b95e96a1d9938}{mask}
\begin{DoxyCompactList}\small\item\em \-Documentation for method. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Bit and byte manipulator. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-This class contains all methods needed for manipulating bits and bytes, and converting to different formats. 

\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classcpphlib_1_1PPBITMANIPULATOR_a15f7bc49ba3e4cc12110773f5841169f}{\index{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}!\-\_\-\-\_\-init\-\_\-\-\_\-@{\-\_\-\-\_\-init\-\_\-\-\_\-}}
\index{\-\_\-\-\_\-init\-\_\-\-\_\-@{\-\_\-\-\_\-init\-\_\-\-\_\-}!cpphlib::PPBITMANIPULATOR@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}}
\subsubsection[{\-\_\-\-\_\-init\-\_\-\-\_\-}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R.\-\_\-\-\_\-init\-\_\-\-\_\-} (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPBITMANIPULATOR_a15f7bc49ba3e4cc12110773f5841169f}
\begin{DoxyVerb}Short description: Constructs PPBITMANIPULATOR class\end{DoxyVerb}
 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{classcpphlib_1_1PPBITMANIPULATOR_a3b33ec47494a5eac0c6e1f00eec4e0bb}{\index{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}!binstr2hexstr@{binstr2hexstr}}
\index{binstr2hexstr@{binstr2hexstr}!cpphlib::PPBITMANIPULATOR@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}}
\subsubsection[{binstr2hexstr}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R.\-binstr2hexstr} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{binstr}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPBITMANIPULATOR_a3b33ec47494a5eac0c6e1f00eec4e0bb}


\-Documentation for method. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-It converts defined binary string to hexadecimal string 
\begin{DoxyParams}{\-Parameters}
{\em binstr} & \-The binary string to be converted \par
\par
 \-Return value is a byte sized two characters long string. \par
\par
 \begin{DoxyVerb}Short description: It converts defined binary string to hexadecimal string\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}
\hypertarget{classcpphlib_1_1PPBITMANIPULATOR_adda4a5de91bd166d4a68bfa9094f7943}{\index{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}!binstr2int@{binstr2int}}
\index{binstr2int@{binstr2int}!cpphlib::PPBITMANIPULATOR@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}}
\subsubsection[{binstr2int}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R.\-binstr2int} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{binstr}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPBITMANIPULATOR_adda4a5de91bd166d4a68bfa9094f7943}


\-Documentation for method. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-It converts defined binary string to integer number. 
\begin{DoxyParams}{\-Parameters}
{\em binstr} & \-The binary string to be converted \par
\par
 \begin{DoxyVerb}Short description: It converts defined binary string to integer\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}
\hypertarget{classcpphlib_1_1PPBITMANIPULATOR_ac200a8dc744df7559707162e5e1e0bd8}{\index{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}!getbitstate@{getbitstate}}
\index{getbitstate@{getbitstate}!cpphlib::PPBITMANIPULATOR@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}}
\subsubsection[{getbitstate}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R.\-getbitstate} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{input, }
\item[{}]{position, }
\item[{}]{output = {\ttfamily \char`\"{}\char`\"{}}}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPBITMANIPULATOR_ac200a8dc744df7559707162e5e1e0bd8}


\-Documentation for method. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-It returns a decimal, hexadecimal, or hexastring formed, byte-\/sized number's bit's value, based on the bitposition, in the required format. \-If the output format is not defined, result is string. 
\begin{DoxyParams}{\-Parameters}
{\em input} & \-The defined, byte-\/sized number \\
\hline
{\em position} & \-The position of the bit, which can be 0..7 \\
\hline
{\em output} & \-The output fomat. \-It can be \char`\"{}int\char`\"{}, or \char`\"{}str\char`\"{} \par
\par
 \begin{DoxyVerb}Short description: It returns a number's bit's value, based on the bit position\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}
\hypertarget{classcpphlib_1_1PPBITMANIPULATOR_a1f593b8397c66401eb28dd7eeac115f6}{\index{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}!hexstr2binstr@{hexstr2binstr}}
\index{hexstr2binstr@{hexstr2binstr}!cpphlib::PPBITMANIPULATOR@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}}
\subsubsection[{hexstr2binstr}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R.\-hexstr2binstr} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{str}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPBITMANIPULATOR_a1f593b8397c66401eb28dd7eeac115f6}


\-Documentation for method. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-It converts hexadecimal string to binary string 
\begin{DoxyParams}{\-Parameters}
{\em binstr} & \-The hexadecimal string to be converted \par
\par
 \-Return value is an eight characters long string. \par
\par
 \begin{DoxyVerb}Short description: It converts hexadecimal string to binary string\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}
\hypertarget{classcpphlib_1_1PPBITMANIPULATOR_a5f735af8ec6f4316cb92b15a5aa6a654}{\index{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}!int2binstr@{int2binstr}}
\index{int2binstr@{int2binstr}!cpphlib::PPBITMANIPULATOR@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}}
\subsubsection[{int2binstr}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R.\-int2binstr} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{n, }
\item[{}]{length}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPBITMANIPULATOR_a5f735af8ec6f4316cb92b15a5aa6a654}


\-Documentation for method. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-Converts defined number to binary string with defined length 
\begin{DoxyParams}{\-Parameters}
{\em n} & \-The number to be converted, entered in decimal or hexadecimal form \\
\hline
{\em lenght} & \-Length of the binary string \par
\par
 \begin{DoxyVerb}Short description: Converts defined number to binary string\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}
\hypertarget{classcpphlib_1_1PPBITMANIPULATOR_a75d38520aec13a2ceba7aa929c087746}{\index{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}!inverse@{inverse}}
\index{inverse@{inverse}!cpphlib::PPBITMANIPULATOR@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}}
\subsubsection[{inverse}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R.\-inverse} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{invertable, }
\item[{}]{output = {\ttfamily \char`\"{}\char`\"{}}}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPBITMANIPULATOR_a75d38520aec13a2ceba7aa929c087746}


\-Documentation for method. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-It inverts the defined byte-\/sized number, and gives the result in a required output format. \-If the output format is not defined, then the result is string. 
\begin{DoxyParams}{\-Parameters}
{\em invertable} & \-The defined number. \-The number can be defined in three forms, like {\itshape 255\/}, {\itshape 0x\-F\-F\/}, or {\itshape \char`\"{}\-F\-F\char`\"{}\/} \\
\hline
{\em output} & \-The output format. \-Its value can be \char`\"{}int\char`\"{}, or \char`\"{}str\char`\"{}. \par
\par
 \begin{DoxyVerb}Short description: It inverts the defined byte-sized number\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}
\hypertarget{classcpphlib_1_1PPBITMANIPULATOR_ad9161752a063986b140659bb5287ceb3}{\index{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}!inverse1@{inverse1}}
\index{inverse1@{inverse1}!cpphlib::PPBITMANIPULATOR@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}}
\subsubsection[{inverse1}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R.\-inverse1} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{invertable}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPBITMANIPULATOR_ad9161752a063986b140659bb5287ceb3}


\-Documentation for method. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-Inmediate method. \par
\par
 \hypertarget{classcpphlib_1_1PPBITMANIPULATOR_a6ee1db09c1f056d3407298f836e818e8}{\index{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}!inversebinstr@{inversebinstr}}
\index{inversebinstr@{inversebinstr}!cpphlib::PPBITMANIPULATOR@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}}
\subsubsection[{inversebinstr}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R.\-inversebinstr} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{binstr}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPBITMANIPULATOR_a6ee1db09c1f056d3407298f836e818e8}


\-Documentation for method. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-It inverts the elements of the binary string bit by bit. 
\begin{DoxyParams}{\-Parameters}
{\em binstr} & \-The binary string to be invertred \par
\par
 \begin{DoxyVerb}Short description: It inverts the elements of the binary string\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}
\hypertarget{classcpphlib_1_1PPBITMANIPULATOR_a2dd3e95f61275c2b901b95e96a1d9938}{\index{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}!mask@{mask}}
\index{mask@{mask}!cpphlib::PPBITMANIPULATOR@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}}
\subsubsection[{mask}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R.\-mask} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{input, }
\item[{}]{mask, }
\item[{}]{output = {\ttfamily \char`\"{}\char`\"{}}}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPBITMANIPULATOR_a2dd3e95f61275c2b901b95e96a1d9938}


\-Documentation for method. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-Masking a decimal, hexadecimal, or hexastring formed byte-\/sized number with a decimal, hexadecimal, or hexastring formed byte-\/sized mask, and provides the result in the required output format. \-If output format is not defined, result is string. 
\begin{DoxyParams}{\-Parameters}
{\em input} & \-The defined byte-\/sized number \\
\hline
{\em mask} & \-The defined byte-\/sized mask \\
\hline
{\em output} & \-The output format. \-It can be \char`\"{}int\char`\"{}, or \char`\"{}str\char`\"{} \par
\par
 \begin{DoxyVerb}Short description: Masking a number with a mask\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}
\hypertarget{classcpphlib_1_1PPBITMANIPULATOR_a3a1b0f0e240532f8bea64f66f643debd}{\index{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}!setbitstate@{setbitstate}}
\index{setbitstate@{setbitstate}!cpphlib::PPBITMANIPULATOR@{cpphlib\-::\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R}}
\subsubsection[{setbitstate}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf cpphlib.\-P\-P\-B\-I\-T\-M\-A\-N\-I\-P\-U\-L\-A\-T\-O\-R.\-setbitstate} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{input, }
\item[{}]{bitstate, }
\item[{}]{position, }
\item[{}]{output = {\ttfamily \char`\"{}\char`\"{}}}
\end{DoxyParamCaption}
)}}\label{classcpphlib_1_1PPBITMANIPULATOR_a3a1b0f0e240532f8bea64f66f643debd}


\-Documentation for method. 

{\bfseries } {\itshape \/} {\bfseries {\itshape \/}} \-It sets the value of a hexadecimal, or hexastring fomatted, byte-\/sized number's bit's value based on bit position. \-It returns the modified byte in a required format. \-If the format is not defined, result is string. 
\begin{DoxyParams}{\-Parameters}
{\em input} & \-The defined byte-\/sized number \\
\hline
{\em bitstate} & \-The state of the bit, to set to, binary (fx. 0 or 1), and allowed in string format as well (fx. \char`\"{}0\char`\"{} or \char`\"{}1\char`\"{}) \\
\hline
{\em position} & \-The bit position, which can be 0..7 \\
\hline
{\em output} & \-The output format. \-Its value can be \char`\"{}int\char`\"{}, like integer, or \char`\"{}str\char`\"{}, like hexa string, or \char`\"{}pic\char`\"{} like bitmap string. \par
\par
 \begin{DoxyVerb}Short description: It sets the number's bit's value based on bit position\end{DoxyVerb}
 \\
\hline
\end{DoxyParams}


\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
cpphlib.\-py\end{DoxyCompactItemize}
