1
#ifndef __VBFILENETWORK_H__
2
#define __VBFILENETWORK_H__
14
// like a vector<tuple<Job*, Job*, File*, File*> >. using tuple would be cool
15
// but would introduce an additional library dependency (boost). i mean, if we
16
// use boost, we might as well use bgl.
19
typedef std::pair<Job*,Job*> Edge;
20
typedef std::map<std::string, FileNetwork> Map;
23
std::list<Edge> edges;
26
std::map<Job*,std::pair<std::string,std::string> > filenames;
28
void insert_job(Job* job);
29
bool check_edge(Job*, Job*);
30
bool check_edge(const Edge& edge);
33
/* how do we get the files to correctly resolve $$ ? */
35
std::set<Edge> get_edges_from(Job*) const;
36
std::set<Edge> get_edges_to(Job*) const;
41
#endif // __VBFILENETWORK_H__