Skip to content
Snippets Groups Projects
Commit 2e4a8c53 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Version number moved in Core

parent d6b6754f
No related branches found
No related tags found
No related merge requests found
......@@ -147,7 +147,6 @@ HEADERS += \
inc/TestSpecularMatrix.h \
inc/TestToySimulation.h \
inc/TreeEventStructure.h \
inc/Version.h \
inc/TestBugs.h
myIncludes = $$PWD/inc \
......
......@@ -34,7 +34,7 @@ int main(int argc, char **argv)
Utils::EnableFloatingPointExceptions();
std::cout << AppVersion::g_app_name << " "
<< AppVersion::g_app_version_number << std::endl;
<< AppVersion::GetVersionNumber() << std::endl;
FunctionalTestFactory test_factory;
RegisterFunctionalTests(&test_factory);
......
......@@ -302,7 +302,8 @@ HEADERS += \
StandardSamples/IsGISAXS06Builder.h \
StandardSamples/IsGISAXS09Builder.h \
Algorithms/inc/LayerStrategyBuilder.h \
Algorithms/inc/DecoratedLayerDWBASimulation.h
Algorithms/inc/DecoratedLayerDWBASimulation.h \
Samples/inc/Version.h
contains(CONFIG, BORNAGAIN_PYTHON) {
include($$PWD/python_module.pri)
......
......@@ -79,6 +79,7 @@
#include "StochasticSampledParameter.h"
#include "Types.h"
#include "Units.h"
#include "Version.h"
//! file containig additional exposers
#include "PythonCoreExposer.h"
......
// ************************************************************************** //
//
//
// BornAgain: simulate and fit scattering at grazing incidence
//
//! @file App/inc/Version.h
......@@ -16,11 +16,30 @@
#ifndef VERSION_H_
#define VERSION_H_
#include <string>
#include <sstream>
namespace AppVersion {
const std::string g_app_name = "Born Again Functional tests";
const std::string g_app_version_number = "v0.8.1";
const std::string g_app_name = "Born Again";
const int major_version_number = 0;
const int minor_version_number = 8;
const int patch_version_number = 2;
std::string GetVersionNumber()
{
std::ostringstream ostr;
ostr << major_version_number
<< "."
<< minor_version_number
<< "."
<< patch_version_number ;
return ostr.str();
}
}
#endif /* VERSION_H_ */
#endif /* VERSION_H_ */
......@@ -211,7 +211,7 @@ def ManualClassTunings(mb):
for fun in cl.member_functions():
if fun.name == "setMaterial":fun.include()
for fun in cl.member_functions():
print "XXX", fun
if("void ( ::Layer::* )( ::IDecoration * )" in fun.decl_string): fun.exclude()
cl.constructors().include() # including back constructors with pointers
#
cl = mb.class_("Simulation")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment