Go to the documentation of this file.
35 "File " << path <<
" does not exist for opening. \n";
40 inStream_ = makeUnique<std::ifstream>(
41 path.
wordPath(), std::ios_base::in | std::ios_base::binary);
43 inStream_ = makeUnique<std::ifstream>(
46 if( !inStream_->is_open())
50 "File " << path <<
" cannot be opened. \n";
75 outStream_ = makeUnique< std::ofstream>(
76 path.
wordPath(), std::ios_base::out| std::ios::binary|std::ios::app);
80 outStream_ = makeUnique< std::ofstream>(
81 path.
wordPath(), std::ios_base::out| std::ios::binary);
88 outStream_ = makeUnique< std::ofstream>(
89 path.
wordPath(), std::ios_base::out|std::ios::app);
93 outStream_ = makeUnique< std::ofstream>(
94 path.
wordPath(), std::ios_base::out);
98 if(!outStream_->is_open())
101 "File " << path <<
" cannot be opened. \n";
uniquePtr< std::ofstream > outStream_
out file stream
#define fatalExit
Fatal exit.
bool exist() const
Check if the path exists.
void openInFile(const fileSystem &path)
open input file
void close()
close streams
Manages file pathes, manupulate and combines them.
std::ofstream & outStream()
Access output file stream.
#define fatalErrorInFunction
Report a fatal error and function name and exit the application.
fileSystem dirPath() const
Dir part of the path.
uniquePtr< std::ifstream > inStream_
in file stream
fileStream(const fileSystem &path, bool outStream=false, bool binary=false, bool append=false)
From file path and input type and format.
word wordPath() const
Path in word type.
fileSystem createDirs() const
Operate on dir path only Create dir based on the path and returns the canonical path.
void openOutFile(const fileSystem &path)
open output file
std::ifstream & inStream()
Access input file stream.