8#ifndef PYEXPORTVERSION_H_INCLUDED
9#define PYEXPORTVERSION_H_INCLUDED
11#include <boost/python/docstring_options.hpp>
12#include <boost/python/args.hpp>
14#include "boost/python.hpp"
23 namespace bp = boost::python;
24 bp::object SpatialModule(bp::handle<>(bp::borrowed(PyImport_AddModule(
"FMT.Version"))));
25 bp::scope().attr(
"Version") = SpatialModule;
26 bp::scope Spatial_scope = SpatialModule;
27 bp::scope().attr(
"__doc__") =
".. module:: Version\n"
29 " :platform: Unix, Windows\n"
30 " :synopsis: Version module.\n"
34 boost::python::class_<Version::FMTversion>(
"FMTversion",
"@DocString(FMTversion)")
36 "@DocString(FMTversion::getmajor)").staticmethod(
"getmajor")
38 "@DocString(FMTversion::getminor)").staticmethod(
"getminor")
40 "@DocString(FMTversion::getpatch)").staticmethod(
"getpatch")
42 "@DocString(FMTversion::getversion)").staticmethod(
"getversion")
44 "@DocString(FMTversion::isatleast)").staticmethod(
"isatleast")
46 "@DocString(FMTversion::hasfeature)").staticmethod(
"hasfeature")
48 getlicense_overloads(bp::args(
"french"),
"@DocString(FMTversion::getlicense)")).staticmethod(
"getlicense");
static std::string getversion()
static std::string getlicense(bool french=false)
static bool hasfeature(const std::string &name)
static bool isatleast(int major, int minor, int patch)
Definition: PYdefinitions.hpp:14
void exportVersion()
Definition: PYexportVersion.hpp:21