waf

FORK: waf with some random patches
git clone https://git.neptards.moe/neptards/waf.git
Log | Files | Refs | README

Accumulator.h (377B)


      1 #ifndef Accumulator_h_seen
      2 #define Accumulator_h_seen
      3 
      4 /**
      5  * A not-very-useful class that accumulates int values from input data.
      6  */
      7 class Accumulator
      8 {
      9   public:
     10     Accumulator();
     11 
     12     /**
     13      * Given some input data, read to end of line and convert to an int
     14      */
     15     void accumulate(const char * data);
     16 
     17     int total() const;
     18 
     19   private:
     20     int m_total;
     21 
     22 };
     23 #endif