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

TimeInterval.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 RGMA_TIMEINTERVAL_H
00015 #define RGMA_TIMEINTERVAL_H
00016 
00017 #include <string>
00018 #include "rgma/RGMAException.h"
00019 #include "rgma/Units.h"
00020 namespace glite
00021 {
00022     namespace rgma
00023     {
00027         class TimeInterval
00028         {
00029             public:
00037                 TimeInterval( int value = 0, Units units = Units::SECONDS )
00038                     throw(RGMAException);
00039                 virtual ~TimeInterval();
00040 
00046                 TimeInterval(const TimeInterval& timeInterval);
00047 
00048                 TimeInterval& operator=(const TimeInterval& timeInterval);
00049 
00057                 int getValueAs(Units units) throw(RGMAException);
00058 
00059             private:
00060                 int m_value;
00061 
00062         };
00063     }                                             //rgma
00064 }                                                 //glite
00065 #endif                                            //RGMA_TIMEINTERVAL_H

Generated on Fri Mar 16 14:00:16 2007 for glite-rgma-api-cpp by doxygen 1.3.5