Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CTBodbcTime.hxx

Go to the documentation of this file.
00001 #ifndef _CTBodbcTime_HXX
00002 #define _CTBodbcTime_HXX 1
00003 //
00004 // $Id: CTBodbcTime.hxx,v 1.5 1999/04/23 09:41:59 mueller Exp $
00005 //
00006 /*----------------------------------------------------------------------------*/
00007 /* C Tool Box: Designed and implemented by:                                   */
00008 /*    Walter F.J. Mueller   Gesellschaft fuer Schwerionenforschung (GSI)      */
00009 /*                          Planckstrasse 1, D-64291 Darmstadt, Germany       */
00010 /*                  Email:  W.F.J.Mueller@gsi.de                              */
00011 /*                  WWW:    http://www-kp3.gsi.de/www/kp3/people/mueller.html */
00012 /*------------------------------------------+---------------------------------*/
00013 
00014 class CTBodbcTime {
00015 
00016   public: 
00017                     CTBodbcTime();
00018                     CTBodbcTime(int i_utime);
00019 
00020     int             Year(int i_year);
00021     int             Year() const;
00022 
00023     int             Month(int i_month);
00024     int             Month() const;
00025 
00026     int             Day(int i_day);
00027     int             Day() const;
00028 
00029     int             Hour(int i_hour);
00030     int             Hour() const;
00031 
00032     int             Minute(int i_minute);
00033     int             Minute() const;
00034 
00035     int             Second(int i_second);
00036     int             Second() const;
00037 
00038     int             ToUTime() const;
00039     void            FromUTime(int i_utime);
00040 
00041     const TIMESTAMP_STRUCT& Data() const;
00042     TIMESTAMP_STRUCT& Data();
00043 
00044     void            ToStream(ostream& os = cout) const;
00045 
00046                     operator int() const;
00047 
00048     CTBodbcTime&    operator=(int i_utime);
00049 
00050   private:
00051 
00052     TIMESTAMP_STRUCT  m_time;               
00053 };
00054 
00055     ostream&        operator<<(ostream& os, const CTBodbcTime& obj);
00056 
00057 #if !(defined(CTB__OutLine) || defined(CTBodbcTime__OutLine))
00058 #include "CTBodbcTime.icc"
00059 #endif
00060 
00061 #endif

Generated at Fri Oct 24 18:16:03 2003 for CTBodbc by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001