21 #ifndef _TulipTypeConverter_H
22 #define _TulipTypeConverter_H
26 #include <tulip/Color.h>
27 #include <tulip/Size.h>
28 #include <tulip/Coord.h>
29 #include <tulip/Node.h>
30 #include <tulip/Edge.h>
34 struct PropertyInterface;
36 bool stringToColor(std::string &str,Color &col);
37 bool stringToSize(std::string &str,Size &siz);
38 bool stringToCoord(std::string &str,Coord &coo);
39 bool stringToLCoord(std::string &str,std::list<Coord> &lcoo);
40 bool stringToNodeProperty(PropertyInterface *propertyName,node n,std::string &str);
41 bool stringToEdgeProperty(PropertyInterface *propertyName,edge e,std::string &str);
42 bool stringToAllNodeProperty(PropertyInterface *propertyName,std::string &str);
43 bool stringToAllEdgeProperty(PropertyInterface *propertyName,std::string &str);
44 std::string nodePropertyToString(PropertyInterface *propertyName,node n);
45 std::string edgePropertyToString(PropertyInterface *propertyName,edge e);
46 std::string propertyType(PropertyInterface *propertyName);
47 std::string propertyNodeDefaultValue(PropertyInterface *propertyName);
48 std::string propertyEdgeDefaultValue(PropertyInterface *propertyName);