Go to the documentation of this file.
   10 #ifndef vtk_m_io_FileUtils_h 
   11 #define vtk_m_io_FileUtils_h 
   13 #include <vtkm/io/vtkm_io_export.h> 
   23 VTKM_IO_EXPORT 
bool EndsWith(
const std::string& value, 
const std::string& ending);
 
   27 VTKM_IO_EXPORT std::string 
Filename(
const std::string& filePath);
 
   31 VTKM_IO_EXPORT std::string 
ParentPath(
const std::string& filePath);
 
   40 VTKM_IO_EXPORT std::string 
MergePaths(
const std::string& filePathPrefix,
 
   41                                       const std::string& filePathSuffix);
 
   46                                                   const std::string& prefix);
 
   56 #endif //vtk_m_io_FileUtils_h 
  
Groups connected points that have the same field value.
Definition: Atomic.h:19
 
VTKM_IO_EXPORT std::string ParentPath(const std::string &filePath)
Returns the directory component of a filePath string.
 
VTKM_IO_EXPORT std::string MergePaths(const std::string &filePathPrefix, const std::string &filePathSuffix)
Merges two filepath strings together using the correct system filepath seperator EX: MergePaths("path...
 
VTKM_IO_EXPORT char GetWindowsPathSeperator(const std::string &filePath)
determine which path separator to use for windows given a provided path Should return one of either '...
 
VTKM_IO_EXPORT std::string Filename(const std::string &filePath)
Returns the filename component of a filePath string.
 
VTKM_IO_EXPORT bool CreateDirectoriesFromFilePath(const std::string &filePath)
Creates all the directories found in a given filePath component if they don't exist.
 
VTKM_IO_EXPORT std::string PrefixStringToFilename(const std::string &filePath, const std::string &prefix)
Takes the supplied prefix and prepends it to the filename for the provided filePath EX: PrefixStringT...
 
VTKM_IO_EXPORT bool EndsWith(const std::string &value, const std::string &ending)
Checks if a provided string ends with a specific substring.