Namespaces | Defines | Functions
tools/SwissTools.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  openfluid
namespace  openfluid::core
namespace  openfluid::tools

Defines

#define STRINGIFY(x)   XSTRINGIFY(x)
#define XSTRINGIFY(x)   #x

Functions

template<typename T >
bool openfluid::tools::ConvertString (const std::string &StrToConvert, T *Converted)
template<typename T >
bool openfluid::tools::ConvertValue (const T ValueToConvert, std::string *StrConverted)
void DLLEXPORT openfluid::tools::TokenizeString (const std::string &StrToTokenize, std::vector< std::string > &Tokens, const std::string &Delimiters)
bool openfluid::tools::IsCloseEnough (double A, double B, double Epsilon=0.00001)
bool openfluid::tools::IsVeryClose (double A, double B, double Epsilon=0.00001)
bool DLLEXPORT openfluid::tools::WildcardMatching (const std::string Pattern, const std::string Str)
std::vector< std::string >
DLLEXPORT 
openfluid::tools::GetFilesByExt (const std::string DirToExplore, const std::string Ext, bool WithPath=false, bool ExtIncludeDot=false)
std::vector< std::string > openfluid::tools::SplitString (const std::string StrToSplit, const std::string Separators, bool ReturnsEmpty=false)
bool DLLEXPORT openfluid::tools::EmptyDirectoryRecursively (const std::string DirPath)
std::string DLLEXPORT openfluid::tools::ReplaceEmptyString (std::string SourceStr, const std::string &ReplaceStr)
std::string DLLEXPORT openfluid::tools::RemoveTrailingSlashes (std::string Str)
void DLLEXPORT openfluid::tools::printSTDOUT (std::vector< std::string > Strings, std::string Sep)
openfluid::core::DateTime DLLEXPORT openfluid::tools::GenerateDateTimeFromStep (openfluid::core::DateTime DT0, openfluid::core::TimeStep_t TS, unsigned int CurrentStep)
void DLLEXPORT openfluid::tools::CopyDirectoryRecursively (const std::string SourcePath, const std::string IntoPath, const bool DontCopyDotDirs=false)
std::vector< std::string >
DLLEXPORT 
openfluid::tools::GetFileLocationsUsingPATHEnvVar (const std::string Filename)
int DLLEXPORT openfluid::tools::CompareVersions (const std::string &VersionA, const std::string &VersionB, bool Strict=true)
bool DLLEXPORT openfluid::tools::OpenURLInBrowser (const std::string &URL)

Detailed Description

Author:
JC.Fabre <fabrejc@supagro.inra.fr>

Define Documentation

#define STRINGIFY (   x)    XSTRINGIFY(x)
#define XSTRINGIFY (   x)    #x

Generated using Doxygen 1.7.6.1
Creative Commons License Creative Commons By-NC-ND license