Functions
PLMD::config Namespace Reference

Functions

std::string getSoExt ()
 Return the extension of shared libraries on this system. More...
 
bool isInstalled ()
 
std::string getPlumedRoot ()
 Return path to the root of the PLUMED package. More...
 
std::string getPlumedHtmldir ()
 Return path to documentation. More...
 
std::string getPlumedIncludedir ()
 Return path to the include directory. More...
 
std::string getPlumedProgramName ()
 Return the name used for installing PLUMED. More...
 
std::string getEnvCommand ()
 Return a string containing a sequence of environment variables. More...
 
std::string getVersion ()
 Return the short PLUMED version. More...
 
std::string getVersionLong ()
 Return the long PLUMED version. More...
 
std::string getVersionGit ()
 Return the git PLUMED verion E.g. More...
 
std::string getMakefile ()
 Return the content of Makefile.conf in a single string. More...
 
bool hasMatheval ()
 
bool hasDlopen ()
 
bool hasAlmost ()
 
bool hasCregex ()
 
bool hasMolfile ()
 
bool hasExternalMolfile ()
 
bool hasZlib ()
 
bool hasXdrfile ()
 

Function Documentation

std::string PLMD::config::getEnvCommand ( )

Return a string containing a sequence of environment variables.

The returned string has the form:

PLUMED_ROOT=/path PLUMED_HTMLDIR=/path ... etc

This string is used internally in PLUMED to run scripts located in plumedroot/script. For instance, the patch script can be run executing the following command:

config::getEnvCommand()+" \""+getPlumedRoot()+"\"/scripts/patch.sh";

Notice that the getPlumedRoot() output is enclosed in escaped quotes. This allows this directory to have spaces in its name.

std::string PLMD::config::getMakefile ( )

Return the content of Makefile.conf in a single string.

Can be used to inspect the variables used to customize PLUMED. Notice that this reflects the content of the Makefile.conf file. Since some of the there defined variables can be overwritten at install (e.g., one can use make install prefix=/new/path to change the installation path) their values could be not faithful

std::string PLMD::config::getPlumedHtmldir ( )

Return path to documentation.

User documentation is located in getPlumedHtmldir()+"/user-doc/html/index.html" Developer documentation is located in getPlumedHtmldir()+"/developer-doc/html/index.html"

std::string PLMD::config::getPlumedIncludedir ( )

Return path to the include directory.

The header file for PLUMED wrapper is in getPlumedIncludedir()+getPlumedProgramName()+"/wrapper/Plumed.h"

std::string PLMD::config::getPlumedProgramName ( )

Return the name used for installing PLUMED.

E.g. if PLUMED has been compiled with ./configure --program-suffix _mpi it returns "plumed_mpi"

std::string PLMD::config::getPlumedRoot ( )

Return path to the root of the PLUMED package.

std::string PLMD::config::getSoExt ( )

Return the extension of shared libraries on this system.

It is either "so" or "dylib". In case shared libraries are disabled, it returns an empty string.

std::string PLMD::config::getVersion ( )

Return the short PLUMED version.

E.g. "2.2"

std::string PLMD::config::getVersionGit ( )

Return the git PLUMED verion E.g.

"c5badb091cd30"

std::string PLMD::config::getVersionLong ( )

Return the long PLUMED version.

E.g. "2.2.3"

bool PLMD::config::hasAlmost ( )
bool PLMD::config::hasCregex ( )
bool PLMD::config::hasDlopen ( )
bool PLMD::config::hasExternalMolfile ( )
bool PLMD::config::hasMatheval ( )
bool PLMD::config::hasMolfile ( )
bool PLMD::config::hasXdrfile ( )
bool PLMD::config::hasZlib ( )
bool PLMD::config::isInstalled ( )