NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
filecheck.cpp File Reference
#include <wx/filename.h>
#include "../../kernel.hpp"
Include dependency graph for filecheck.cpp:

Go to the source code of this file.

Functions

static bool checkInvalidChars (std::string sPathname)
 This function checks for the invalid chars that can not appear in a valid directory name. More...
 
bool is_dir (std::string sPathname)
 This function checks whether a given string is a valid directory path. More...
 
bool is_file (std::string sPathname)
 This function checks whether a given string is a valid file path. More...
 

Function Documentation

◆ checkInvalidChars()

static bool checkInvalidChars ( std::string  sPathname)
static

This function checks for the invalid chars that can not appear in a valid directory name.

Parameters
sPathnamestd::string
Returns
bool

Definition at line 14 of file filecheck.cpp.

Referenced by FileSystem::cleanPath(), is_dir(), and is_file().

◆ is_dir()

bool is_dir ( std::string  sPathname)

This function checks whether a given string is a valid directory path.

Parameters
sPathnamestd::string
Returns
bool

Definition at line 37 of file filecheck.cpp.

References checkInvalidChars(), NumeReKernel::getFileSystem(), NumeReKernel::getInstance(), and FileSystem::ValidFolderName().

Referenced by strfnc_isdir().

Here is the call graph for this function:

◆ is_file()

bool is_file ( std::string  sPathname)

This function checks whether a given string is a valid file path.

Parameters
sPathnamestd::string
Returns
bool

Definition at line 67 of file filecheck.cpp.

References checkInvalidChars(), NumeReKernel::getFileSystem(), NumeReKernel::getInstance(), and FileSystem::ValidFileName().

Referenced by strfnc_isfile().

Here is the call graph for this function: