\section{CTrace\-Object Klassenreferenz}
\label{classCTraceObject}\index{CTraceObject@{CTraceObject}}
Standard-Klasse zur Ausgabe von Programm-Traces.  


{\tt \#include $<$Trace\-Object.h$>$}

Klassendiagramm f\"{u}r CTrace\-Object::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.89655cm]{classCTraceObject}
\end{center}
\end{figure}
\subsection*{\"{O}ffentliche Typen}
\begin{CompactItemize}
\item 
enum {\bf e\-Trace\-Level} \{ {\bf MT\_\-ERROR} =  1, 
{\bf MT\_\-WARNING} =  2, 
{\bf MT\_\-INFO} =  4, 
{\bf MT\_\-DEBUG} =  8
 \}
\begin{CompactList}\small\item\em Die unterschiedlichen Trace-Levels repr\"{a}sentieren unterschiedliche Bits. \item\end{CompactList}\end{CompactItemize}
\subsection*{\"{O}ffentliche Methoden}
\begin{CompactItemize}
\item 
{\bf CTrace\-Object} ()\label{classCTraceObject_a0}

\begin{CompactList}\small\item\em Konstructor. \item\end{CompactList}\item 
virtual {\bf $\sim$CTrace\-Object} ()\label{classCTraceObject_a1}

\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
virtual void {\bf Add\-Trace} (const char $\ast$lpsz\-Msg, {\bf CTrace\-Object::e\-Trace\-Level} e\-Level=CTrace\-Object::MT\_\-ERROR)
\begin{CompactList}\small\item\em Macht eine Trace-Ausgabe auf dem angeforderten Trace-Level. \item\end{CompactList}\item 
void {\bf Add\-Trace} (std::ostrstream \&o\-Stream, {\bf CTrace\-Object::e\-Trace\-Level} e\-Level=CTrace\-Object::MT\_\-ERROR)
\begin{CompactList}\small\item\em Macht eine Trace-Ausgabe auf dem angeforderten Trace-Level. \item\end{CompactList}\item 
void {\bf Set\-Trace\-Level} (int n\-Trace\-Level\-Mask)
\begin{CompactList}\small\item\em Aktiviert die angegebenen Trace-Level. \item\end{CompactList}\end{CompactItemize}
\subsection*{\"{O}ffentliche, statische Methoden}
\begin{CompactItemize}
\item 
std::string {\bf Get\-Last\-Error\-Text} (DWORD dw\-Error)\label{classCTraceObject_e0}

\end{CompactItemize}
\subsection*{Gesch\"{u}tzte Methoden}
\begin{CompactItemize}
\item 
bool {\bf Get\-Is\-Trace\-Level\-Aktivated} ({\bf CTrace\-Object::e\-Trace\-Level} e\-Level) const
\begin{CompactList}\small\item\em Ueberprueft, ob eine bestimmte Trace\-Level aktiviert ist. \item\end{CompactList}\end{CompactItemize}
\subsection*{Private Attribute}
\begin{CompactItemize}
\item 
int {\bf m\_\-n\-Trace\-Levels\-Active}\label{classCTraceObject_r0}

\begin{CompactList}\small\item\em aktivierte Trace\-Levels \item\end{CompactList}\end{CompactItemize}


\subsection{Ausf\"{u}hrliche Beschreibung}
Standard-Klasse zur Ausgabe von Programm-Traces. 

\begin{Desc}
\item[Autor:]Axel Schmidt \end{Desc}
\begin{Desc}
\item[Version:]\begin{Desc}
\item[Revision]1.2 \end{Desc}
\end{Desc}




\subsection{Dokumentation der Aufz\"{a}hlungstypen}
\index{CTraceObject@{CTrace\-Object}!eTraceLevel@{eTraceLevel}}
\index{eTraceLevel@{eTraceLevel}!CTraceObject@{CTrace\-Object}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf CTrace\-Object::e\-Trace\-Level}}\label{classCTraceObject_w4}


Die unterschiedlichen Trace-Levels repr\"{a}sentieren unterschiedliche Bits. 

Je nachdem welche Trace\-Maske gesetzt wurde, werden die Trace WARNING, INFO, DEBUG, ERROR ausgegeben oder nicht. 

\subsection{Dokumentation der Elementfunktionen}
\index{CTraceObject@{CTrace\-Object}!AddTrace@{AddTrace}}
\index{AddTrace@{AddTrace}!CTraceObject@{CTrace\-Object}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CTrace\-Object::Add\-Trace (std::ostrstream \& {\em o\-Stream}, {\bf CTrace\-Object::e\-Trace\-Level} {\em e\-Level} = {\tt CTraceObject::MT\_\-ERROR})}\label{classCTraceObject_a3}


Macht eine Trace-Ausgabe auf dem angeforderten Trace-Level. 

\begin{Desc}
\item[Parameter:]
\begin{description}
\item[{\em o\-Stream}]Stream mit den Trace-Message \item[{\em e\-Level}]zu pruefende Trace-Level \end{description}
\end{Desc}
\begin{Desc}
\item[R\"{u}ckgabe:]true, false aktiv \end{Desc}
\index{CTraceObject@{CTrace\-Object}!AddTrace@{AddTrace}}
\index{AddTrace@{AddTrace}!CTraceObject@{CTrace\-Object}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CTrace\-Object::Add\-Trace (const char $\ast$ {\em lpsz\-Msg}, {\bf CTrace\-Object::e\-Trace\-Level} {\em e\-Level} = {\tt CTraceObject::MT\_\-ERROR})\hspace{0.3cm}{\tt  [virtual]}}\label{classCTraceObject_a2}


Macht eine Trace-Ausgabe auf dem angeforderten Trace-Level. 

\begin{Desc}
\item[Parameter:]
\begin{description}
\item[{\em lpsz\-Msg}]Trace-Ausgabe \item[{\em e\-Level}]zu pruefende Trace-Level \end{description}
\end{Desc}
\begin{Desc}
\item[R\"{u}ckgabe:]true, false aktiv \end{Desc}


Erneute Implementation in {\bf CGateway\-Security} {\rm (S.\,\pageref{classCGatewaySecurity_a8})} und {\bf CGateway\-Server} {\rm (S.\,\pageref{classCGatewayServer_a8})}.\index{CTraceObject@{CTrace\-Object}!GetIsTraceLevelAktivated@{GetIsTraceLevelAktivated}}
\index{GetIsTraceLevelAktivated@{GetIsTraceLevelAktivated}!CTraceObject@{CTrace\-Object}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool CTrace\-Object::Get\-Is\-Trace\-Level\-Aktivated ({\bf CTrace\-Object::e\-Trace\-Level} {\em e\-Level}) const\hspace{0.3cm}{\tt  [protected]}}\label{classCTraceObject_b0}


Ueberprueft, ob eine bestimmte Trace\-Level aktiviert ist. 

\begin{Desc}
\item[Parameter:]
\begin{description}
\item[{\em e\-Level}]zu pruefende Trace-Level \end{description}
\end{Desc}
\begin{Desc}
\item[R\"{u}ckgabe:]true, false aktiv \end{Desc}
\index{CTraceObject@{CTrace\-Object}!SetTraceLevel@{SetTraceLevel}}
\index{SetTraceLevel@{SetTraceLevel}!CTraceObject@{CTrace\-Object}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CTrace\-Object::Set\-Trace\-Level (int {\em n\-Trace\-Level\-Mask})}\label{classCTraceObject_a4}


Aktiviert die angegebenen Trace-Level. 

\begin{Desc}
\item[Parameter:]
\begin{description}
\item[{\em n\-Trace\-Level\-Mask}]Stream mit den Trace-Message \end{description}
\end{Desc}


Die Dokumentation f\"{u}r diese Klasse wurde erzeugt aufgrund der Dateien:\begin{CompactItemize}
\item 
Trace\-Object.h\item 
Trace\-Object.cpp\end{CompactItemize}
