The Battle for Wesnoth  1.19.5+dev
Classes | Namespaces | Enumerations | Functions
game_version.hpp File Reference

Interfaces for manipulating version numbers of engine, add-ons, etc. More...

#include <string>
#include <vector>
Include dependency graph for game_version.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  version_info
 Represents version numbers. More...
 

Namespaces

 game_config
 Game configuration data as global variables.
 

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

Detailed Description

Interfaces for manipulating version numbers of engine, add-ons, etc.

Definition in file game_version.hpp.

Enumeration Type Documentation

◆ VERSION_COMP_OP

Enumerator
OP_INVALID 
OP_EQUAL 
OP_NOT_EQUAL 
OP_LESS 
OP_LESS_OR_EQUAL 
OP_GREATER 
OP_GREATER_OR_EQUAL 

Definition at line 202 of file game_version.hpp.

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)