All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Config.cpp
Go to the documentation of this file.
1 /* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2  Copyright (c) 2013 The plumed team
3  (see the PEOPLE file at the root of the distribution for a list of names)
4 
5  See http://www.plumed-code.org for more information.
6 
7  This file is part of plumed, version 2.0.
8 
9  plumed is free software: you can redistribute it and/or modify
10  it under the terms of the GNU Lesser General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  (at your option) any later version.
13 
14  plumed is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public License
20  along with plumed. If not, see <http://www.gnu.org/licenses/>.
21 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
22 
23 #include "Config.h"
24 #include "version.h"
25 #include <cstring>
26 
27 namespace PLMD{
28 namespace config{
29 
30 std::string getSoExt(){
31  return "so";
32 }
33 
34 std::string getPlumedRoot(){
35  return "/scratch/bussi/nightly/plumed2/";
36 }
37 
38 std::string getVersion(){
39  return PLUMED_VERSION_SHORT;
40 }
41 
42 std::string getVersionLong(){
43  return PLUMED_VERSION_LONG;
44 }
45 
46 std::string getVersionGit(){
47  return PLUMED_VERSION_GIT;
48 }
49 
50 std::string getMakefile(){
51  static const char conf [] ={
52 #include "Makefile.conf.xxd"
53  , 0x00 };
54  return std::string(conf,conf+std::strlen(conf));
55 }
56 
57 bool hasMatheval(){
58 #if __PLUMED_HAS_MATHEVAL
59  return true;
60 #else
61  return false;
62 #endif
63 }
64 
65 bool hasDlopen(){
66 #if __PLUMED_HAS_DLOPEN
67  return true;
68 #else
69  return false;
70 #endif
71 }
72 
73 bool hasAlmost(){
74 #if __PLUMED_HAS_ALMOST
75  return true;
76 #else
77  return false;
78 #endif
79 }
80 
81 
82 bool hasCregex(){
83 #if __PLUMED_HAS_CREGEX
84  return true;
85 #else
86  return false;
87 #endif
88 }
89 
90 
91 
92 }
93 }
94 
std::string getMakefile()
Definition: Config.cpp:50
std::string getPlumedRoot()
Definition: Config.cpp:34
std::string getVersionLong()
Definition: Config.cpp:42
#define PLUMED_VERSION_SHORT
Definition: version.h:1
std::string getVersion()
Definition: Config.cpp:38
#define PLUMED_VERSION_LONG
Definition: version.h:2
#define PLUMED_VERSION_GIT
Definition: version.h:3
bool hasAlmost()
Definition: Config.cpp:73
bool hasCregex()
Definition: Config.cpp:82
bool hasDlopen()
Definition: Config.cpp:65
std::string getVersionGit()
Definition: Config.cpp:46
std::string getSoExt()
Definition: Config.cpp:30
bool hasMatheval()
Definition: Config.cpp:57