mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
94 lines
2.0 KiB
C++
94 lines
2.0 KiB
C++
/** \file
|
|
* GDevelop
|
|
* 2008-2016 Florian Rival (Florian.Rival@gmail.com)
|
|
*/
|
|
|
|
#ifndef GDCORE_VERSIONWRAPPER_H
|
|
#define GDCORE_VERSIONWRAPPER_H
|
|
#include "GDCore/String.h"
|
|
|
|
namespace gd {
|
|
|
|
/**
|
|
* \brief Used to get information about GDevelop Core version.
|
|
*
|
|
* \ingroup Tools
|
|
*/
|
|
class GD_CORE_API VersionWrapper {
|
|
public:
|
|
/**
|
|
* \brief Get GDevelop Core Major version number
|
|
*/
|
|
static int Major();
|
|
|
|
/**
|
|
* \brief Get GDevelop Core Minor version number
|
|
*/
|
|
static int Minor();
|
|
|
|
/**
|
|
* \brief Get GDevelop Core Build version number
|
|
*/
|
|
static int Build();
|
|
|
|
/**
|
|
* \brief Get GDevelop Core Revision version number
|
|
*/
|
|
static int Revision();
|
|
|
|
/**
|
|
* \brief Get a full string containing version.
|
|
*/
|
|
static gd::String FullString();
|
|
|
|
/**
|
|
* \brief Get GDCore status ( Alpha/Beta/Release Candidate/Release )
|
|
*/
|
|
static gd::String Status();
|
|
|
|
/**
|
|
* \brief Get Year of the release
|
|
*/
|
|
static gd::String Year();
|
|
|
|
/**
|
|
* \brief Get Month of the release
|
|
*/
|
|
static gd::String Month();
|
|
|
|
/**
|
|
* \brief Get Day of the release
|
|
*/
|
|
static gd::String Date();
|
|
|
|
/**
|
|
* \brief Return true if the first version is older
|
|
* than the second version.
|
|
*/
|
|
static bool IsOlder(int major,
|
|
int minor,
|
|
int build,
|
|
int revision,
|
|
int major2,
|
|
int minor2,
|
|
int build2,
|
|
int revision2);
|
|
|
|
/**
|
|
* \brief Return true if the first version is older or equal
|
|
* to the second version.
|
|
*/
|
|
static bool IsOlderOrEqual(int major,
|
|
int minor,
|
|
int build,
|
|
int revision,
|
|
int major2,
|
|
int minor2,
|
|
int build2,
|
|
int revision2);
|
|
};
|
|
|
|
} // namespace gd
|
|
|
|
#endif // GDCORE_VERSIONWRAPPER_H
|