tools/SwissTools.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  openfluid
namespace  openfluid::tools

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 >
DLLEXPORT 
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, std::string ReplaceStr)
bool DLLEXPORT openfluid::tools::IsVectorNamedVariable (std::string Name)
std::string DLLEXPORT openfluid::tools::GetVectorNamedVariableName (std::string Name)
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)

Detailed Description

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

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