Main Page | Class List | File List | Class Members | File Members

format_system_time.h

Go to the documentation of this file.
00001 // format_system_time.h
00002 
00003 #ifndef FORMAT_SYSTEM_TIME_H
00004 #define FORMAT_SYSTEM_TIME_H
00005 
00006 #include <iosfwd>
00007 #include <windows.h>
00008 
00027 class format_system_time
00028 {
00029 public:
00030   enum { relative=1, show_seconds=2, show_milliseconds=4 };
00031   format_system_time(const SYSTEMTIME& systemtime, int options=0)
00032     : m_systemtime(systemtime), m_options(options)
00033   {
00034   }
00036   format_system_time(int options=0)
00037     : m_options(options)
00038   {
00039     GetLocalTime(&m_systemtime);
00040   }
00045   static int width(int options=0);
00046 
00047   int m_options;
00048   SYSTEMTIME m_systemtime;
00049 
00050   friend std::ostream& operator<< (std::ostream&, const format_system_time &);
00051 };
00052 
00053 #endif // FORMAT_SYSTEM_TIME_H

Generated on Sun Jun 26 13:43:46 2005 for pingem by  doxygen 1.4.3