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

local_date.hh

00001 /*
00002 *  Name:         local_date.hh
00003 *  Author:       Francisco Rodrigo Escobedo Robles
00004 *  Contributor:  Rafael Jesus Alcantara Perez
00005 *  Summary:      Local date class
00006 *  Date:         $Date: 2003/08/08 23:30:34 $
00007 *  Revision:     $Revision: 1.2 $
00008 *
00009 *  Copyright (C) 2000-2001  Francisco Rodrigo Escobedo Robles <frer@pepix.net>
00010 *  Copyright (C) 2002       Rafael Jesus Alcantara Perez <rafa@dedalo-ing.com>
00011 *
00012 *  This program is free software; you can redistribute it and/or modify
00013 *  it under the terms of the GNU General Public License as published by
00014 *  the Free Software Foundation; either version 2 of the License, or
00015 *  (at your option) any later version.
00016 *
00017 *  This program is distributed in the hope that it will be useful,
00018 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020 *  GNU General Public License for more details.
00021 *
00022 *  You should have received a copy of the GNU General Public License
00023 *  along with this program; if not, write to the Free Software
00024 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00025 *  MA 02111-1307, USA.
00026 */
00027 
00028 #ifndef _MPCL_TEXT_LOCAL_DATE__
00029 #define _MPCL_TEXT_LOCAL_DATE__
00030 
00031 #include "date.hh"
00032 #include "string.hh"
00033 
00034 
00036 namespace mpcl
00037 {
00038 
00040   namespace text
00041   {
00042 
00046      class TLocalDate : public IDate
00047      {
00048    
00049        public:
00050    
00051          //
00052          //  C O N S T R U C T O R S
00053          //
00054    
00064          TLocalDate ( const int kiYEAR        ,
00065                       const int kiMONTH       ,
00066                       const int kiDAY         ,
00067                       const int kiHOUR    = 0 ,
00068                       const int kiMINUTES = 0 ,
00069                       const int kiSECONDS = 0 ) : 
00070            IDate ( kiYEAR    ,
00071                    kiMONTH   ,
00072                    kiDAY     ,
00073                    kiHOUR    ,
00074                    kiMINUTES ,
00075                    kiSECONDS )                  {}
00076    
00077          
00083          TLocalDate (const EDateType keDATE_TYPE = eNow)
00084            throw (TConstraintException) :
00085            IDate (keDATE_TYPE)          {}
00086    
00087    
00088        public:
00089    
00090          //
00091          //  S E L E C T O R S
00092          //
00093    
00098          TString get (const char* pkcDATE_FORMAT) const;
00099    
00100      };  // class TLocalDate
00101    
00102   }  // namespace text
00103 
00104 }  // namespace mpcl
00105 
00106 
00107 #endif  // not _MPCL_TEXT_LOCAL_DATE__

Generated on Mon Oct 13 02:35:23 2003 for MPCL by doxygen1.2.18