#ifndef _PRINTSTATE_H #define _PRINTSTATE_H #include "CPstring.h" #include "list.h" #include "place.h" #include "map.h" // PrintState: Class MapBase Implementation that counts // and prints out every city in a given state // Methods // // PrintState(const string & state) -- constructor // Function() -- called from Apply method of Map Class // Report() -- Reports Results class PrintState : public MapBase > { public: PrintState(const string & state); ~PrintState(); virtual void Function(string & key, List & value); virtual void Report(); private: string myState; // state we're looking for int myCount; // Count of how many cities so far }; #endif