##// END OF EJS Templates
Adapts iterator to be MoveAssignable...
Adapts iterator to be MoveAssignable This will be necessary for purge method (using std::remove_if())

File last commit:

r21:45edf6844d32
r627:07d26320a984
Show More
Version.h.in
98 lines | 2.9 KiB | text/plain | TextLexer
// TODO copyright
/**
* @file Version.h
*/
#ifndef SCIQLOP_VERSION_H
#define SCIQLOP_VERSION_H
/***************************************************
* @SCIQLOP_CMAKE_GENERATION_WARNING@ *
***************************************************/
//#include "SciqlopExport.h"
#include <QtCore/QString>
class QDateTime;
namespace sciqlop {
/**
* Holds the version of Sciqlop.
*
* @attention Don't update this class directly, it is generated from the
* `resources/Version.h.in` and `resources/Version.cpp.in` files, along with
* the cmake variables defined in the `cmake/sciqlop_version.cmake` file.
*
* To change the Sciqlop version number, update the `cmake/sciqlop_version.cmake`
* file, and to change this class other than to change the version number,
* update the `resources/Version.h.in` and `resources/Version.cpp.in` files.
* @ingroup Utils
*/
class /*SCIQLOP_API*/ Version {
public:
/**
* Retrieve the version of Sciqlop.
*
* The version is of the form MAJOR.MINOR.PATCH. If a suffix has been
* provided to the version, it is appended after the PATCH.
*
* The version can be modified by updating the cmake/sciqlop_version.cmake
* file.
*
* @return The version of Sciqlop as a QString.
*/
static QString version()
{
static const QString v("@SCIQLOP_VERSION@");
return v;
}
/**
* @return The datetime of the build.
*/
static QDateTime buildDateTime();
/**
* Major version.
*/
static const int VERSION_MAJOR = @SCIQLOP_VERSION_MAJOR@;
/**
* Minor version.
*/
static const int VERSION_MINOR = @SCIQLOP_VERSION_MINOR@;
/**
* Patch version.
*/
static const int VERSION_PATCH = @SCIQLOP_VERSION_PATCH@;
/**
* Suffix version.
*/
static const char *VERSION_SUFFIX;
/**
* Compile date computed with the __DATE__ macro.
*
* From the C99 standard:
* __DATE__: The date of translation of the preprocessing translation unit:
* a character string literal of the form "Mmm dd yyyy", where the names of
* the months are the same as those generated by the asctime function, and
* the first character of dd is a space character if the value is less than
* 10. If the date of translation is not available, an
* implementation-defined valid date shall be supplied.
*/
static const char *BUILD_DATE;
/**
* Compile time computed with the __TIME__ macro.
*
* From the C99 standard:
* __TIME__: The time of translation of the preprocessing translation unit:
* a character string literal of the form "hh:mm:ss" as in the time
* generated by the asctime function. If the time of translation is not
* available, an implementation-defined valid time shall be supplied.
*/
static const char *BUILD_TIME;
};
} // namespace sciqlop
#endif // SCIQLOP_VERSION_H