00001 /* 00002 avsmap.h 00003 00004 avs map for autofilling CC values 00005 00006 */ 00007 00008 #ifndef AVSMAP_H 00009 #define AVSMAP_H 00010 #include <string> 00011 #include <map> 00012 using namespace std; 00013 00014 typedef map<string,string> avs_key_to_values; 00015 00016 class avs_map: public avs_key_to_values 00017 { 00018 public: 00019 avs_map() 00020 { 00021 // Tailored for trust commerce for now. 00022 // I will have contitional ifdefs as we use this for others 00023 insert(make_pair("address1","")); 00024 insert(make_pair("address2","")); 00025 insert(make_pair("city","")); 00026 insert(make_pair("state","")); 00027 insert(make_pair("zip","")); 00028 } 00029 avs_map(const avs_key_to_values & in):avs_key_to_values(in) 00030 { 00031 } 00032 virtual ~avs_map() { ;} 00033 avs_map & operator = (const avs_key_to_values & in) 00034 { 00035 dynamic_cast<avs_key_to_values&>(*this) = in; 00036 return *this; 00037 } 00038 }; 00039 00040 00041 00042 00043 #endif
1.5.5