Files
GDevelop/Core/GDCore/Tools/VersionWrapper.h
Florian Rival 1a27f689e0 Remove deprecated/unused/unmaintained GDCpp code (#2930)
* This also includes extensions code.

Only show in developer changelog
2021-08-17 14:34:58 +02:00

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