Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F70409951
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
Sat, Jul 6, 17:54
Size
1 KB
Mime Type
text/x-c
Expires
Mon, Jul 8, 17:54 (2 d)
Engine
blob
Format
Raw Data
Handle
18777627
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