HAL  v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
dummy_engine.cpp
Go to the documentation of this file.
2 #include <QDebug>
3 
4 namespace hal {
5  DummyEngineFactory* DummyEngineFactory::sDumFac = new DummyEngineFactory;
6 
8  {
9  mSimulationInput = simInput;
10  simInput->dump( (get_working_directory() + "/simulation_input.txt").c_str() );
11  return true;
12  }
13 
15  {
16  return 1;
17  }
18 
19  std::vector<std::string> DummyEngine::commandLine(int lineIndex) const
20  {
21  std::vector<std::string> retval;
22  if (lineIndex) return retval;
23 
24  const char* cl[] = { "/usr/bin/touch", "dummy", nullptr };
25  for (int i = 0; cl[i]; i++)
26  retval.push_back(std::string(cl[i]));
27 
28  return retval;
29  }
30 
32  {
33  qDebug() << "DummyEngine::finalize";
34  mState = Done;
35  return true;
36  }
37 
38 }
std::vector< std::string > commandLine(int lineIndex) const
int numberCommandLines() const
virtual bool setSimulationInput(SimulationInput *simInput)
Definition: dummy_engine.cpp:7
std::string get_working_directory() const
SimulationInput * mSimulationInput
void dump(std::string filename=std::string()) const
Definition: defines.h:45