Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 2053a0d9eaaf755b990f80ce4df504a7 > files > 383

waf-1.5.9-1mdv2010.0.noarch.rpm

#ifndef Accumulator_h_seen
#define Accumulator_h_seen

/**
 * A not-very-useful class that accumulates int values from input data.
 */
class Accumulator
{
  public:
    Accumulator();

    /**
     * Given some input data, read to end of line and convert to an int
     */
    void accumulate(const char * data);

    int total() const;

  private:
    int m_total;

};
#endif