PhoenixFileParser
1.7.3
Set of tools to ease file parsing
Toggle main menu visibility
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
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
PVecIFStream
std::vector< std::ifstream > PVecIFStream
Definition
openFileStream.h:16
openFileStream
bool openFileStream(std::ofstream &fs, const PPath &fileName)
Open a ofstream and says if there is a problem.
Definition
openFileStream.cpp:18
closeFileStream
void closeFileStream(PVecOFStream &fs)
Close a vector of ofstream.
Definition
openFileStream.cpp:84
PVecOFStream
std::vector< std::ofstream > PVecOFStream
Definition
openFileStream.h:15
src
openFileStream.h
Generated by
1.17.0