#include "EdgeType.h" string EdgeType::convertToString(EdgeTypes t) { if ( t == header ) return "header"; else if ( t == inheritance ) return "inheritance"; else if ( t == aggregation ) return "aggregation"; else if ( t == composition || t == 15) return "composition"; else if ( t == association || t == 115 || t == 215) return "association"; else if ( t == dependence ) return "dependence"; else if ( t == ownedElement ) return "ownedElement"; else if ( t == polymorphic ) return "polymorphic"; else if ( t == merged ) return "merged"; else return "none"; } EdgeTypes EdgeType::convertToEnum(const string & s) { if ( s == "header" ) return header; else if ( s == "inheritance" ) return inheritance; else if ( s == "aggregation" ) return aggregation; else if ( s == "composition" ) return composition; else if ( s == "association" ) return association; else if ( s == "dependence" ) return dependence; else if ( s == "ownedElement" ) return ownedElement; else if ( s == "polymorphic" ) return polymorphic; else if ( s == "merged" ) return merged; else return none; }