www.cemf.ir
oFstream.hpp
Go to the documentation of this file.
1 /*------------------------------- phasicFlow ---------------------------------
2  O C enter of
3  O O E ngineering and
4  O O M ultiscale modeling of
5  OOOOOOO F luid flow
6 ------------------------------------------------------------------------------
7  Copyright (C): www.cemf.ir
8  email: hamid.r.norouzi AT gmail.com
9 ------------------------------------------------------------------------------
10 Licence:
11  This file is part of phasicFlow code. It is a free software for simulating
12  granular and multiphase flows. You can redistribute it and/or modify it under
13  the terms of GNU General Public License v3 or any other later versions.
14 
15  phasicFlow is distributed to help others in their research in the field of
16  granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
17  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 
19 -----------------------------------------------------------------------------*/
20 #ifndef __oFstream_hpp__
21 #define __oFstream_hpp__
22 
23 
24 #include "fileSystem.hpp"
25 #include "fileStream.hpp"
26 #include "Ostream.hpp"
27 
28 namespace pFlow
29 {
30 
38 class oFstream
39 :
40  public fileStream,
41  public Ostream
42 {
43 public:
44 
46 
48  oFstream (const fileSystem& path, bool binary = false, bool append = false);
49 
51  oFstream( const oFstream& src) = delete;
52 
54  oFstream& operator = (const oFstream& rhs) = delete;
55 
57  virtual ~oFstream() = default;
58 
59 };
60 
61 }
62 
63 
64 #endif
Ostream.hpp
fileSystem.hpp
pFlow
Definition: demGeometry.hpp:27
pFlow::fileSystem
Manages file pathes, manupulate and combines them.
Definition: fileSystem.hpp:71
pFlow::oFstream::oFstream
oFstream(const fileSystem &path, bool binary=false, bool append=false)
From file path and format.
Definition: oFstream.cpp:25
pFlow::fileStream
Creates and manages an input/output file stream with specified format.
Definition: fileStream.hpp:43
pFlow::oFstream
Output file stream to send binary or ascii data to a file.
Definition: oFstream.hpp:38
pFlow::oFstream::~oFstream
virtual ~oFstream()=default
Destructor.
pFlow::oFstream::operator=
oFstream & operator=(const oFstream &rhs)=delete
No assignment.
pFlow::Ostream
Standard output stream for BINARY and ASCII formats.
Definition: Ostream.hpp:39
fileStream.hpp