Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > ad1ba1135a9c9eeffc2e538163e00373 > files > 869

libCommonC++2_1.4-devel-1.4.1-1mdv2007.0.i586.rpm

\section{slog\-Test.cpp}


\footnotesize\begin{verbatim}1 
2 #include <cc++/slog.h>
3 #include <iostream>
4 #include <cstdio>
5 
6 #ifdef  CCXX_NAMESPACES
7 using namespace std;
8 using namespace ost;
9 #endif
10 
11 
12 int main(int argc, char* argv[])
13 {
14    slog("slogTest", Slog::classUser, Slog::levelInfo);
15    slog << "Howdy daemon and clog." << endl;
16    slog.clogEnable(false);
17    slog << "This is only for the daemon." << endl;
18    slog.clogEnable(true);
19    slog << "Are you still there?" << endl;
20    return 0;
21 }
22 
\end{verbatim}
\normalsize