\section{TPProto::Add\-Category Class Reference}
\label{classTPProto_1_1AddCategory}\index{TPProto::AddCategory@{TPProto::AddCategory}}
A \doxyref{Frame}{p.}{classTPProto_1_1Frame} to send \doxyref{Add\-Category}{p.}{classTPProto_1_1AddCategory} frame to the server.  


{\tt \#include $<$addcategory.h$>$}

Inheritance diagram for TPProto::Add\-Category::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classTPProto_1_1AddCategory}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Add\-Category} ()\label{classTPProto_1_1AddCategory_57822a14aa236aefe0ce22cba05f6334}

\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item 
virtual {\bf $\sim$Add\-Category} ()\label{classTPProto_1_1AddCategory_b83442d2775061c69f51b9461fcea01a}

\begin{CompactList}\small\item\em Required virtual destructor. \item\end{CompactList}\item 
void {\bf pack\-Buffer} ({\bf Buffer} $\ast$buf)
\begin{CompactList}\small\item\em Pack into a \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}. \item\end{CompactList}\item 
bool {\bf unpack\-Buffer} ({\bf Buffer} $\ast$buf)
\begin{CompactList}\small\item\em Unpack from a \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}, fails. Unpacks the \doxyref{Add\-Category}{p.}{classTPProto_1_1AddCategory} frame from the buffer. Since these frames are always sent to the server, this method always fails and returns false. \item\end{CompactList}\item 
void {\bf set\-Name} (const std::string \&n)
\begin{CompactList}\small\item\em Sets the name of this \doxyref{Category}{p.}{classTPProto_1_1Category}. \item\end{CompactList}\item 
void {\bf set\-Description} (const std::string \&d)
\begin{CompactList}\small\item\em Sets the description of this \doxyref{Category}{p.}{classTPProto_1_1Category}. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
A \doxyref{Frame}{p.}{classTPProto_1_1Frame} to send \doxyref{Add\-Category}{p.}{classTPProto_1_1AddCategory} frame to the server. 



\subsection{Member Function Documentation}
\index{TPProto::AddCategory@{TPProto::Add\-Category}!packBuffer@{packBuffer}}
\index{packBuffer@{packBuffer}!TPProto::AddCategory@{TPProto::Add\-Category}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Add\-Category::pack\-Buffer ({\bf Buffer} $\ast$ {\em buf})\hspace{0.3cm}{\tt  [virtual]}}\label{classTPProto_1_1AddCategory_6de24eb8d65b66fe82cc19c87160ac32}


Pack into a \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}. 

Packs this \doxyref{Add\-Category}{p.}{classTPProto_1_1AddCategory} frame into the buffer. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em buf}]\doxyref{Buffer}{p.}{classTPProto_1_1Buffer} to pack into. \end{description}
\end{Desc}


Implements {\bf TPProto::Frame} \doxyref{}{p.}{classTPProto_1_1Frame_67b50ee76e90385e56f04202ce1da67e}.\index{TPProto::AddCategory@{TPProto::Add\-Category}!unpackBuffer@{unpackBuffer}}
\index{unpackBuffer@{unpackBuffer}!TPProto::AddCategory@{TPProto::Add\-Category}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool TPProto::Add\-Category::unpack\-Buffer ({\bf Buffer} $\ast$ {\em buf})\hspace{0.3cm}{\tt  [virtual]}}\label{classTPProto_1_1AddCategory_d60a348f0e5f9b23efbec533a38f19b9}


Unpack from a \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}, fails. Unpacks the \doxyref{Add\-Category}{p.}{classTPProto_1_1AddCategory} frame from the buffer. Since these frames are always sent to the server, this method always fails and returns false. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em buf}]The \doxyref{Buffer}{p.}{classTPProto_1_1Buffer} to unpack out of, ignored. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]False always. \end{Desc}


Implements {\bf TPProto::Frame} \doxyref{}{p.}{classTPProto_1_1Frame_fe220a4229f471a3cc6a143f7a27e321}.\index{TPProto::AddCategory@{TPProto::Add\-Category}!setName@{setName}}
\index{setName@{setName}!TPProto::AddCategory@{TPProto::Add\-Category}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Add\-Category::set\-Name (const std::string \& {\em n})}\label{classTPProto_1_1AddCategory_15003d909f779a3b2c30f201c5bf923b}


Sets the name of this \doxyref{Category}{p.}{classTPProto_1_1Category}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em n}]The name of the \doxyref{Category}{p.}{classTPProto_1_1Category}. \end{description}
\end{Desc}
\index{TPProto::AddCategory@{TPProto::Add\-Category}!setDescription@{setDescription}}
\index{setDescription@{setDescription}!TPProto::AddCategory@{TPProto::Add\-Category}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Add\-Category::set\-Description (const std::string \& {\em d})}\label{classTPProto_1_1AddCategory_94bb00aae4b0ff67dd95235fd1f2dc24}


Sets the description of this \doxyref{Category}{p.}{classTPProto_1_1Category}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em d}]The description of the \doxyref{Category}{p.}{classTPProto_1_1Category}. \end{description}
\end{Desc}


The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
tpproto/{\bf addcategory.h}\item 
tpproto/addcategory.cpp\end{CompactItemize}
