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

Units.h

00001 /*
00002  *  Copyright (c) 2004 on behalf of the EU EGEE Project:
00003  *  The European Organization for Nuclear Research (CERN),
00004  *  Istituto Nazionale di Fisica Nucleare (INFN), Italy
00005  *  Datamat Spa, Italy
00006  *  Centre National de la Recherche Scientifique (CNRS), France
00007  *  CS Systeme d'Information (CSSI), France
00008  *  Royal Institute of Technology, Center for Parallel Computers (KTH-PDC), Sweden
00009  *  Universiteit van Amsterdam (UvA), Netherlands
00010  *  University of Helsinki (UH.HIP), Finland
00011  *  University of Bergen (UiB), Norway
00012  *  Council for the Central Laboratory of the Research Councils (CCLRC), United Kingdom
00013  */
00014 #ifndef UNITS_H
00015 #define UNITS_H
00016 //#include "rgma/TimeInterval.h"
00017 namespace glite
00018 {
00019     namespace rgma
00020     {
00024         class Units
00025         {
00026             friend class TimeInterval;
00027             private:
00029                 const static int S = 0;
00030 
00032                 const static int M = 1;
00033 
00035                 const static int H = 2;
00036 
00038                 const static int D = 3;
00039                 const static  long* RATIOS;
00040                 int m_units;
00041 
00042             protected:
00048                 Units(int units);
00054                 long getNumSeconds();
00055 
00062                 int getUnits();
00063 
00064             public:
00065                 Units(){}
00066                 virtual ~Units();
00068                 const static Units SECONDS;
00069 
00071                 const static Units MINUTES;
00072 
00074                 const static Units HOURS;
00075 
00077                 const static Units DAYS;
00078 
00086                 bool equals(Units units);
00087 
00093                 int hashCode();
00094 
00095         };
00096     }
00097 }
00098 #endif                                            // UNITS_H

Generated on Wed May 17 17:48:18 2006 for glite-rgma-api-cpp by doxygen 1.3.5