\section{Revision Namespace Reference}
\label{namespaceRevision}\index{Revision@{Revision}}


This header file provides a mechanism, which makes the name of a a C\-V\-S tag available for a c++ program.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
std\-::string {\bfseries get\-Name} ()\label{namespaceRevision_a3d21148066d350e1d7fc1798c1141267}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
This header file provides a mechanism, which makes the name of a a C\-V\-S tag available for a c++ program. This can be used to print the current version of a software package to the screen.

The function get\-Name() returns a string containing the C\-V\-S tag name. This only works, if a tagged version of the sources is \char`\"{}checked out\char`\"{} with the \char`\"{}-\/r\char`\"{} option. To check out version \char`\"{}v00-\/01\char`\"{} of the project \char`\"{}nn\-Trainer\char`\"{} type\-:

cvs co -\/r v00-\/01 nn\-Trainer

If a not tagged version is checked out, get\-Name() returns an empty string. This also is the case if the latest version is the tagged version, but the check out is done without the \char`\"{}-\/r\char`\"{} option.

The get\-Name() function reads out the value of the \char`\"{}\-Name\char`\"{} keyword. To make this work properly add this file with

cvs add -\/kkv \doxyref{Revision.\-h}{p.}{Revision_8h_source} cvs ci \doxyref{Revision.\-h}{p.}{Revision_8h_source}

to your C\-V\-S repository. If you check in this file together with other files to create a new C\-V\-S repository, the keyword modus has to be set after the check in using

cvs admin -\/kkv \doxyref{Revision.\-h}{p.}{Revision_8h_source}

(usually \char`\"{}-\/kkv\char`\"{} should be the standard mode. In this case you can omit this command.)

To tag a version of the project \char`\"{}nn\-Train\char`\"{} type\-:

cd nn\-Train cvs tag v00-\/01 .

To remove a tag type\-:

cd nn\-Train cvs tag -\/d v00-\/01 . \begin{DoxyAuthor}{Author}
T. Kraemer, D\-E\-S\-Y 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{Revision.\-h}{p.}{Revision_8h_source},v 1.\-2 2006-\/12-\/04 17\-:36\-:39 tkraemer Exp 
\end{DoxyParagraph}
