Are you aware of an open source implementation of force-directed layout in C++ used for GUIs? Preferably BSD/MIT/Apache or other (non-GPL) license.
Category: c++
casting an enumeration to get the value associated with it?
I have an enum like: public enum BlahType { blahA = 1, blahB = 2, blahC = 3 } if I have a string with the value ‘blahB’, is it possible to cast it against the enum BlahType to get the value 2?