|
ACTS
Experiment-independent tracking
|
Wrapper around a file stream. More...
#include <detray/io/utils/file_handle.hpp>
Public Member Functions | |
| file_handle ()=delete | |
| All writers must define a file name. | |
| file_handle (const std::string &file_name, std::ios_base::openmode mode=std::ios_base::in|std::ios_base::out) | |
| Open the file at the supplied path. | |
| file_handle (const std::string &name, const std::string &extension, std::ios_base::openmode mode=std::ios_base::in|std::ios_base::out) | |
File gets created with a name and extension. | |
| ~file_handle () | |
| Destructor closes the file. | |
| std::fstream & | operator* () |
Wrapper around a file stream.
Performs some checks and offers some convenience functionality:
|
explicit |
Open the file at the supplied path.
| file_name | complete file path |
| mode | stream open mode |
| detray::io::file_handle::file_handle | ( | const std::string & | name, |
| const std::string & | extension, | ||
| std::ios_base::openmode | mode = std::ios_base::in | std::ios_base::out ) |
File gets created with a name and extension.
| name | file path without its extension |
| extension | file extension, including its leading dot |
| mode | stream open mode |
| std::fstream & detray::io::file_handle::operator* | ( | ) |