[sword-cvs] sword/include swversion.h,1.12,1.13
sword@www.crosswire.org
sword@www.crosswire.org
Mon, 24 Nov 2003 12:55:31 -0700
Update of /usr/local/cvsroot/sword/include
In directory www:/tmp/cvs-serv27846/include
Modified Files:
swversion.h
Log Message:
Added more operators to SWVersion so it's easier to work with it. (jansorg)
Index: swversion.h
===================================================================
RCS file: /usr/local/cvsroot/sword/include/swversion.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- swversion.h 12 Jul 2003 21:22:41 -0000 1.12
+++ swversion.h 24 Nov 2003 19:55:29 -0000 1.13
@@ -53,6 +53,8 @@
operator const char *() const { return getText(); }
bool operator>(const SWVersion &vi) const {return (compare(vi) > 0);}
bool operator<(const SWVersion &vi) const {return (compare(vi) < 0);}
+ bool operator>=(const SWVersion &vi) const {return (compare(vi) >= 0);}
+ bool operator<=(const SWVersion &vi) const {return (compare(vi) <= 0);}
bool operator==(const SWVersion &vi) const {return (compare(vi) == 0);}
/** Current sword library version.