7#ifndef MYGUI_VERSION_H_
8#define MYGUI_VERSION_H_
21 Version(
unsigned int _major = 0,
unsigned int _minor = 0,
unsigned int _patch = 0) :
30 return (a.mMajor < b.mMajor) ? true : (a.mMinor < b.mMinor);
50 return !(a < b) && !(a > b);
58 friend std::ostream& operator << (std::ostream& _stream,
const Version& _value)
60 _stream << _value.
print();
64 friend std::istream& operator >> (std::istream& _stream,
Version& _value)
68 _value = parse(value);
100 unsigned int major = utility::parseValue<unsigned int>(vec[0]);
101 unsigned int minor = vec.size() > 1 ? utility::parseValue<unsigned int>(vec[1]) : 0;
102 unsigned int patch = vec.size() > 2 ? utility::parseValue<unsigned int>(vec[2]) : 0;
104 return Version(major, minor, patch);
110 unsigned mPatch : 16;
unsigned int getMinor() const
static Version parse(const std::string &_value)
unsigned int getMajor() const
std::string print() const
Version(unsigned int _major=0, unsigned int _minor=0, unsigned int _patch=0)
unsigned int getPatch() const
std::vector< std::string > split(const std::string &_source, const std::string &_delims="\t\n ")
std::string toString(T p)
bool operator<=(const UString::_const_fwd_iterator &left, const UString::_const_fwd_iterator &right)
bool operator==(const UString::_const_fwd_iterator &left, const UString::_const_fwd_iterator &right)
bool operator>=(const UString::_const_fwd_iterator &left, const UString::_const_fwd_iterator &right)
bool operator>(const UString::_const_fwd_iterator &left, const UString::_const_fwd_iterator &right)
bool operator!=(const UString::_const_fwd_iterator &left, const UString::_const_fwd_iterator &right)
bool operator<(const UString::_const_fwd_iterator &left, const UString::_const_fwd_iterator &right)