Miscellany
public text v1 · immutableclass Parser{
protected:
std::ifstream Fichier_;
PathHandler *PathHandler_;
public:
Parser();
~Parser();
bool Charger(std::string PathFichier);
bool Ok(bool warning = false);
friend std::string& operator << (std::ostream& os, Parser& p);
friend std::string& operator >> (std::string& os, Parser& p);
};
std::string& operator >> (std::string& Buffer, Parser& p) {
Buffer = "";
if(p.Ok(true))
p.Fichier_ >> Buffer;
return Buffer;
}