bool addBool(const string &st,const bool boolean) { if (edgeOk) graphBuilder->setEdgeValue(curEdge, st, boolean); else edgeAttributeError(); return true; }
bool addDouble(const string &st,const double real) { if (edgeOk) graphBuilder->setEdgeValue(curEdge, st, real); else edgeAttributeError(); return true; }
bool addString(const string &st,const string &str) { if (edgeOk) graphBuilder->setEdgeValue(curEdge, st, str); else edgeAttributeError(); return true; }
bool addInt(const string &st,const int id) { bool result=true; if (st==SOURCE) source=id; if (st==TARGET) target=id; if ((!edgeOk) && (source!=-1) && (target!=-1)) { edgeOk=true; curEdge=graphBuilder->addEdge(source,target); } if ((st!=SOURCE) && (st!=TARGET)) { if (edgeOk && curEdge.isValid()) result=graphBuilder->setEdgeValue(curEdge, st, id); else edgeAttributeError(); } return result; }
void setEdgeValue(const LineType::RealType &lCoord) { graphBuilder->setEdgeValue(curEdge,lCoord); }