00001 /* -*- C++ -*- */ 00002 00003 /* COPYRIGHT 00004 * 00005 * This file is part of the Visual Effects Engine - VEE 00006 * 00007 * Read the "VEE-LICENSE" file for the license. 00008 * 00009 * Authors & Copyright: 00010 * 00011 * Tommi Ilmonen, Tuukka Heikura, Marko Myllymaa and 00012 * Janne Kontkanen 2001-2004 00013 * 00014 * Additional copyrights: Tekes 2003-2004 00015 * 00016 * firstname.lastname@hut.fi 00017 * 00018 */ 00019 00020 #ifndef GEE_INTERVAL_H 00021 #define GEE_INTERVAL_H 00022 00023 #include <gee_config.h> 00024 #include <gee_time_stamp.h> 00025 00026 class GEE_Io; 00027 00028 class GEE_Interval 00029 { 00030 public: 00031 GEE_Interval() {} 00032 ~GEE_Interval() {} 00033 00034 const GEE_TimeStamp & begin() const { return m_begin; } 00035 const GEE_TimeStamp & end() const { return m_end; } 00036 00037 void setBegin(const GEE_TimeStamp & ts) { m_begin = ts; } 00038 void setEnd(const GEE_TimeStamp & ts) { m_end = ts; } 00039 00040 void set(const GEE_TimeStamp & ts) { m_begin = m_end = ts; } 00041 00042 bool read(GEE_Io *); 00043 bool write(GEE_Io *); 00044 00045 protected: 00046 GEE_TimeStamp m_begin, m_end; 00047 }; 00048 00049 00050 #endif