ZLogger.h

Go to the documentation of this file.
00001 /*=auto========================================================================
00002 
00003   (c) Copyright 2006 Brigham and Women's Hospital (BWH) All Rights Reserved.
00004 
00005   Project:      ZLogger
00006   Description:  A class for logging runtime information and fault data 
00007                 for the ZTrackerTransform filter.
00008   Author:       Simon DiMaio, simond@bwh.harvard.edu
00009   Version:      $Id: ZLogger.h,v 1.2 2007/01/17 12:44:08 simond Exp $
00010 
00011 =========================================================================auto=*/
00012 
00013 
00014 /*= INCLUDE ==================================================================*/
00015 
00016 #ifndef           _ZLOGGER_H
00017 #define           _ZLOGGER_H
00018 
00019 #include          <string>
00020 #include          <sstream>
00021 #include          <iostream>
00022 #include          "stdio.h"
00023 
00024 
00025 /*= DEFINE ===================================================================*/
00026 
00027 // Log entry categories
00028 #define INFO      1
00029 #define WARNING   2
00030 #define ERROR     3
00031 
00032 
00033 /*= CLASS: ZLogger ===========================================================*/
00034 
00039 class ZLogger
00040 {
00041   public:
00042     ZLogger(std::string filename, int logID);
00043     ~ZLogger();
00044 
00045     bool          AddEntry(int category, std::string entry);
00046 
00047   private:
00048     bool          CreateNewLogFile(std::string filename, int logID);
00049     bool          FindNewLogFile(std::string basefilename, int logID);
00050     std::string   LogFileName;
00051     int           LogFileID;
00052     bool          LogActive;
00053 };
00054 
00055 #endif
00056 
00057 /*= END ZLogger.h ============================================================*/

Generated on Wed Feb 28 15:18:50 2007 for NaviTrack by  doxygen 1.4.6