Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F66299991
version.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jun 9, 15:58
Size
1 KB
Mime Type
text/x-c
Expires
Tue, Jun 11, 15:58 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18200116
Attached To
rGOOSEFEM GooseFEM
version.hpp
View Options
/**
Implementation of version.h
\file version.hpp
\copyright Copyright 2017. Tom de Geus. All rights reserved.
\license This project is released under the GNU Public License (GPLv3).
*/
#ifndef GOOSEFEM_VERSION_HPP
#define GOOSEFEM_VERSION_HPP
#include "version.h"
namespace
GooseFEM
{
namespace
detail
{
inline
std
::
string
unquote
(
const
std
::
string
&
arg
)
{
std
::
string
ret
=
arg
;
ret
.
erase
(
std
::
remove
(
ret
.
begin
(),
ret
.
end
(),
'\"'
),
ret
.
end
());
return
ret
;
}
}
inline
std
::
string
version
()
{
return
detail
::
unquote
(
std
::
string
(
QUOTE
(
GOOSEFEM_VERSION
)));
}
inline
std
::
vector
<
std
::
string
>
version_dependencies
()
{
std
::
vector
<
std
::
string
>
ret
;
ret
.
push_back
(
"goosefem="
+
version
());
ret
.
push_back
(
"xtensor="
+
detail
::
unquote
(
std
::
string
(
QUOTE
(
XTENSOR_VERSION_MAJOR
)))
+
"."
+
detail
::
unquote
(
std
::
string
(
QUOTE
(
XTENSOR_VERSION_MINOR
)))
+
"."
+
detail
::
unquote
(
std
::
string
(
QUOTE
(
XTENSOR_VERSION_PATCH
))));
#if defined(GOOSEFEM_EIGEN) || defined(EIGEN_WORLD_VERSION)
ret
.
push_back
(
"eigen="
+
detail
::
unquote
(
std
::
string
(
QUOTE
(
EIGEN_WORLD_VERSION
)))
+
"."
+
detail
::
unquote
(
std
::
string
(
QUOTE
(
EIGEN_MAJOR_VERSION
)))
+
"."
+
detail
::
unquote
(
std
::
string
(
QUOTE
(
EIGEN_MINOR_VERSION
))));
#endif
return
ret
;
}
}
// namespace GooseFEM
#endif
Event Timeline
Log In to Comment