faubackup2/src/time range.cpp,1.3,1.4 timestamp.cpp,1.3,1.4 timestamp.hpp,1.3,1.4

Erik Merkel <[email protected]> Thu, 23 Jun 2005 15:40:44 +0000
Newsgroups gmane.comp.sysutils.backup.faubackup.cvs
Message-ID <[email protected]>
Update of /cvsroot/faubackup/faubackup2/src/time
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31238/src/time

Modified Files:
	range.cpp timestamp.cpp timestamp.hpp 
Log Message:
use references


Index: range.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/time/range.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** range.cpp	14 Jun 2005 20:23:36 -0000	1.3
--- range.cpp	23 Jun 2005 15:40:42 -0000	1.4
***************
*** 30,33 ****
--- 30,35 ----
  bool Range::is_in_range(int value)
  {
+ 	if(is_always_true())
+ 		return true;
  	if(value > max) {
  		/* deal with times that start with zero or with one */

Index: timestamp.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/time/timestamp.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** timestamp.cpp	14 Jun 2005 20:23:36 -0000	1.3
--- timestamp.cpp	23 Jun 2005 15:40:42 -0000	1.4
***************
*** 16,27 ****
  {
  
! string out_time(struct TimeStamp stamp)
  {
  	return int2string(stamp.year) + " : " + int2string(stamp.month) + " : " + int2string(stamp.day) + " : " + int2string(stamp.weekday) + " : " + int2string(stamp.hour) + " : " + int2string(stamp.minute) + " : " + int2string(stamp.second);
  }
  
! bool matchBetweenIntervals(struct TimeStamp begin,
!                            struct TimeStamp end,
!                            struct TimeStamp2 probe)
  {
  	Range year_range(probe.year_begin, probe.year_end, probe.year_mod,
--- 16,27 ----
  {
  
! string out_time(struct TimeStamp &stamp)
  {
  	return int2string(stamp.year) + " : " + int2string(stamp.month) + " : " + int2string(stamp.day) + " : " + int2string(stamp.weekday) + " : " + int2string(stamp.hour) + " : " + int2string(stamp.minute) + " : " + int2string(stamp.second);
  }
  
! bool matchBetweenIntervals(struct TimeStamp &begin,
!                            struct TimeStamp &end,
!                            struct TimeStamp2 &probe)
  {
  	Range year_range(probe.year_begin, probe.year_end, probe.year_mod,
***************
*** 105,109 ****
  }
  
! bool timeOver(TimeStamp oldtime, TimeStamp actualtime, KeepTime timetokeep)
  {
  	unsigned long int duration; //time in hours
--- 105,109 ----
  }
  
! bool timeOver(TimeStamp &oldtime, TimeStamp &actualtime, KeepTime &timetokeep)
  {
  	unsigned long int duration; //time in hours
***************
*** 143,147 ****
  }
  
! bool neverBackup(KeepTime timeToKeep)
  {
  
--- 143,147 ----
  }
  
! bool neverBackup(KeepTime &timeToKeep)
  {
  

Index: timestamp.hpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/time/timestamp.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** timestamp.hpp	14 Jun 2005 22:10:32 -0000	1.3
--- timestamp.hpp	23 Jun 2005 15:40:42 -0000	1.4
***************
*** 9,18 ****
  
  
! bool matchBetweenIntervals(struct TimeStamp begin,
!                            struct TimeStamp end,
!                            struct TimeStamp2 probe);
  
! bool timeOver(TimeStamp oldtime, TimeStamp actualtime, KeepTime timetokeep);
! bool neverBackup(KeepTime timeToKeep);
  struct TimeStamp getActualTime();
  void calculateMissingWeekday(struct TimeStamp &stamp);
--- 9,18 ----
  
  
! bool matchBetweenIntervals(struct TimeStamp &begin,
!                            struct TimeStamp &end,
!                            struct TimeStamp2 &probe);
  
! bool timeOver(TimeStamp &oldtime, TimeStamp &actualtime, KeepTime &timetokeep);
! bool neverBackup(KeepTime &timeToKeep);
  struct TimeStamp getActualTime();
  void calculateMissingWeekday(struct TimeStamp &stamp);



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click