\section{TPProto::Account\-Create Class Reference}
\label{classTPProto_1_1AccountCreate}\index{TPProto::AccountCreate@{TPProto::AccountCreate}}
The \doxyref{Frame}{p.}{classTPProto_1_1Frame} for creating a account on the server.  


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

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

\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item 
virtual {\bf $\sim$Account\-Create} ()\label{classTPProto_1_1AccountCreate_1ec5d2c05eadd200cec97414f0490035}

\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 the login 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}, always false. \item\end{CompactList}\item 
void {\bf set\-User} (const std::string \&name)
\begin{CompactList}\small\item\em Sets the username to create the account. \item\end{CompactList}\item 
void {\bf set\-Pass} (const std::string \&word)
\begin{CompactList}\small\item\em Sets the password to create the account with. \item\end{CompactList}\item 
void {\bf set\-Email} (const std::string \&address)
\begin{CompactList}\small\item\em Sets the email address to create the account with. \item\end{CompactList}\item 
void {\bf set\-Comment} (const std::string \&c)
\begin{CompactList}\small\item\em Sets the comment to create the account with. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
The \doxyref{Frame}{p.}{classTPProto_1_1Frame} for creating a account on the server. 



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


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

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em buf}]The \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::AccountCreate@{TPProto::Account\-Create}!unpackBuffer@{unpackBuffer}}
\index{unpackBuffer@{unpackBuffer}!TPProto::AccountCreate@{TPProto::Account\-Create}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool TPProto::Account\-Create::unpack\-Buffer ({\bf Buffer} $\ast$ {\em buf})\hspace{0.3cm}{\tt  [virtual]}}\label{classTPProto_1_1AccountCreate_e9376d9776bddf6d7ceb8d3ac5632c40}


Unpack from a \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}, always false. 

Since \doxyref{Account\-Create}{p.}{classTPProto_1_1AccountCreate} frames are only sent to the server, we should not receive them and therefore this method always returns false. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em buf}]The \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}, 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::AccountCreate@{TPProto::Account\-Create}!setUser@{setUser}}
\index{setUser@{setUser}!TPProto::AccountCreate@{TPProto::Account\-Create}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Account\-Create::set\-User (const std::string \& {\em name})}\label{classTPProto_1_1AccountCreate_3e947a03bedca231a3b380796fc202fc}


Sets the username to create the account. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em name}]The username. \end{description}
\end{Desc}
\index{TPProto::AccountCreate@{TPProto::Account\-Create}!setPass@{setPass}}
\index{setPass@{setPass}!TPProto::AccountCreate@{TPProto::Account\-Create}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Account\-Create::set\-Pass (const std::string \& {\em word})}\label{classTPProto_1_1AccountCreate_7bde4d5930689f2b9af36a4782dde6d6}


Sets the password to create the account with. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em word}]The password. \end{description}
\end{Desc}
\index{TPProto::AccountCreate@{TPProto::Account\-Create}!setEmail@{setEmail}}
\index{setEmail@{setEmail}!TPProto::AccountCreate@{TPProto::Account\-Create}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Account\-Create::set\-Email (const std::string \& {\em address})}\label{classTPProto_1_1AccountCreate_aa30fd0fc6d026daf3af721e568dc4ab}


Sets the email address to create the account with. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em address}]The email address. \end{description}
\end{Desc}
\index{TPProto::AccountCreate@{TPProto::Account\-Create}!setComment@{setComment}}
\index{setComment@{setComment}!TPProto::AccountCreate@{TPProto::Account\-Create}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Account\-Create::set\-Comment (const std::string \& {\em c})}\label{classTPProto_1_1AccountCreate_8c81328f6d72ff8a75e815492efecde5}


Sets the comment to create the account with. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em c}]The comment. \end{description}
\end{Desc}


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