PhoenixFileParser  1.0.0
Set of tools to ease file parsing
Loading...
Searching...
No Matches
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
15typedef std::vector<std::ofstream> PVecOFStream;
16typedef std::vector<std::ifstream> PVecIFStream;
17
18bool openFileStream(std::ofstream & fs, const PPath & fileName);
19bool openFileStream(std::ifstream & fs, const PPath & fileName);
20
21bool openFileStream(PVecOFStream & fs, const PPath & fileName, size_t nbFile);
22bool openFileStream(PVecIFStream & fs, const PPath & fileName, size_t nbFile);
23
26
27#endif
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