OpenASIP  2.0
Public Member Functions | List of all members
TTASimulatorCLI Class Reference

#include <TTASimulatorCLI.hh>

Inheritance diagram for TTASimulatorCLI:
Inheritance graph
Collaboration diagram for TTASimulatorCLI:
Collaboration graph

Public Member Functions

 TTASimulatorCLI ()=delete
 
 TTASimulatorCLI (SimulatorFrontend &frontend)
 
virtual ~TTASimulatorCLI ()
 
- Public Member Functions inherited from SimulatorCLI
 SimulatorCLI ()=delete
 
 SimulatorCLI (SimulatorFrontend &frontend)
 
virtual ~SimulatorCLI ()
 
virtual void run ()
 
virtual void interpreteAndPrintResults (const TCEString &scriptString)
 
SimulatorInterpreterinterpreter ()
 

Additional Inherited Members

- Protected Attributes inherited from SimulatorCLI
SimulatorFrontendsimFront_
 
SimulatorInterpreterContextcontext_
 
LineReaderreader_
 
SimulatorInterpreterinterpreter_
 
SimulatorCmdLineOptionsoptions_
 
RuntimeErrorReportererrorReporter_
 

Detailed Description

Definition at line 38 of file TTASimulatorCLI.hh.

Constructor & Destructor Documentation

◆ TTASimulatorCLI() [1/2]

TTASimulatorCLI::TTASimulatorCLI ( )
delete

◆ TTASimulatorCLI() [2/2]

TTASimulatorCLI::TTASimulatorCLI ( SimulatorFrontend frontend)

Definition at line 40 of file TTASimulatorCLI.cc.

41  : SimulatorCLI(frontend) {
42 
43  // check if there is an initialization file in user's home dir and
44  // execute it
45  const std::string personalInitScript =
47  if (FileSystem::fileExists(personalInitScript)) {
48  interpreter_->processScriptFile(personalInitScript);
49  }
50 
51  // check if there is an initialization file in the current dir and
52  // execute it
53  const std::string currentDirInitScript =
55  if (FileSystem::fileExists(currentDirInitScript)) {
56  interpreter_->processScriptFile(currentDirInitScript);
57  }
58 }

References FileSystem::currentWorkingDir(), FileSystem::fileExists(), FileSystem::homeDirectory(), SimulatorCLI::interpreter_, TclInterpreter::processScriptFile(), and SIM_INIT_FILE_NAME.

Here is the call graph for this function:

◆ ~TTASimulatorCLI()

TTASimulatorCLI::~TTASimulatorCLI ( )
virtual

Definition at line 60 of file TTASimulatorCLI.cc.

60  {
61 
62 }

The documentation for this class was generated from the following files:
SimulatorCLI::interpreter_
SimulatorInterpreter * interpreter_
Definition: SimulatorCLI.hh:63
SIM_INIT_FILE_NAME
#define SIM_INIT_FILE_NAME
The initialization script file name.
Definition: SimulatorConstants.hh:48
FileSystem::homeDirectory
static std::string homeDirectory()
FileSystem::fileExists
static bool fileExists(const std::string fileName)
FileSystem::currentWorkingDir
static std::string currentWorkingDir()
Definition: FileSystem.cc:142
SimulatorCLI::SimulatorCLI
SimulatorCLI()=delete
TclInterpreter::processScriptFile
virtual bool processScriptFile(const std::string &scriptFileName)
Definition: TclInterpreter.cc:250