version.h

Go to the documentation of this file.
00001 #ifndef VERSION_H
00002 #define VERSION_H
00003 
00004 #include <iostream>
00005 #include <cstring>
00006 
00007 using namespace std;
00008 
00009 //file version.h
00010 
00011 class version
00012 {
00013  private:
00014 
00015         char acc[20];
00016         int ver;
00017 
00018  public:
00019         version();
00020         friend ostream &operator<<(ostream &ous, const version &v);
00021         bool operator<(const version &v) const {return (strcmp(acc, v.acc)< 0);}
00022         bool operator==(const version &v) const {return (strcmp(acc, v.acc) == 0);}
00023         version& operator=(const version &v);
00024         void get(char *ll);  //to get from  L22785.1  GI:438913
00025         void quickGet(const char *ll);
00026 
00028         bool newer(const version &v) const {return ver > v.ver;}
00029 };
00030 
00031 #endif

Generated on Wed Oct 14 21:49:15 2009 for Softwares from Orpara by  doxygen 1.5.6