19 fs.open(fileName.c_str());
21 std::cerr <<
"openFileStream : can't open file '" << fileName <<
"'" << std::endl;
32 fs.open(fileName.c_str());
34 std::cerr <<
"openFileStream : can't open file '" << fileName <<
"'" << std::endl;
46 if(nbFile == 0lu){
return true;}
48 if(extention !=
""){extention =
PString(
"." + extention);}
52 for(PVecOFStream::iterator it(fs.begin()); it != fs.end(); ++it){
67 if(nbFile == 0lu){
return true;}
69 if(extention !=
""){extention =
PPath(
"." + extention);}
73 for(PVecIFStream::iterator it(fs.begin()); it != fs.end(); ++it){
85 for(PVecOFStream::iterator it(fs.begin()); it != fs.end(); ++it){
94 for(PVecIFStream::iterator it(fs.begin()); it != fs.end(); ++it){
Path of a directory or a file.
PPath & eraseExtension()
Erase the extension of the PPath.
PString getExtension() const
Get file extension.
std::string valueToString(const T &val)
Convert a type into a string.
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::ifstream > PVecIFStream
std::vector< std::ofstream > PVecOFStream