Static typeAsString() enough?
We have PR #1131 that adds some static typeAsString() methods wherever needed. This is all good for people who want to retrieve a string version of a given type, but having used those methods a few times now, I find them a bit frustrating to use. In my use case, I just need to retrieve the type as a string of, say, a variable. So, I wish I could just do something like:
var->typeAsString() rather than have to do AnalyserVariable::typeAsString(var->type()).
So, in addition to our static typeAsString() methods, I would very much like to see a typeAsString() that returns the object's type as a string. Views? @hsorby @nickerso
I'm a bit worried about this being a gateway to people then asking for typeFromString API which I think is not something we want to do. The AnalyserVariable::typeAsString(var->type()) function is convenience for GUI widgets like comboboxes/selects.