57 const std::string &str,
59 const E first,
const E last,
const E def)
61 static std::map<std::string, E> map;
64 for(
int it = static_cast<int>(last); it >=
static_cast<int>(first); it--) {
65 const E e =
static_cast<E
>(it);
70 return map.find(str) == map.end() ? def : map[str];
string toString(FromClass key)
TokenIgnorer(const char c)
friend std::istream & operator>>(std::istream &is, TokenIgnorer c)
Basic declarations, included by all source files.
The namespace for all OGDF objects.
static E toEnum(const std::string &str, std::string toString(const E &), const E first, const E last, const E def)