Aller à la documentation de ce fichier.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 #ifndef ENREGISTREURFICHIER_HPP
00009 #define ENREGISTREURFICHIER_HPP
00010 
00011 #include <fstream>
00012 
00013 using std::string;
00014 using std::ofstream;
00015 
00016 namespace bib {
00017 namespace io {
00018 class EnregistreurFichier
00019 {
00020 
00021 public:
00027     EnregistreurFichier(const string & chemin, const string & separateur = " ");
00028     
00032     virtual ~EnregistreurFichier();
00033     
00037     void prochaineLigne();
00038     
00042     void ecrireString(const string & s);
00043     
00047     void ecrireEntier(const int i);
00048     
00052     void ecrireSection(const string &s);
00053 
00054 private:
00055     ofstream flux;
00056     string separateur;
00057 };
00058 }
00059 }
00060 #endif // ENREGISTREURFICHIER_H