BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
SysUtils.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Base/Util/SysUtils.h
6 //! @brief Defines various stuff in namespace Utils.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_BASE_UTIL_SYSUTILS_H
21 #define BORNAGAIN_BASE_UTIL_SYSUTILS_H
22 
23 #include <string>
24 
25 //! System call wrappers.
26 
27 namespace BaseUtils::System {
28 
29 std::string getCurrentDateAndTime();
30 
31 //! Returns environment variable.
32 std::string getenv(const std::string& name);
33 
34 } // namespace BaseUtils::System
35 
36 #endif // BORNAGAIN_BASE_UTIL_SYSUTILS_H
37 #endif // USER_API
System call wrappers.
Definition: SysUtils.h:27
std::string getenv(const std::string &name)
Returns environment variable.
Definition: SysUtils.cpp:32
std::string getCurrentDateAndTime()
Definition: SysUtils.cpp:22