\hypertarget{classyLib_1_1yJson}{}\doxysection{y\+Lib\+::y\+Json Class Reference}
\label{classyLib_1_1yJson}\index{yLib::yJson@{yLib::yJson}}


This is a tool to parse the json file.  




{\ttfamily \#include $<$yjson.\+hpp$>$}

Inheritance diagram for y\+Lib\+::y\+Json\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classyLib_1_1yJson}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classyLib_1_1yJson_aa990ccf45d13cb76ace8e563a0115bcc}{y\+Json}} () noexcept
\begin{DoxyCompactList}\small\item\em default constructor \end{DoxyCompactList}\item 
\mbox{\hyperlink{classyLib_1_1yJson_ac49ffef83206df6a9d732ed8150821a4}{$\sim$y\+Json}} ()
\begin{DoxyCompactList}\small\item\em default destructor \end{DoxyCompactList}\item 
int8\+\_\+t \mbox{\hyperlink{classyLib_1_1yJson_abd0ebb650d0fc133a23d48ba31d97108}{Read\+File}} (const \mbox{\hyperlink{src_2CMakeLists_8txt_a296644e9ff1d0a602b4703f361406374}{std\+::string}} \&file\+\_\+path\+\_\+)
\begin{DoxyCompactList}\small\item\em parse json object from json-\/file. \end{DoxyCompactList}\item 
int8\+\_\+t \mbox{\hyperlink{classyLib_1_1yJson_afe8d57dab9bf85e3cac905ca4bd6defe}{Read\+Memory}} (const int8\+\_\+t $\ast$addr\+\_\+, uint64\+\_\+t size\+\_\+)
\begin{DoxyCompactList}\small\item\em parse json object from memory. \end{DoxyCompactList}\item 
int8\+\_\+t \mbox{\hyperlink{classyLib_1_1yJson_ad1198289ca2478c764e29ca2972e116e}{Write\+File}} (const \mbox{\hyperlink{src_2CMakeLists_8txt_a296644e9ff1d0a602b4703f361406374}{std\+::string}} \&file\+\_\+path\+\_\+)
\begin{DoxyCompactList}\small\item\em write the str of a json object to a json-\/file. \end{DoxyCompactList}\item 
int8\+\_\+t \mbox{\hyperlink{classyLib_1_1yJson_a048698d0d9235abac10ecebd71c44b71}{Write\+Memory}} (int8\+\_\+t $\ast$addr\+\_\+, uint64\+\_\+t max\+\_\+size\+\_\+)
\begin{DoxyCompactList}\small\item\em write the str of a json object to memory. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classyLib_1_1yJsonValue}{y\+Json\+Value}} \mbox{\hyperlink{classyLib_1_1yJson_a7c15f2467ac12c1c9e81afd1d0de6819}{Get\+Root\+Object}} (void)
\begin{DoxyCompactList}\small\item\em get the root-\/obj of json to be read. \end{DoxyCompactList}\item 
int8\+\_\+t \mbox{\hyperlink{classyLib_1_1yJson_ade7da32968ec487619473eb8edb5502a}{Set\+Root\+Object}} (const \mbox{\hyperlink{classyLib_1_1yJsonValue}{y\+Json\+Value}} \&value\+\_\+)
\begin{DoxyCompactList}\small\item\em set the root-\/obj of json to be written. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
void $\ast$ \mbox{\hyperlink{classyLib_1_1yJson_aecffeaac9b19ce7587efbe69f22a7896}{json\+\_\+reader}} = nullptr
\item 
void $\ast$ \mbox{\hyperlink{classyLib_1_1yJson_adb744bcf3e36ee6c687bb69851815088}{json\+\_\+reader\+\_\+builder}} = nullptr
\item 
void $\ast$ \mbox{\hyperlink{classyLib_1_1yJson_a1ff81f089752d0e05eb6fcc8d90391d8}{json\+\_\+writer}} = nullptr
\item 
void $\ast$ \mbox{\hyperlink{classyLib_1_1yJson_aff26cee4fcb5fab8b3b0c5041f05036e}{json\+\_\+writer\+\_\+builder}} = nullptr
\item 
void $\ast$ \mbox{\hyperlink{classyLib_1_1yJson_a8426697f45832a5962babd0a0813a933}{json\+\_\+root\+\_\+value}} = nullptr
\end{DoxyCompactItemize}
\doxysubsection*{Additional Inherited Members}


\doxysubsection{Detailed Description}
This is a tool to parse the json file. 

\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classyLib_1_1yJson_aa990ccf45d13cb76ace8e563a0115bcc}\label{classyLib_1_1yJson_aa990ccf45d13cb76ace8e563a0115bcc}} 
\index{yLib::yJson@{yLib::yJson}!yJson@{yJson}}
\index{yJson@{yJson}!yLib::yJson@{yLib::yJson}}
\doxysubsubsection{\texorpdfstring{yJson()}{yJson()}}
{\footnotesize\ttfamily y\+Lib\+::y\+Json\+::y\+Json (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [noexcept]}}



default constructor 


\begin{DoxyParams}{Parameters}
{\em } & \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classyLib_1_1yJson_ac49ffef83206df6a9d732ed8150821a4}\label{classyLib_1_1yJson_ac49ffef83206df6a9d732ed8150821a4}} 
\index{yLib::yJson@{yLib::yJson}!````~yJson@{$\sim$yJson}}
\index{````~yJson@{$\sim$yJson}!yLib::yJson@{yLib::yJson}}
\doxysubsubsection{\texorpdfstring{$\sim$yJson()}{~yJson()}}
{\footnotesize\ttfamily y\+Lib\+::y\+Json\+::$\sim$y\+Json (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



default destructor 


\begin{DoxyParams}{Parameters}
{\em } & \\
\hline
\end{DoxyParams}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classyLib_1_1yJson_a7c15f2467ac12c1c9e81afd1d0de6819}\label{classyLib_1_1yJson_a7c15f2467ac12c1c9e81afd1d0de6819}} 
\index{yLib::yJson@{yLib::yJson}!GetRootObject@{GetRootObject}}
\index{GetRootObject@{GetRootObject}!yLib::yJson@{yLib::yJson}}
\doxysubsubsection{\texorpdfstring{GetRootObject()}{GetRootObject()}}
{\footnotesize\ttfamily \mbox{\hyperlink{classyLib_1_1yJsonValue}{y\+Json\+Value}} y\+Lib\+::y\+Json\+::\+Get\+Root\+Object (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



get the root-\/obj of json to be read. 

\begin{DoxyReturn}{Returns}
the obj of \mbox{\hyperlink{classyLib_1_1yJsonValue}{y\+Json\+Value}} 
\end{DoxyReturn}
\begin{DoxyWarning}{Warning}

\end{DoxyWarning}
\mbox{\Hypertarget{classyLib_1_1yJson_abd0ebb650d0fc133a23d48ba31d97108}\label{classyLib_1_1yJson_abd0ebb650d0fc133a23d48ba31d97108}} 
\index{yLib::yJson@{yLib::yJson}!ReadFile@{ReadFile}}
\index{ReadFile@{ReadFile}!yLib::yJson@{yLib::yJson}}
\doxysubsubsection{\texorpdfstring{ReadFile()}{ReadFile()}}
{\footnotesize\ttfamily int8\+\_\+t y\+Lib\+::y\+Json\+::\+Read\+File (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{src_2CMakeLists_8txt_a296644e9ff1d0a602b4703f361406374}{std\+::string}} \&}]{file\+\_\+path\+\_\+ }\end{DoxyParamCaption})}



parse json object from json-\/file. 


\begin{DoxyParams}{Parameters}
{\em file\+\_\+path\+\_\+} & the json-\/file. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
this op\textquotesingle{}s status. 
\end{DoxyReturn}

\begin{DoxyRetVals}{Return values}
{\em 0} & ok. \\
\hline
{\em -\/1} & error. \\
\hline
\end{DoxyRetVals}
\begin{DoxyWarning}{Warning}

\end{DoxyWarning}
\mbox{\Hypertarget{classyLib_1_1yJson_afe8d57dab9bf85e3cac905ca4bd6defe}\label{classyLib_1_1yJson_afe8d57dab9bf85e3cac905ca4bd6defe}} 
\index{yLib::yJson@{yLib::yJson}!ReadMemory@{ReadMemory}}
\index{ReadMemory@{ReadMemory}!yLib::yJson@{yLib::yJson}}
\doxysubsubsection{\texorpdfstring{ReadMemory()}{ReadMemory()}}
{\footnotesize\ttfamily int8\+\_\+t y\+Lib\+::y\+Json\+::\+Read\+Memory (\begin{DoxyParamCaption}\item[{const int8\+\_\+t $\ast$}]{addr\+\_\+,  }\item[{uint64\+\_\+t}]{size\+\_\+ }\end{DoxyParamCaption})}



parse json object from memory. 


\begin{DoxyParams}{Parameters}
{\em addr\+\_\+} & the mem\textquotesingle{}s addr to be parsed. \\
\hline
{\em size\+\_\+} & the mem\textquotesingle{}s size to be parsed. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
this op\textquotesingle{}s status. 
\end{DoxyReturn}

\begin{DoxyRetVals}{Return values}
{\em 0} & ok. \\
\hline
{\em -\/1} & error. \\
\hline
\end{DoxyRetVals}
\begin{DoxyWarning}{Warning}

\end{DoxyWarning}
\mbox{\Hypertarget{classyLib_1_1yJson_ade7da32968ec487619473eb8edb5502a}\label{classyLib_1_1yJson_ade7da32968ec487619473eb8edb5502a}} 
\index{yLib::yJson@{yLib::yJson}!SetRootObject@{SetRootObject}}
\index{SetRootObject@{SetRootObject}!yLib::yJson@{yLib::yJson}}
\doxysubsubsection{\texorpdfstring{SetRootObject()}{SetRootObject()}}
{\footnotesize\ttfamily int8\+\_\+t y\+Lib\+::y\+Json\+::\+Set\+Root\+Object (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classyLib_1_1yJsonValue}{y\+Json\+Value}} \&}]{val\+\_\+ }\end{DoxyParamCaption})}



set the root-\/obj of json to be written. 


\begin{DoxyParams}{Parameters}
{\em value\+\_\+} & the root-\/obj \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
this op\textquotesingle{}s status. 
\end{DoxyReturn}

\begin{DoxyRetVals}{Return values}
{\em 0} & ok. \\
\hline
{\em -\/1} & error. \\
\hline
\end{DoxyRetVals}
\begin{DoxyWarning}{Warning}

\end{DoxyWarning}
\mbox{\Hypertarget{classyLib_1_1yJson_ad1198289ca2478c764e29ca2972e116e}\label{classyLib_1_1yJson_ad1198289ca2478c764e29ca2972e116e}} 
\index{yLib::yJson@{yLib::yJson}!WriteFile@{WriteFile}}
\index{WriteFile@{WriteFile}!yLib::yJson@{yLib::yJson}}
\doxysubsubsection{\texorpdfstring{WriteFile()}{WriteFile()}}
{\footnotesize\ttfamily int8\+\_\+t y\+Lib\+::y\+Json\+::\+Write\+File (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{src_2CMakeLists_8txt_a296644e9ff1d0a602b4703f361406374}{std\+::string}} \&}]{file\+\_\+path\+\_\+ }\end{DoxyParamCaption})}



write the str of a json object to a json-\/file. 


\begin{DoxyParams}{Parameters}
{\em file\+\_\+path\+\_\+} & the json-\/file. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
this op\textquotesingle{}s status. 
\end{DoxyReturn}

\begin{DoxyRetVals}{Return values}
{\em 0} & ok. \\
\hline
{\em -\/1} & error. \\
\hline
\end{DoxyRetVals}
\begin{DoxyWarning}{Warning}

\end{DoxyWarning}
\mbox{\Hypertarget{classyLib_1_1yJson_a048698d0d9235abac10ecebd71c44b71}\label{classyLib_1_1yJson_a048698d0d9235abac10ecebd71c44b71}} 
\index{yLib::yJson@{yLib::yJson}!WriteMemory@{WriteMemory}}
\index{WriteMemory@{WriteMemory}!yLib::yJson@{yLib::yJson}}
\doxysubsubsection{\texorpdfstring{WriteMemory()}{WriteMemory()}}
{\footnotesize\ttfamily int8\+\_\+t y\+Lib\+::y\+Json\+::\+Write\+Memory (\begin{DoxyParamCaption}\item[{int8\+\_\+t $\ast$}]{addr\+\_\+,  }\item[{uint64\+\_\+t}]{max\+\_\+size\+\_\+ }\end{DoxyParamCaption})}



write the str of a json object to memory. 


\begin{DoxyParams}{Parameters}
{\em addr\+\_\+} & the mem\textquotesingle{}s addr to be written. \\
\hline
{\em max\+\_\+size\+\_\+} & the max mem\textquotesingle{}s size to be written. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
this op\textquotesingle{}s status. 
\end{DoxyReturn}

\begin{DoxyRetVals}{Return values}
{\em 0} & ok. \\
\hline
{\em -\/1} & error. \\
\hline
\end{DoxyRetVals}
\begin{DoxyWarning}{Warning}

\end{DoxyWarning}


\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{classyLib_1_1yJson_aecffeaac9b19ce7587efbe69f22a7896}\label{classyLib_1_1yJson_aecffeaac9b19ce7587efbe69f22a7896}} 
\index{yLib::yJson@{yLib::yJson}!json\_reader@{json\_reader}}
\index{json\_reader@{json\_reader}!yLib::yJson@{yLib::yJson}}
\doxysubsubsection{\texorpdfstring{json\_reader}{json\_reader}}
{\footnotesize\ttfamily void$\ast$ y\+Lib\+::y\+Json\+::json\+\_\+reader = nullptr\hspace{0.3cm}{\ttfamily [private]}}

\mbox{\Hypertarget{classyLib_1_1yJson_adb744bcf3e36ee6c687bb69851815088}\label{classyLib_1_1yJson_adb744bcf3e36ee6c687bb69851815088}} 
\index{yLib::yJson@{yLib::yJson}!json\_reader\_builder@{json\_reader\_builder}}
\index{json\_reader\_builder@{json\_reader\_builder}!yLib::yJson@{yLib::yJson}}
\doxysubsubsection{\texorpdfstring{json\_reader\_builder}{json\_reader\_builder}}
{\footnotesize\ttfamily void$\ast$ y\+Lib\+::y\+Json\+::json\+\_\+reader\+\_\+builder = nullptr\hspace{0.3cm}{\ttfamily [private]}}

\mbox{\Hypertarget{classyLib_1_1yJson_a8426697f45832a5962babd0a0813a933}\label{classyLib_1_1yJson_a8426697f45832a5962babd0a0813a933}} 
\index{yLib::yJson@{yLib::yJson}!json\_root\_value@{json\_root\_value}}
\index{json\_root\_value@{json\_root\_value}!yLib::yJson@{yLib::yJson}}
\doxysubsubsection{\texorpdfstring{json\_root\_value}{json\_root\_value}}
{\footnotesize\ttfamily void$\ast$ y\+Lib\+::y\+Json\+::json\+\_\+root\+\_\+value = nullptr\hspace{0.3cm}{\ttfamily [private]}}

\mbox{\Hypertarget{classyLib_1_1yJson_a1ff81f089752d0e05eb6fcc8d90391d8}\label{classyLib_1_1yJson_a1ff81f089752d0e05eb6fcc8d90391d8}} 
\index{yLib::yJson@{yLib::yJson}!json\_writer@{json\_writer}}
\index{json\_writer@{json\_writer}!yLib::yJson@{yLib::yJson}}
\doxysubsubsection{\texorpdfstring{json\_writer}{json\_writer}}
{\footnotesize\ttfamily void$\ast$ y\+Lib\+::y\+Json\+::json\+\_\+writer = nullptr\hspace{0.3cm}{\ttfamily [private]}}

\mbox{\Hypertarget{classyLib_1_1yJson_aff26cee4fcb5fab8b3b0c5041f05036e}\label{classyLib_1_1yJson_aff26cee4fcb5fab8b3b0c5041f05036e}} 
\index{yLib::yJson@{yLib::yJson}!json\_writer\_builder@{json\_writer\_builder}}
\index{json\_writer\_builder@{json\_writer\_builder}!yLib::yJson@{yLib::yJson}}
\doxysubsubsection{\texorpdfstring{json\_writer\_builder}{json\_writer\_builder}}
{\footnotesize\ttfamily void$\ast$ y\+Lib\+::y\+Json\+::json\+\_\+writer\+\_\+builder = nullptr\hspace{0.3cm}{\ttfamily [private]}}



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
/home/sky/y\+Lib/include/utility/\mbox{\hyperlink{yjson_8hpp}{yjson.\+hpp}}\item 
/home/sky/y\+Lib/src/utility/\mbox{\hyperlink{yjson_8cpp}{yjson.\+cpp}}\end{DoxyCompactItemize}
