15 #ifndef VERSION_HPP_INCLUDED
16 #define VERSION_HPP_INCLUDED
151 return nums_.at(index);
bool is_canonical() const
Whether the version number is considered canonical for mainline Wesnoth.
bool do_version_check(const version_info &a, VERSION_COMP_OP op, const version_info &b)
void set_component(size_t index, unsigned int value)
Sets any numeric component from a version number.
void set_major_version(unsigned int)
Sets the major version number.
void set_revision_level(unsigned int)
Sets the revision level.
const std::vector< unsigned int > & components() const
Read-only access to all numeric components.
bool operator<(const version_info &, const version_info &)
Less-than operator for version_info.
GLdouble GLdouble GLdouble b
bool operator!=(const version_info &, const version_info &)
Inequality operator for version_info.
bool operator>(const version_info &, const version_info &)
Greater-than operator for version_info.
GLsizei const GLfloat * value
void set_special_version(const std::string &str)
Sets the special version suffix.
GLboolean GLboolean GLboolean GLboolean a
void set_minor_version(unsigned int)
Sets the minor version number.
bool operator>=(const version_info &, const version_info &)
Greater-than-or-equal operator for version_info.
std::string str() const
Serializes the version number into string form.
char special_version_separator() const
Retrieves the special version separator (e.g.
unsigned int revision_level() const
Retrieves the revision level (x3 in "x1.x2.x3").
bool operator<=(const version_info &, const version_info &)
Less-than-or-equal operator for version_info.
unsigned int minor_version() const
Retrieves the minor version number (x2 in "x1.x2.x3").
unsigned int major_version() const
Retrieves the major version number (x1 in "x1.x2.x3").
Represents version numbers.
unsigned int get_component(size_t index) const
Returns any numeric component from a version number.
VERSION_COMP_OP parse_version_op(const std::string &op_str)
bool operator==(const version_info &, const version_info &)
Equality operator for version_info.
version_info()
Default constructor.
const std::string & special_version() const
Retrieves the special version suffix (e.g.
std::vector< unsigned int > nums_
GLsizei const GLcharARB ** string