Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
file.h File Reference
#include <iostream>
#include "storm/exceptions/FileIoException.h"
#include "storm/utility/macros.h"
Include dependency graph for file.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  storm
 LabParser.cpp.
 
namespace  storm::io
 

Functions

void storm::io::openFile (std::string const &filepath, std::ofstream &filestream, bool append=false, bool silent=false)
 Open the given file for writing.
 
void storm::io::openFile (std::string const &filepath, std::ifstream &filestream)
 Open the given file for reading.
 
void storm::io::closeFile (std::ofstream &stream)
 Close the given file after writing.
 
void storm::io::closeFile (std::ifstream &stream)
 Close the given file after reading.
 
bool storm::io::fileExistsAndIsReadable (std::string const &filename)
 Tests whether the given file exists and is readable.
 
template<class CharT , class Traits , class Allocator >
std::basic_istream< CharT, Traits > & storm::io::getline (std::basic_istream< CharT, Traits > &input, std::basic_string< CharT, Traits, Allocator > &str)
 Overloaded getline function which handles different types of newline (
and \r).