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

/home/pauldt/projects/IDEA/IDEA-ALL/IDEA-DEV/Core/PlanServer/Includes/PslTimeConverter.hh

Go to the documentation of this file.
00001 // -*- Mode: C++ -*-
00002 //      CVS: $Id: PslTimeConverter.hh,v 1.7 2005/12/30 22:15:01 rijsman Exp $
00003 //      Tag: $name$
00004 //     Info: $CVSROOT/IDEA-DEV/COPYRIGHT
00005 
00006 #ifndef PLANSERVER_TIME_CONVERTER_HEADER_
00007 #define PLANSERVER_TIME_CONVERTER_HEADER_
00008 
00009 #include "TimeBasics.hh"
00010 
00011 namespace IDEA
00012 {
00013   class PslTimeConverterImpl;
00014 
00024   class PslTimeConverter
00025   {
00026   public:
00030     ~PslTimeConverter();
00034     static const PslTimeConverter* instance();
00038     int convert( const Time& t ) const;
00039     /*
00040       \brief Converts the time \a t to an instance of Time.
00041     */
00042     Time convert( int t ) const;
00046     void setConverter( PslTimeConverterImpl* impl );
00050     void setGranularity( const Granularity& granulity ) const;
00051   private:
00052     PslTimeConverter();
00053     
00054     static PslTimeConverter* s_Instance;
00055 
00056     PslTimeConverterImpl* m_Impl;
00057   };
00058 
00062   Time convertToTime( int t );
00066   int convertToInt( const Time& t );
00067 }
00068 
00069 #endif // PLANSERVER_TIME_CONVERTER_HEADER_

Contact information
© IDEA
Generated on Fri Feb 3 17:09:41 2006 for IDEA.