\hypertarget{class_net_message}{}\doxysection{Net\+Message Class Reference}
\label{class_net_message}\index{NetMessage@{NetMessage}}


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



Inheritance diagram for Net\+Message\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=306pt]{class_net_message__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for Net\+Message\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=306pt]{class_net_message__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_net_message_a84c03329281bad21f5ad21819f0c2e96}{Net\+Message}} (int32\+\_\+t type, std\+::string strmsg)
\begin{DoxyCompactList}\small\item\em Constructor from values. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_net_message_a76a47b6d7881cba49bdda0292fdd3392}{Net\+Message}} (std\+::string strmsg)
\begin{DoxyCompactList}\small\item\em Constructor from serialized string. \end{DoxyCompactList}\item 
std\+::string \mbox{\hyperlink{class_net_message_a1c3e92b988862b96ec824bdc4c7ac3c1}{get\+\_\+message}} ()
\begin{DoxyCompactList}\small\item\em Get message content. \end{DoxyCompactList}\item 
int32\+\_\+t \mbox{\hyperlink{class_net_message_a8eb97bebdc338528831abcc64ed70286}{get\+\_\+type}} ()
\begin{DoxyCompactList}\small\item\em Get message type. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_net_message_a203f86ac6a30c77d86f4a3b90bedfe30}{set\+\_\+message}} (std\+::string smsg)
\begin{DoxyCompactList}\small\item\em Reinitialise message content. \end{DoxyCompactList}\item 
std\+::string \mbox{\hyperlink{class_net_message_a56b1c940492a51ec4e22f5e335e03536}{serialize}} (int32\+\_\+t i)
\begin{DoxyCompactList}\small\item\em Serialize message. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_net_message_a205f7e5a5dc54e8805cff16d6b0d8d0c}{deserialize}} (std\+::string serial)
\begin{DoxyCompactList}\small\item\em Deserialize string and set messages type and content. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
int32\+\_\+t \mbox{\hyperlink{class_net_message_ad934bc262dcdd990882365b76ef6e204}{m\+\_\+type}}
\item 
std\+::string \mbox{\hyperlink{class_net_message_aa46a46acbe26edbf674c17b9388748f1}{m\+\_\+message}}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}


Definition at line 5 of file message.\+hpp.



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_net_message_a84c03329281bad21f5ad21819f0c2e96}\label{class_net_message_a84c03329281bad21f5ad21819f0c2e96}} 
\index{NetMessage@{NetMessage}!NetMessage@{NetMessage}}
\index{NetMessage@{NetMessage}!NetMessage@{NetMessage}}
\doxysubsubsection{\texorpdfstring{NetMessage()}{NetMessage()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Net\+Message\+::\+Net\+Message (\begin{DoxyParamCaption}\item[{int32\+\_\+t}]{type,  }\item[{std\+::string}]{strmsg }\end{DoxyParamCaption})}



Constructor from values. 



Definition at line 4 of file message.\+cpp.

\mbox{\Hypertarget{class_net_message_a76a47b6d7881cba49bdda0292fdd3392}\label{class_net_message_a76a47b6d7881cba49bdda0292fdd3392}} 
\index{NetMessage@{NetMessage}!NetMessage@{NetMessage}}
\index{NetMessage@{NetMessage}!NetMessage@{NetMessage}}
\doxysubsubsection{\texorpdfstring{NetMessage()}{NetMessage()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Net\+Message\+::\+Net\+Message (\begin{DoxyParamCaption}\item[{std\+::string}]{strmsg }\end{DoxyParamCaption})}



Constructor from serialized string. 



Definition at line 10 of file message.\+cpp.



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_net_message_a205f7e5a5dc54e8805cff16d6b0d8d0c}\label{class_net_message_a205f7e5a5dc54e8805cff16d6b0d8d0c}} 
\index{NetMessage@{NetMessage}!deserialize@{deserialize}}
\index{deserialize@{deserialize}!NetMessage@{NetMessage}}
\doxysubsubsection{\texorpdfstring{deserialize()}{deserialize()}}
{\footnotesize\ttfamily void Net\+Message\+::deserialize (\begin{DoxyParamCaption}\item[{std\+::string}]{serial }\end{DoxyParamCaption})}



Deserialize string and set messages type and content. 



Definition at line 39 of file message.\+cpp.

\mbox{\Hypertarget{class_net_message_a1c3e92b988862b96ec824bdc4c7ac3c1}\label{class_net_message_a1c3e92b988862b96ec824bdc4c7ac3c1}} 
\index{NetMessage@{NetMessage}!get\_message@{get\_message}}
\index{get\_message@{get\_message}!NetMessage@{NetMessage}}
\doxysubsubsection{\texorpdfstring{get\_message()}{get\_message()}}
{\footnotesize\ttfamily std\+::string Net\+Message\+::get\+\_\+message (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Get message content. 

\begin{DoxyReturn}{Returns}
string text 
\end{DoxyReturn}


Definition at line 15 of file message.\+cpp.

\mbox{\Hypertarget{class_net_message_a8eb97bebdc338528831abcc64ed70286}\label{class_net_message_a8eb97bebdc338528831abcc64ed70286}} 
\index{NetMessage@{NetMessage}!get\_type@{get\_type}}
\index{get\_type@{get\_type}!NetMessage@{NetMessage}}
\doxysubsubsection{\texorpdfstring{get\_type()}{get\_type()}}
{\footnotesize\ttfamily int32\+\_\+t Net\+Message\+::get\+\_\+type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Get message type. 

\begin{DoxyReturn}{Returns}
int type 
\end{DoxyReturn}


Definition at line 20 of file message.\+cpp.

\mbox{\Hypertarget{class_net_message_a56b1c940492a51ec4e22f5e335e03536}\label{class_net_message_a56b1c940492a51ec4e22f5e335e03536}} 
\index{NetMessage@{NetMessage}!serialize@{serialize}}
\index{serialize@{serialize}!NetMessage@{NetMessage}}
\doxysubsubsection{\texorpdfstring{serialize()}{serialize()}}
{\footnotesize\ttfamily std\+::string Net\+Message\+::serialize (\begin{DoxyParamCaption}\item[{int32\+\_\+t}]{i }\end{DoxyParamCaption})}



Serialize message. 

\begin{DoxyReturn}{Returns}
serialized string 
\end{DoxyReturn}


Definition at line 31 of file message.\+cpp.

\mbox{\Hypertarget{class_net_message_a203f86ac6a30c77d86f4a3b90bedfe30}\label{class_net_message_a203f86ac6a30c77d86f4a3b90bedfe30}} 
\index{NetMessage@{NetMessage}!set\_message@{set\_message}}
\index{set\_message@{set\_message}!NetMessage@{NetMessage}}
\doxysubsubsection{\texorpdfstring{set\_message()}{set\_message()}}
{\footnotesize\ttfamily void Net\+Message\+::set\+\_\+message (\begin{DoxyParamCaption}\item[{std\+::string}]{smsg }\end{DoxyParamCaption})}



Reinitialise message content. 



Definition at line 25 of file message.\+cpp.



\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{class_net_message_aa46a46acbe26edbf674c17b9388748f1}\label{class_net_message_aa46a46acbe26edbf674c17b9388748f1}} 
\index{NetMessage@{NetMessage}!m\_message@{m\_message}}
\index{m\_message@{m\_message}!NetMessage@{NetMessage}}
\doxysubsubsection{\texorpdfstring{m\_message}{m\_message}}
{\footnotesize\ttfamily std\+::string Net\+Message\+::m\+\_\+message\hspace{0.3cm}{\ttfamily [private]}}



Definition at line 33 of file message.\+hpp.

\mbox{\Hypertarget{class_net_message_ad934bc262dcdd990882365b76ef6e204}\label{class_net_message_ad934bc262dcdd990882365b76ef6e204}} 
\index{NetMessage@{NetMessage}!m\_type@{m\_type}}
\index{m\_type@{m\_type}!NetMessage@{NetMessage}}
\doxysubsubsection{\texorpdfstring{m\_type}{m\_type}}
{\footnotesize\ttfamily int32\+\_\+t Net\+Message\+::m\+\_\+type\hspace{0.3cm}{\ttfamily [private]}}



Definition at line 32 of file message.\+hpp.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
sojotz/utils/net/\mbox{\hyperlink{message_8hpp}{message.\+hpp}}\item 
sojotz/utils/net/\mbox{\hyperlink{message_8cpp}{message.\+cpp}}\end{DoxyCompactItemize}
