DiaDes  0.1
DIAgnosis of Discrete-Event System
TestTopology.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <automata/Topology.hh>
3 
4 using namespace std;
5 using namespace Diades::Automata;
6 
7 int main(int argc, char** argv)
8 {
9  cout << "Topology conversion to graphviz" << endl;
10  cout << "LAAS-CNRS, 2006-2011, 7 avenue du Colonel Roche, Toulouse, France" << endl;
11  cout << "Contact: yannick.pencole@laas.fr" << endl;
12  if(argc !=2)
13  {
14  cerr << "Usage: Topology2Dot file" << endl;
15  cerr << " read the topology written in the file and export into the dot format" << endl;
16  }
17  else
18  {
19  string fileName = argv[1];
20  Topology top;
21  top.import(fileName);
22  top.topology2dot(fileName + ".dot");
23  }
24 }
STL namespace.
void topology2dot(const string &fileName)
int main(int argc, char **argv)
Definition: TestTopology.cc:7
void import(const string &fileName)