File: version.cpp

package info (click to toggle)
stopt 5.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,772 kB
  • sloc: cpp: 70,373; python: 5,942; makefile: 67; sh: 57
file content (24 lines) | stat: -rw-r--r-- 726 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2016 EDF
// All Rights Reserved
// This code is published under the GNU Lesser General Public License (GNU LGPL)
#include <boost/version.hpp>
#include <Eigen/Core>
#include "StOpt/core/utils/version.h"

namespace StOpt
{
std::string getStOptVersion()
{
    std::stringstream stOpt_version;

    stOpt_version << "StOpt version "
                  << STOPT_MAJOR_VERSION << "."
                  << STOPT_MINOR_VERSION << " \n";

    stOpt_version << "Boost version " << BOOST_VERSION / 100000 << "." << BOOST_VERSION / 100 % 1000 << "." << BOOST_VERSION % 100 << "\n";

    stOpt_version << "Eigen version 3." << EIGEN_MAJOR_VERSION << "." << EIGEN_MINOR_VERSION << "\n";

    return stOpt_version.str();
}
}