Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 42620103d8ee8a2d972d3103bad0ab73 > files > 342

waf-1.5.19-1.fc14.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