torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BrowserMain.cpp File Reference

Source for a PhysicalDiff command line utility. More...

#include <fstream>
#include "ArchitectureBrowser.hpp"
#include "torc/common/DirectoryTree.hpp"
+ Include dependency graph for BrowserMain.cpp:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 Main entry point for the architecture browser tool. More...
 

Detailed Description

Source for a PhysicalDiff command line utility.

Opens up two designs with the XDLImporter and then compares them with PhysicalDiff.

Definition in file BrowserMain.cpp.

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Main entry point for the architecture browser tool.

Definition at line 25 of file BrowserMain.cpp.

25  {
26  typedef std::string string;
27  torc::common::DirectoryTree directoryTree(argv[0]);
28 
29  if (argc != 2) {
30  std::cout << "Usage: " << argv[0] << " <device>" << std::endl;
31  return 1;
32  }
33  string device_arg = argv[1];
34 
35  torc::common::DeviceDesignator device(device_arg);
36  torc::architecture::DDB db(device);
38  ab.browse();
39 
40  return 0;
41 }
Utility class for exploring database contents.
Encapsulation of a device designator and its constituent elements.
Device database, including complete wiring and logic support.
Definition: DDB.hpp:42
std::string string
Encapsulation of filesystem paths that are used by the library.

+ Here is the call graph for this function: