#ifndef __EDGE_TYPE__ #define __EDGE_TYPE__ #include using std::string; enum EdgeTypes { header=0, inheritance, association, composition, dependence, polymorphic, ownedElement, aggregation, merged, none }; class EdgeType { EdgeTypes thisEdge; public: EdgeType() : thisEdge(header) {} EdgeType(EdgeTypes l) : thisEdge(l) {} EdgeTypes getType() const { return thisEdge; } void setType(EdgeTypes t) { thisEdge = t; } string getString() const { return convertToString(thisEdge); } static string convertToString(EdgeTypes t); static EdgeTypes EdgeType::convertToEnum(const string & s); }; #endif