Interfaces for manipulating version numbers of engine, add-ons, etc. More...
#include <string>#include <vector>

Go to the source code of this file.
Classes | |
| class | version_info |
| struct | version_info::not_sane_exception |
| Thrown when trying to compare an non-sane version_info object. More... | |
Enumerations | |
| enum | VERSION_COMP_OP { OP_INVALID, OP_EQUAL, OP_NOT_EQUAL, OP_LESS, OP_LESS_OR_EQUAL, OP_GREATER, OP_GREATER_OR_EQUAL } |
Functions | |
| bool | operator== (const version_info &, const version_info &) |
| Equality operator for version_info. | |
| 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. | |
| bool | operator< (const version_info &, const version_info &) |
| Less-than operator for version_info. | |
| bool | operator>= (const version_info &, const version_info &) |
| Greater-than-or-equal operator for version_info. | |
| bool | operator<= (const version_info &, const version_info &) |
| Less-than-or-equal operator for version_info. | |
| VERSION_COMP_OP | parse_version_op (const std::string &op_str) |
| bool | do_version_check (const version_info &a, VERSION_COMP_OP op, const version_info &b) |
Interfaces for manipulating version numbers of engine, add-ons, etc.
This class assumes versions are in the format "X.Y.Z", with additional components not being associated to canonical names.
Definition in file version.hpp.
| enum VERSION_COMP_OP |
| OP_INVALID | |
| OP_EQUAL | |
| OP_NOT_EQUAL | |
| OP_LESS | |
| OP_LESS_OR_EQUAL | |
| OP_GREATER | |
| OP_GREATER_OR_EQUAL |
Definition at line 163 of file version.hpp.
| bool do_version_check | ( | const version_info & | a, | |
| VERSION_COMP_OP | op, | |||
| const version_info & | b | |||
| ) |
Definition at line 324 of file version.cpp.
References OP_EQUAL, OP_GREATER, OP_GREATER_OR_EQUAL, OP_LESS, OP_LESS_OR_EQUAL, and OP_NOT_EQUAL.
Referenced by preprocessor_data::get_chunk(), and intf_compare_versions().

| bool operator!= | ( | const version_info & | , | |
| const version_info & | ||||
| ) |
Inequality operator for version_info.
Definition at line 270 of file version.cpp.
References version_info::special_version().

| bool operator< | ( | const version_info & | , | |
| const version_info & | ||||
| ) |
Less-than operator for version_info.
Definition at line 275 of file version.cpp.
References version_info::special_version().

| bool operator<= | ( | const version_info & | , | |
| const version_info & | ||||
| ) |
Less-than-or-equal operator for version_info.
Definition at line 295 of file version.cpp.
| bool operator== | ( | const version_info & | , | |
| const version_info & | ||||
| ) |
Equality operator for version_info.
Definition at line 265 of file version.cpp.
References version_info::special_version().

| bool operator> | ( | const version_info & | , | |
| const version_info & | ||||
| ) |
Greater-than operator for version_info.
Definition at line 285 of file version.cpp.
References version_info::special_version().

| bool operator>= | ( | const version_info & | , | |
| const version_info & | ||||
| ) |
Greater-than-or-equal operator for version_info.
Definition at line 300 of file version.cpp.
| VERSION_COMP_OP parse_version_op | ( | const std::string & | op_str | ) |
Definition at line 305 of file version.cpp.
Referenced by preprocessor_data::get_chunk(), and intf_compare_versions().

| Generated by doxygen 1.7.1 on Fri May 25 2012 01:11:07 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |