The Battle for Wesnoth  1.19.7+dev
Namespaces | Functions | Variables
game_version.cpp File Reference
#include "game_version.hpp"
#include "utils/math.hpp"
#include "lexical_cast.hpp"
#include "serialization/string_utils.hpp"
#include "wesconfig.h"
#include <cassert>
#include <functional>
#include <locale>
#include <boost/algorithm/string.hpp>
Include dependency graph for game_version.cpp:

Go to the source code of this file.

Namespaces

 game_config
 Game configuration data as global variables.
 

Functions

bool operator== (const version_info &l, const version_info &r)
 Equality operator for version_info. More...
 
bool operator!= (const version_info &l, const version_info &r)
 Inequality operator for version_info. More...
 
bool operator< (const version_info &l, const version_info &r)
 Less-than operator for version_info. More...
 
bool operator> (const version_info &l, const version_info &r)
 Greater-than operator for version_info. More...
 
bool operator<= (const version_info &l, const version_info &r)
 Less-than-or-equal operator for version_info. More...
 
bool operator>= (const version_info &l, const version_info &r)
 Greater-than-or-equal operator for version_info. More...
 
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)
 

Variables

const version_info game_config::wesnoth_version (VERSION)
 
const version_info game_config::min_savegame_version (MIN_SAVEGAME_VERSION)
 
const version_info game_config::test_version ("test")
 
const std::string game_config::revision = VERSION
 

Function Documentation

◆ do_version_check()

bool do_version_check ( const version_info a,
VERSION_COMP_OP  op,
const version_info b 
)

◆ operator!=()

bool operator!= ( const version_info l,
const version_info r 
)

Inequality operator for version_info.

Definition at line 208 of file game_version.cpp.

◆ operator<()

bool operator< ( const version_info l,
const version_info r 
)

Less-than operator for version_info.

Definition at line 213 of file game_version.cpp.

◆ operator<=()

bool operator<= ( const version_info l,
const version_info r 
)

Less-than-or-equal operator for version_info.

Definition at line 223 of file game_version.cpp.

◆ operator==()

bool operator== ( const version_info l,
const version_info r 
)

Equality operator for version_info.

Definition at line 203 of file game_version.cpp.

◆ operator>()

bool operator> ( const version_info l,
const version_info r 
)

Greater-than operator for version_info.

Definition at line 218 of file game_version.cpp.

◆ operator>=()

bool operator>= ( const version_info l,
const version_info r 
)

Greater-than-or-equal operator for version_info.

Definition at line 228 of file game_version.cpp.

◆ parse_version_op()

VERSION_COMP_OP parse_version_op ( const std::string &  op_str)