In fact, this string is referenced in various other places so it would make sense to have a way to refer to it.. Should I introduce a static std::string keyRefAttribute = "Ref" in the class?
Introducing a constant for that column name sounds like a good idea. Introducing a non-const static member in the class sounds crazy. How about a const std::string or even a char const * const in a namespace?
In fact, this string is referenced in various other places so it would make sense to have a way to refer to it.. Should I introduce a
static std::string keyRefAttribute = "Ref"
in the class?