Old Class Ad Assign

This method has six variants:
  • int Assign(char const *variable, MyString &value)
  • int Assign(char const *variable,char const *value)
  • int Assign(char const *variable,int value)
  • int Assign(char const *variable,float value)
  • int Assign(char const *variable,double value)
  • int Assign(char const *variable,bool value)

In new ClassAds , InsertAttr() is a direct equivalent set of methods. The only differences are the return type (int vs. bool) and new ClassAds don't have float or MyString variants.

A simple search-and-replace or set of pass-through functions will work. In the former case, some call sites may need to be fixed up because of the change in return type. For the MyString variant, we can try adding a cast operator to std::string or const char* in MyString .

Developer time: 1-2 hours, some student time for search-and-replace fixup

Progress: Done (added compatibility function)