36 Version (
const std::string& version )
38 std::sscanf( version.c_str(),
"%d.%d.%d.%d", &Major, &Minor, &Revision, &Build );
39 if( Major < 0 ) Major = 0;
40 if( Minor < 0 ) Minor = 0;
41 if( Revision < 0 ) Revision = 0;
42 if( Build < 0 ) Build = 0;
48 if( Major < other.Major )
50 else if( Major == other.Major )
52 if( Minor < other.Minor )
54 else if( Minor == other.Minor )
56 if( Revision < other.Revision )
58 else if( Build == other.Build && Build < other.Build )
69 return Major == other.Major
70 && Minor == other.Minor
71 && Revision == other.Revision
72 && Build == other.Build;
76 friend std::ostream& operator<< ( std::ostream& stream,
const Version& ver )
82 stream << ver.Revision;
bool operator==(const Version &other)
Version comparision.
Definition: Version.h:67
Plik zawiera definicje podstawowych typów zmiennych.
bool operator<(const Version &other)
Version comparision.
Definition: Version.h:46
Version()
Contructs Lowest version.
Definition: Version.h:27
Standard version structure.
Definition: Version.h:17