Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ippLogger.h

Go to the documentation of this file.
00001 // 
00002 // DISCLAIMER: 
00003 //  This software was produced by the National Institute of Standards 
00004 //  and Technology (NIST), an agency of the U.S. government, and by statute is 
00005 //  not subject to copyright in the United States.  Recipients of this 
00006 //  software assume all responsibility associated with its operation,
00007 //  modification,maintenance, and subsequent redistribution. 
00008 //
00009 //  See NIST Administration Manual 4.09.07 b and Appendix I. 
00010 //
00011 #pragma once
00012 #include "ippdme/ippdme.h"
00013 #include <stdarg.h>
00014 
00015 class IPPDME_EXT_CLASS ippLogger {
00016 
00017 public:
00018   
00019   void WriteLineFormat(const char* format, ...)
00020   {
00021 
00022     char buffer[10000];
00023     int count = sizeof(buffer);
00024     va_list argptr;
00025     va_start( argptr, format );
00026 #if _MSC_VER < 1400 
00027     int nRet = ::vsprintf( buffer, format, argptr );
00028 #else
00029     int nRet = vsprintf_s( buffer,10000, format, argptr );
00030 #endif
00031     va_end( argptr );
00032     WriteLine(buffer);
00033     
00034   }
00035   virtual void WriteLine(const char* str)=0;
00036 protected:
00037 
00038 };
00039 
00040 
00041 

Generated on Wed Nov 8 00:20:00 2006 for IPPDME by  doxygen 1.4.1