7 #ifndef _MIMETIC_VERSION_H_
8 #define _MIMETIC_VERSION_H_
18 extern const Version version;
34 typedef unsigned int ver_type;
37 Version(ver_type, ver_type, ver_type build = 0);
43 ver_type build()
const;
45 void set(ver_type, ver_type, ver_type build = 0);
46 void set(
const std::string&);
47 std::string str()
const;
49 bool operator==(
const Version&)
const;
50 bool operator!=(
const Version&)
const;
51 bool operator<(
const Version&)
const;
52 bool operator>(
const Version&)
const;
53 bool operator<=(
const Version&)
const;
54 bool operator>=(
const Version&)
const;
55 friend std::ostream& operator<<(std::ostream&,
const Version&);
57 ver_type m_maj, m_min, m_build;
A three levels version string class.
Definition: version.h:32