#include "Logger.h"
#include "Math/ExtendedMath.h"
#include <fstream>
#include <string>
#include <vector>
Go to the source code of this file.
|
| bool | helpers::writeToFile (const std::string &filename, const std::string &filecontent) |
| | Writes a string to a file. More...
|
| |
| void | helpers::writeCommandLineToFile (const std::string &filename, const int argc, char *const argv[]) |
| | Writes a string to a file. More...
|
| |
| bool | helpers::addToFile (const std::string &filename, const std::string &filecontent) |
| | Adds a string to an existing file. More...
|
| |
| bool | helpers::fileExists (const std::string &strFilename) |
| | Function to check if a file exists, is used to check if a run has already need done. More...
|
| |
| bool | helpers::openFile (std::fstream &file, const std::string &filename, std::fstream::openmode mode) |
| | Provides a simple interface for opening a file. More...
|
| |
| std::vector< double > | helpers::readArrayFromFile (const std::string &filename, int &n, int &m) |
| |
| void | helpers::more (const std::string &filename, unsigned nLines=constants::unsignedMax) |
| |
| bool | helpers::createDirectory (const std::string &directory, bool allowExists=false) |
| | Creates a directory. More...
|
| |
| std::string | helpers::getPath () |
| |
| template<typename T > |
| bool | helpers::readOptionalVariable (std::istream &is, const std::string &name, T &variable) |
| | Reads optional variables in the restart file. More...
|
| |
| template<typename T > |
| T | helpers::readFromFile (const std::string &fileName, const std::string &varName, const T defaultValue) |
| |