FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
Version::FMTversion Class Reference

#include <FMTversion.hpp>

Inheritance diagram for Version::FMTversion:
[legend]
Collaboration diagram for Version::FMTversion:
[legend]

Public Member Functions

 FMTversion ()=default
 
 ~FMTversion ()=default
 
- Public Member Functions inherited from Core::FMTobject
 FMTobject ()
 
virtual ~FMTobject ()
 
 FMTobject (const std::shared_ptr< Exception::FMTexceptionhandler > exhandler)
 
 FMTobject (const FMTobject &rhs)
 
FMTobjectoperator= (const FMTobject &rhs)
 
virtual void passinlogger (const std::shared_ptr< Logging::FMTlogger > &logger)
 
void passinexceptionhandler (const std::shared_ptr< Exception::FMTexceptionhandler > &exhandler)
 
void redirectlogtofile (const std::string &location)
 
virtual void setdefaultlogger ()
 
virtual void setquietlogger ()
 
virtual void settasklogger ()
 
virtual void setdebuglogger ()
 
void setdefaultexceptionhandler ()
 
void setquietexceptionhandler ()
 
void setdebugexceptionhandler ()
 
void setfreeexceptionhandler ()
 
void disablenestedexceptions ()
 
void enablenestedexceptions ()
 
void seterrorstowarnings (const std::vector< Exception::FMTexc > &errors)
 
void setmaxwarningsbeforesilenced (const size_t &maxwarningcount)
 

Static Public Member Functions

static int getmajor ()
 
static int getminor ()
 
static int getpatch ()
 
static std::string getversion ()
 
static std::string getdatenow ()
 
static std::string getbuilddate ()
 
static bool isatleast (int major, int minor, int patch)
 
static bool hasfeature (const std::string &name)
 
static std::string getlicense (bool french=false)
 
- Static Public Member Functions inherited from Core::FMTobject
static std::string getruntimelocation ()
 
static unsigned long long getavailablememory ()
 

Additional Inherited Members

- Protected Member Functions inherited from Core::FMTobject
template<class Archive >
void forcesave (Archive &ar, const unsigned int version) const
 
template<class Archive >
void forceload (Archive &ar, const unsigned int version)
 
void checksignals () const
 
void setCPLhandler ()
 
- Static Protected Member Functions inherited from Core::FMTobject
static std::chrono::time_point< std::chrono::high_resolution_clock > getclock ()
 
template<class chrono >
static double getduration (const std::chrono::time_point< std::chrono::high_resolution_clock > &startclock)
 
static std::string getdurationinseconds (const std::chrono::time_point< std::chrono::high_resolution_clock > &startclock)
 
- Static Protected Attributes inherited from Core::FMTobject
static std::shared_ptr< Exception::FMTexceptionhandler_exhandler
 A shared pointer to the exception handler.
 
static std::shared_ptr< Logging::FMTlogger_logger
 A shared pointer to the logger.
 

Detailed Description

The only purpose of this class is to let the user see which version of FMT he's using. It also gives some information about the build date and the actual date. It also informs the user about which features are avalaible in FMT.

Constructor & Destructor Documentation

◆ FMTversion()

Version::FMTversion::FMTversion ( )
default

Default constructor of FMTversion.

◆ ~FMTversion()

Version::FMTversion::~FMTversion ( )
default

Destructor of FMTversion.

Member Function Documentation

◆ getbuilddate()

static std::string Version::FMTversion::getbuilddate ( )
static

Getter of the build date: date

◆ getdatenow()

static std::string Version::FMTversion::getdatenow ( )
static

Getter of the actual date: Day Month date

◆ getlicense()

static std::string Version::FMTversion::getlicense ( bool  french = false)
static

Returns thes license has a regular string if french = true the returned license will be in french

◆ getmajor()

static int Version::FMTversion::getmajor ( )
static

Getter of the major version of FMT.

◆ getminor()

static int Version::FMTversion::getminor ( )
static

Getter of the minor version of FMT.

◆ getpatch()

static int Version::FMTversion::getpatch ( )
static

Getter of the patch version of FMT.

◆ getversion()

static std::string Version::FMTversion::getversion ( )
static

Getter of the string of the version : MAjor.Minor.PATCH

◆ hasfeature()

static bool Version::FMTversion::hasfeature ( const std::string &  name)
static

Test if the FMT version have the named feature. Features GDAL,OSI,MOSEK,PYTHON,R.

◆ isatleast()

static bool Version::FMTversion::isatleast ( int  major,
int  minor,
int  patch 
)
static

Test if the FMT version is at least the given major/minor/patch parameters.


The documentation for this class was generated from the following file: