BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
filetools.hpp File Reference
#include <cstdio>
#include <fstream>
#include <string>
#include "stringtools.hpp"
Include dependency graph for filetools.hpp:

Go to the source code of this file.

Namespaces

namespace  belfem
 USER GUIDES:

Enumerations

enum class  belfem::FileMode { belfem::NEW , belfem::OPEN_RDONLY , belfem::OPEN_RDONLY_PARALLEL , belfem::OPEN_RDWR }

Functions

bool belfem::file_exists (const std::string &aPath)
 this function tests if a file exists
std::string belfem::make_path_parallel (const std::string &aPath)
 this function takes a path and makes it parallel
std::string belfem::search_data_file (const std::string &aFile, const std::string &aSubDirectory)
 Resolve a data file named in an input file, looking below aSubDirectory of the shared data directory.