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

swversion.h

00001 /******************************************************************************
00002  *  swversion.h   - definition of class SWVersion used to compare version info
00003  *
00004  * $Id: swversion_8h-source.html,v 1.5 2002/06/20 20:23:10 mgruner Exp $
00005  *
00006  * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
00007  *      CrossWire Bible Society
00008  *      P. O. Box 2528
00009  *      Tempe, AZ  85280-2528
00010  *
00011  * This program is free software; you can redistribute it and/or modify it
00012  * under the terms of the GNU General Public License as published by the
00013  * Free Software Foundation version 2.
00014  *
00015  * This program is distributed in the hope that it will be useful, but
00016  * WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * General Public License for more details.
00019  *
00020  */
00021 
00022 #ifndef SWORDVER
00023 #define SWORDVER "1.5.3"
00024 #endif
00025 
00026 #ifndef SWVERSION_H
00027 #define SWVERSION_H
00028 
00029 class SWVersion {
00030         public:
00031         int major, minor, minor2, minor3;
00032         
00033         SWVersion(const char *version = "0.0");
00034         int compare(const SWVersion &vi) const;
00035         operator const char *() const;
00036         bool operator>(const SWVersion &vi) const {return (compare(vi) > 0);}
00037         bool operator<(const SWVersion &vi) const {return (compare(vi) < 0);}
00038         bool operator==(const SWVersion &vi) const {return (compare(vi) == 0);}
00039 
00040         // current sword library version
00041         static SWVersion currentVersion;
00042 };
00043 
00044 #endif
00045 

Generated on Thu Jun 20 22:13:00 2002 for The Sword Project by doxygen1.2.15