// // manacost.h // cards-proof // // Created by Ethan Miller on 3/18/12. // #ifndef cards_proof_manacost_h #define cards_proof_manacost_h #include #include #include class cost{ public: cost(); cost( std::string new_mana_cost ); int get(char key); int set(char key); std::string to_str(); static void set_default(std::istream & in); bool operator==(cost m2); private: std::map m_cost_; std::map read_from_string( std::string in); static std::map default_cost; static bool default_cost_is_set; }; #endif