\section{TPProto::Category Class Reference}
\label{classTPProto_1_1Category}\index{TPProto::Category@{TPProto::Category}}
A \doxyref{Frame}{p.}{classTPProto_1_1Frame} to hold Categories from the server.  


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

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

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

\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}, asserts. \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}. Unpacks the \doxyref{Category}{p.}{classTPProto_1_1Category} frame from the buffer. \item\end{CompactList}\item 
uint32\_\-t {\bf get\-Category\-Id} () const
\begin{CompactList}\small\item\em Gets the \doxyref{Category}{p.}{classTPProto_1_1Category} id. \item\end{CompactList}\item 
uint64\_\-t {\bf get\-Mod\-Time} () const
\begin{CompactList}\small\item\em Gets the last modification time of this \doxyref{Category}{p.}{classTPProto_1_1Category}. \item\end{CompactList}\item 
std::string {\bf get\-Name} () const
\begin{CompactList}\small\item\em Gets the name of this \doxyref{Category}{p.}{classTPProto_1_1Category}. \item\end{CompactList}\item 
std::string {\bf get\-Description} () const
\begin{CompactList}\small\item\em Gets 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 hold Categories from the server. 



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


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

Packs this \doxyref{Category}{p.}{classTPProto_1_1Category} frame into the buffer. Since the frame only comes from the server, this method assert(0). \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em buf}]\doxyref{Buffer}{p.}{classTPProto_1_1Buffer} to pack into, ignored. \end{description}
\end{Desc}


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


Unpack from a \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}. Unpacks the \doxyref{Category}{p.}{classTPProto_1_1Category} frame from the buffer. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em buf}]The \doxyref{Buffer}{p.}{classTPProto_1_1Buffer} to unpack out of. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]True if sucessful, false otherwise. \end{Desc}


Implements {\bf TPProto::Frame} \doxyref{}{p.}{classTPProto_1_1Frame_fe220a4229f471a3cc6a143f7a27e321}.\index{TPProto::Category@{TPProto::Category}!getCategoryId@{getCategoryId}}
\index{getCategoryId@{getCategoryId}!TPProto::Category@{TPProto::Category}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint32\_\-t TPProto::Category::get\-Category\-Id () const}\label{classTPProto_1_1Category_a1c11f64858292384f1daaa826615203}


Gets the \doxyref{Category}{p.}{classTPProto_1_1Category} id. 

\begin{Desc}
\item[Returns:]The \doxyref{Category}{p.}{classTPProto_1_1Category} id number. \end{Desc}
\index{TPProto::Category@{TPProto::Category}!getModTime@{getModTime}}
\index{getModTime@{getModTime}!TPProto::Category@{TPProto::Category}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint64\_\-t TPProto::Category::get\-Mod\-Time () const}\label{classTPProto_1_1Category_6ab941c58523797d8ae0f3bbef2b3ad0}


Gets the last modification time of this \doxyref{Category}{p.}{classTPProto_1_1Category}. 

\begin{Desc}
\item[Returns:]The modtime. \end{Desc}
\index{TPProto::Category@{TPProto::Category}!getName@{getName}}
\index{getName@{getName}!TPProto::Category@{TPProto::Category}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}std::string TPProto::Category::get\-Name () const}\label{classTPProto_1_1Category_81c070ef81be56f344260c56146531a7}


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

\begin{Desc}
\item[Returns:]The name of the \doxyref{Category}{p.}{classTPProto_1_1Category}. \end{Desc}
\index{TPProto::Category@{TPProto::Category}!getDescription@{getDescription}}
\index{getDescription@{getDescription}!TPProto::Category@{TPProto::Category}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}std::string TPProto::Category::get\-Description () const}\label{classTPProto_1_1Category_1454d473b7721660988e70015a73ed12}


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

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


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