All pastes #566513 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-06-14 14:03 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::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;
}