Viskores  1.0
Namespaces | Functions
FileUtils.h File Reference
#include <viskores/io/viskores_io_export.h>
#include <string>

Go to the source code of this file.

Namespaces

 viskores
 Groups connected points that have the same field value.
 
 viskores::io
 Viskores File input and output classes.
 

Functions

bool viskores::io::EndsWith (const std::string &value, const std::string &ending)
 Checks if a provided string ends with a specific substring. More...
 
std::string viskores::io::Filename (const std::string &filePath)
 Returns the filename component of a filePath string. More...
 
std::string viskores::io::ParentPath (const std::string &filePath)
 Returns the directory component of a filePath string. More...
 
bool viskores::io::CreateDirectoriesFromFilePath (const std::string &filePath)
 Creates all the directories found in a given filePath component if they don't exist. More...
 
std::string viskores::io::MergePaths (const std::string &filePathPrefix, const std::string &filePathSuffix)
 Merges two filepath strings together using the correct system filepath seperator EX: MergePaths("path/to/merge", "some/filename.txt") = "path/to/merge/some/filename.txt" EX: MergePaths("path/to/merge/", "/some/filename.txt") = "path/to/merge/some/filename.txt". More...
 
std::string viskores::io::PrefixStringToFilename (const std::string &filePath, const std::string &prefix)
 Takes the supplied prefix and prepends it to the filename for the provided filePath EX: PrefixStringToFilename("/some/path/to/filename.txt", "prefix-") = "/some/path/to/prefix-filename.txt". More...
 
char viskores::io::GetWindowsPathSeperator (const std::string &filePath)
 determine which path separator to use for windows given a provided path Should return one of either '\' or '/' depending on what the provided path uses. More...