mfc_converters.h

Go to the documentation of this file.
00001 #ifndef MFC_CONVERTERS_CLASS
00002 #define MFC_CONVERTERS_CLASS
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : mfc_converters                                                    *
00007 *  Author : Chris Koeritz                                                     *
00008 *                                                                             *
00009 *******************************************************************************
00010 * Copyright (c) 2007-$now By Author.  This program is free software; you can  *
00011 * redistribute it and/or modify it under the terms of the GNU General Public  *
00012 * License as published by the Free Software Foundation; either version 2 of   *
00013 * the License or (at your option) any later version.  This is online at:      *
00014 *     http://www.fsf.org/copyleft/gpl.html                                    *
00015 * Please send any updates to: fred@gruntose.com                               *
00016 \*****************************************************************************/
00017 
00018 #include <basis/portable.h>
00019 #include <basis/earth_time.h>
00020 
00022 
00023 namespace mfc_converters
00024 {
00025 #ifdef _AFXDLL
00026   earth_time::time_locus to_time_locus(const CTime &t) {
00027     return earth_time::time_locus(
00028         earth_time::clock_time(t.GetHour(), t.GetMinute(), t.GetSecond()),
00029         earth_time::day_in_year(earth_time::months(t.GetMonth()), t.GetDay()),
00030         t.GetYear());
00031   }
00032 
00033   CTime to_CTime(const earth_time::time_locus &t) {
00034     return CTime(t.year, t.month, t.day_in_month, t.hour, t.minute, t.second);
00035   }
00036 #endif
00037 };
00038 
00039 #endif
00040 

Generated on Fri Nov 28 04:28:59 2008 for HOOPLE Libraries by  doxygen 1.5.1