All pastes #566452 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-06-14 13:27 UTC
rendered paste body
class Parser{
protected:
    std::ifstream Fichier_;
    PathHandler *PathHandler_;



public:
    Parser();
    ~Parser();
    bool Charger(std::string PathFichier);
    bool Ok(bool warning = false);
    friend std::ostream& operator << (std::ostream& os, const Parser& p);
};




std::ostream& operator << (std::ostream& os, const Parser& p) {
    std::string Buffer("");
    if(p.Ok(true))
        p.Fichier_ >> Buffer;
	return (os << Buffer);
}