PhoenixInkscape  2.0.0
Generate multiple png files with svg inkscape files
openFileStream.h
Go to the documentation of this file.
1 
2 /***************************************
3  Auteur : Pierre Aubert
4  Mail : pierre.aubert@lapp.in2p3.fr
5  Licence : CeCILL-C
6 ****************************************/
7 
8 #ifndef __OPENF_FILE_STREAM_H__
9 #define __OPENF_FILE_STREAM_H__
10 
11 #include <vector>
12 #include <fstream>
13 #include "PPath.h"
14 
15 typedef std::vector<std::ofstream> PVecOFStream;
16 typedef std::vector<std::ifstream> PVecIFStream;
17 
18 bool openFileStream(std::ofstream & fs, const PPath & fileName);
19 bool openFileStream(std::ifstream & fs, const PPath & fileName);
20 
21 bool openFileStream(PVecOFStream & fs, const PPath & fileName, size_t nbFile);
22 bool openFileStream(PVecIFStream & fs, const PPath & fileName, size_t nbFile);
23 
24 void closeFileStream(PVecOFStream & fs);
25 void closeFileStream(PVecIFStream & fs);
26 
27 #endif
Path of a directory or a file.
Definition: PPath.h:17
std::vector< std::ifstream > PVecIFStream
bool openFileStream(std::ofstream &fs, const PPath &fileName)
Open a ofstream and says if there is a problem.
void closeFileStream(PVecOFStream &fs)
Close a vector of ofstream.
std::vector< std::ofstream > PVecOFStream