OpenASIP
2.0
|
#include <FileSystem.hh>
Static Public Member Functions | |
static bool | fileExists (const std::string fileName) |
static bool | fileIsWritable (const std::string fileName) |
static bool | fileIsReadable (const std::string fileName) |
static bool | fileIsExecutable (const std::string fileName) |
static bool | fileIsCreatable (const std::string fileName) |
static bool | fileIsDirectory (const std::string fileName) |
static std::string | directoryOfPath (const std::string fileName) |
static std::string | fileOfPath (const std::string pathName) |
static bool | isAbsolutePath (const std::string &pathName) |
static bool | isRelativePath (const std::string &pathName) |
static bool | isPath (const std::string &pathName) |
static std::string | fileExtension (const std::string &fileName) |
static std::string | fileNameBody (const std::string &fileName) |
static std::string | absolutePathOf (const std::string &pathName) |
static std::string | currentWorkingDir () |
static bool | changeWorkingDir (const std::string &path) |
static std::string | homeDirectory () |
static bool | setFileExecutable (const std::string fileName) |
static std::time_t | lastModificationTime (const std::string &filePath) |
static uintmax_t | sizeInBytes (const std::string &filePath) |
static bool | runShellCommand (const std::string command) |
static void | globPath (const std::string &pattern, std::vector< std::string > &filenames) |
static std::string | expandTilde (const std::string &stringWithTilde) |
static bool | createDirectory (const std::string &path) |
static std::string | createTempDirectory (const std::string &path="/tmp", const std::string &tempDirPrefix="tmp_tce_") |
static bool | createFile (const std::string &file) |
static bool | removeFileOrDirectory (const std::string &path) |
static void | copy (const std::string &source, const std::string &target) |
static std::string | findFileInSearchPaths (const std::vector< std::string > &searchPaths, const std::string &file) |
static std::vector< std::string > | directoryContents (const std::string &directory, const bool absolutePaths=true) |
static std::vector< std::string > | directorySubTrees (const std::string &directory) |
static bool | findFileInDirectoryTree (const Path &startDirectory, const std::string &fileName, Path &pathFound) |
template<typename STLCONT > | |
static bool | findFromDirectory (const std::string ®ex, const std::string &directory, STLCONT &found) |
template<typename STLCONT > | |
static bool | findFromDirectoryRecursive (const std::string ®ex, const std::string &directory, STLCONT &found) |
static bool | compareFileNames (const std::string &first, const std::string &second, const std::string &rootDirectory) |
static bool | relativeDir (const std::string &baseDir, std::string &toRelDir) |
static bool | makeRelativePath (const std::vector< std::string > &searchPaths, const std::string &basePath, std::string &toRelPath) |
static bool | readBlockFromFile (const std::string &sourceFile, const std::string &blockStartRE, const std::string &blockEndRE, std::string &readBlock, const bool includeMatchingLines=true) |
static bool | appendReplaceFile (const std::string &targetFile, const std::string &ARStartRE, const std::string &writeToFile, const std::string &AREndRE="", const bool discardBlockBorder="true") |
static int | countLines (const std::string &filepath) |
Static Public Attributes | |
static const std::string | DIRECTORY_SEPARATOR |
static const std::string | CURRENT_DIRECTORY = "." |
static const std::string | STRING_WILD_CARD = "*" |
Portability layer for platform-dependent functions that access the filesystem.
Definition at line 86 of file FileSystem.hh.
|
static |
Returns the given path as absolute path.
pathName | The path. |
Definition at line 303 of file FileSystem.cc.
Referenced by HDB::HDBRegistry::addHDB(), PlatformIntegrator::createOutputDir(), ProcessorImplementationWindow::doSaveIDF(), DSDBManager::dsdbFile(), ProGeScriptGenerator::fetchFiles(), HDB::HDBManager::fileName(), GenerateProcessor::getOutputDir(), HDB::HDBRegistry::hasHDB(), HDB::HDBRegistry::hdb(), ImplementationTester::ImplementationTester(), ProGe::ProGeUI::integrateProcessor(), HDB::HDBRegistry::loadFromSearchPaths(), Environment::osalPaths(), PlatformIntegrator::outputFilePath(), PlatformIntegrator::progeFilePath(), PlatformIntegrator::setSharedOutputDir(), and ProGeOptions::validate().
|
static |
Appends to specified place in file, can replace a section.
Doesn't use temp files so uses lot of memory for big files.
targetFile | File to be edited. |
ARStartRE | Regex that matches the line where appending starts. |
writeToFile | String that is written to the file. |
AREndRE | Regex that matches last line that is replaced or deleted if writeToFile string contains less lines than is between start and end matches. |
discardBlockBorder | If true Regex matching lines are replaced or deleted. |
Definition at line 958 of file FileSystem.cc.
References abortWithError.
Referenced by ProGeTestBenchGenerator::createProcArchVhdl().
|
static |
Changes the working directory to a new one
path | The new working directory to be set |
Definition at line 185 of file FileSystem.cc.
Referenced by GhdlSimulator::compile(), ModelsimSimulator::compile(), GhdlSimulator::simulate(), and ImplementationSimulator::~ImplementationSimulator().
|
static |
Compares two file names considering path.
Compares two strings representing file names that can be with absolut or relative paths. Relative paths are interpreted against given root directory parameter.
first | File name to be compared. |
second | File name to be compared. |
rootDirectory | Base dir for relative paths in file names. |
Definition at line 724 of file FileSystem.cc.
References isRelativePath().
Referenced by ProGeScriptGenerator::sortFilesFirst(), and ProGeScriptGenerator::sortFilesLast().
|
static |
Copies source file to target file.
Copying can fail for the following reasons: Source file doesn't exist, source is directory, or target string is empty.
If target file already exists then it's removed and source file is copied in its place. If target file is a existing directory copies the file under it without changing the files name.
source | File to be copied. |
target | Target of the copy operation. |
IOException | in case the copying failed. |
Definition at line 524 of file FileSystem.cc.
References __func__.
Referenced by ProGe::BlockSourceCopier::copyFiles(), copyImageToTb(), FUGen::copyImplementation(), AlmaIFIntegrator::copyPlatformFile(), ProGe::BlockSourceCopier::copyProcessorSpecific(), ProGe::BlockSourceCopier::copyShared(), ProGeTestBenchGenerator::copyTestBenchFiles(), OSEdModifyBehaviorCmd::Do(), XilinxBlockRamGenerator::generateComponentFile(), OperationBuilder::installDataFile(), and OperationPropertyDialog::onOpen().
|
static |
Counts lines in a file.
filepath | Path to the file. |
Definition at line 1060 of file FileSystem.cc.
|
static |
Creates a directory if it doesn't already exist.
All non-existing directories in the path are created.
path | The path of directory. |
Definition at line 400 of file FileSystem.cc.
References DS.
Referenced by Environment::bitmapsDirPath(), ProGe::BlockSourceCopier::copyFiles(), FUGen::copyImplementation(), ProGe::BlockSourceCopier::copyProcessorSpecific(), ProGeTestBenchGenerator::copyTestBenchFiles(), FUGen::createImplementationFiles(), PlatformIntegrator::createOutputDir(), LLVMBackend::createPlugin(), ImplementationSimulator::createWorkDir(), Environment::dataDirPath(), OSEdAddModuleCmd::Do(), Environment::errorLogFilePath(), ProGe::ProcessorGenerator::generateProcessor(), Environment::iconDirPath(), Environment::initialize(), OperationBuilder::installDataFile(), ProGe::BlockSourceCopier::instantiateHDLTemplate(), OSEdAddModuleCmd::isEnabled(), Environment::manDirPath(), Environment::schemaDirPath(), ProGe::TestBenchBlock::write(), and ProGe::NetlistBlock::write().
|
static |
Creates a file if it doesn't already exist.
file | The name of the file. |
Definition at line 468 of file FileSystem.cc.
Referenced by Environment::confPath(), createCompressor(), ProGeScriptGenerator::createExecutableFile(), ProGeTestBenchGenerator::createFile(), createMauPkg(), Environment::errorLogFilePath(), ProGe::ProcessorGenerator::generateGlobalsPackage(), DefaultDecoderGenerator::generateInstructionDecoder(), DefaultICGenerator::generateInterconnectionNetwork(), DefaultICGenerator::generateSocket(), OSEdAddOperationCmd::isEnabled(), OSEdAddModuleCmd::isEnabled(), main(), and Environment::userConfPath().
|
static |
Creates a temporary directory to the given path
path | Path to create the temporary directory in |
tempDirPrefix | Prefix string before randomly generated string part. |
Definition at line 441 of file FileSystem.cc.
References DS, and MathTools::random().
Referenced by CompileTools::compileAsC(), CompileTools::compileAsLLVM(), ImplementationTester::createTempDir(), CompiledSimController::reset(), DesignSpaceExplorer::schedule(), and OperationDAGDialog::updateDAG().
|
static |
Returns the current working directory.
Definition at line 142 of file FileSystem.cc.
References assert, and Application::writeToErrorLog().
Referenced by OperationBuilder::behaviorFile(), OperationBuilder::buildObject(), IDF::MachineImplementation::checkImplFiles(), Environment::codeCompressorPaths(), CompileTools::compileAsC(), CompileTools::compileAsLLVM(), Environment::decompressorPaths(), ProcessorImplementationWindow::doSaveIDF(), Environment::estimatorPluginPaths(), Environment::explorerPluginPaths(), GenerateProcessor::generateProcessor(), GenerateProcessor::getOutputDir(), Environment::hdbPaths(), Environment::hwModulePaths(), Environment::icDecoderPluginPaths(), ImplementationSimulator::ImplementationSimulator(), XMLSerializer::initializeParser(), Environment::longHDBPath(), main(), Environment::osalPaths(), Environment::schedulerPluginPaths(), Environment::shortHDBPath(), TTASimulatorCLI::TTASimulatorCLI(), Environment::vhdlPaths(), and OperationBuilder::xmlFilePath().
|
static |
Returns the files found in the given directory.
directory | The directory. |
FileNotFound | If the given directory does not exist. |
Definition at line 600 of file FileSystem.cc.
References __func__.
Referenced by ProgramImageGenerator::availableCompressors(), ProGeScriptGenerator::fetchFiles(), HDB::HDBRegistry::loadFromSearchPaths(), and PlatformIntegrator::progeOutputHdlFiles().
|
static |
Returns the path part of the given file name.
fileName | A file name with a (partial or absolute) path. |
Definition at line 79 of file FileSystem.cc.
References DS.
Referenced by CompiledSimulation::compileAndLoadFunction(), CompiledSimCompiler::compileFile(), ImplementationTester::createListOfSimulationFiles(), IDF::MachineImplementation::decompressorFile(), ProcessorImplementationWindow::doSaveIDF(), FUGen::findAbsolutePath(), IDF::UnitImplementationLocation::hdbFile(), IDF::MachineImplementation::icDecoderHDB(), IDF::MachineImplementation::icDecoderPluginFile(), ImplementationSimulator::ImplementationSimulator(), ProGe::ProGeUI::loadProcessorConfiguration(), SimulatorFrontend::loadProcessorConfiguration(), main(), BlockImplementationFileDialog::onBrowse(), OSEdOptionsDialog::onBrowse(), MDFDocument::openCFG(), OperationModule::OperationModule(), OperationModule::operator=(), IDF::MachineImplementation::setDecompressorFile(), IDF::MachineImplementation::setICDecoderHDB(), IDF::MachineImplementation::setICDecoderPluginFile(), and Environment::vhdlPaths().
|
static |
Returns all the sub-directories found starting from the given directory. Uses recursion to find out all the possible sub-directory levels as well.
directory | The directory where to search. Not listed in the results! |
FileNotFound | If the given directory does not exist. |
Definition at line 647 of file FileSystem.cc.
References __func__.
|
static |
Replaces "~/" with "$HOME/". Doesn't replace ~user.
stringWithTilde | A string containing tilde to expanded. |
Definition at line 217 of file FileSystem.cc.
References homeDirectory().
Referenced by ConfCommand::execute(), MachCommand::execute(), ProgCommand::execute(), GenerateProcessor::getOutputDir(), IDF::UnitImplementationLocation::hdbFile(), IDF::MachineImplementation::icDecoderPluginFile(), IDF::MachineImplementation::setICDecoderHDB(), IDF::MachineImplementation::setICDecoderPluginFile(), and ProGeOptions::validate().
|
static |
Referenced by OperationIndex::addPath(), PluginTools::addSearchPath(), TestApplication::applicationPath(), ProgramImageGenerator::availableCompressors(), OperationBuilder::behaviorFile(), TestApplication::cleanupSimulation(), CompileTools::compileAsC(), Environment::confPath(), OSEdTreeView::constructTree(), ProGe::BlockSourceCopier::copyFiles(), FUGen::copyImplementation(), ProGe::BlockSourceCopier::copyProcessorSpecific(), TestApplication::correctOutput(), ProgramImageGenerator::createCompressor(), createMauPkg(), LLVMBackend::createPlugin(), Environment::defaultSchedulerConf(), OperationModule::definesBehavior(), CompiledSimController::deleteGeneratedFiles(), TestApplication::description(), OSEdAddModuleCmd::Do(), OSEdModifyBehaviorCmd::Do(), DSDBManager::DSDBManager(), MemWriteCommand::execute(), Automagic::findHDBPath(), ProGeTools::findHDBPath(), TestbenchGenerator::findVhdlTemplate(), GenerateProcessor::generateProcessor(), ProGe::ProcessorGenerator::generateProcessor(), DesignSpaceExplorer::getPlugins(), TestApplication::hasApplication(), OperationModule::hasBehaviorSource(), TestApplication::hasCleanupSimulation(), TestApplication::hasCorrectOutput(), TestApplication::hasSetupSimulation(), TestApplication::hasSimulateTTASim(), TestApplication::hasVerifySimulation(), HDB::HDBManager::HDBManager(), Environment::initialize(), SimulatorFrontend::initializeTracing(), Application::installationDir(), OperationBuilder::installDataFile(), ProGe::BlockSourceCopier::instantiateHDLTemplate(), OSEdAddModuleCmd::isEnabled(), OSEdUserManualCmd::isEnabled(), loadDSDB(), DesignSpaceExplorer::loadExplorerPlugin(), HDB::HDBRegistry::loadFromSearchPaths(), loadInputs(), SimulatorFrontend::loadMachine(), SimulatorFrontend::loadProcessorConfiguration(), SimulatorFrontend::loadProgram(), main(), Environment::minimalADF(), Environment::oldGccSchedulerConf(), AutoSelectImplementationsDialog::onFind(), HDBEditor::OnInit(), ProDe::OnInit(), GenerateProcessorDialog::onOK(), ResultDialog::onOpen(), OperationPropertyDialog::onOpen(), ExecutionTrace::open(), OperationSerializer::OperationSerializer(), Environment::pathTo(), OSEdInfoView::pathView(), Environment::pdfManual(), printPlugins(), PluginTools::registerModule(), HDB::HDBRegistry::removeDeadHDBPaths(), DesignSpaceExplorer::schedule(), ComponentImplementationSelector::selectComponents(), TestApplication::setupSimulation(), GhdlSimulator::simulate(), Environment::tceCompiler(), TestApplication::TestApplication(), TTASimulatorCLI::TTASimulatorCLI(), Environment::userConfPath(), TestApplication::verifySimulation(), ProGe::NetlistBlock::write(), ProGe::VHDLNetlistWriter::writeBlock(), ProGe::VerilogNetlistWriter::writeBlock(), PlatformIntegrator::writeNewToplevel(), OperationBuilder::xmlFilePath(), and ImplementationSimulator::~ImplementationSimulator().
|
static |
Returns the file extension of an file, if anything is found.
If not extension is found, an empty string is returned.
fileName | The name of the file. |
Definition at line 279 of file FileSystem.cc.
Referenced by ProgramImageGenerator::availableCompressors(), ProDeExportCmd::Do(), ProximOpenMachineCmd::Do(), GenerateProcessor::generateProcessor(), ProximMachineStateWindow::onExport(), and MDFDocument::OnOpenDocument().
|
static |
Tests if a file or directory can be created by user.
The file or directory can be created if:
fileName | Name of the file or directory to test. |
Definition at line 123 of file FileSystem.cc.
Referenced by copyImageToTb(), HDB::HDBManager::createNew(), DSDBManager::createNew(), SetHistoryFilename::execute(), main(), ProGe::VerilogNetlistWriter::writeBlock(), ProGe::VHDLNetlistWriter::writeBlock(), and XMLSerializer::writeFile().
|
static |
Referenced by ProgramImageGenerator::availableCompressors(), copyImageToTb(), ProGeTestBenchGenerator::copyTestBenchFiles(), LLVMBackend::createPlugin(), SetHistoryFilename::execute(), ProGeScriptGenerator::fetchFiles(), HDB::HDBRegistry::loadFromSearchPaths(), main(), and GenerateProcessorDialog::onOK().
|
static |
Referenced by Environment::defaultTextEditorPath(), UserManualCmd::Do(), and Environment::findExecutableFromPATH().
|
static |
Referenced by LLVMBackend::createPlugin(), ProGeTestBenchGenerator::createProcArchVhdl(), MemWriteCommand::execute(), HDB::HDBManager::HDBManager(), OperationBuilder::installDataFile(), HDB::HDBRegistry::loadFromSearchPaths(), SimulatorFrontend::loadMachine(), SimulatorFrontend::loadProcessorConfiguration(), SimulatorFrontend::loadProgram(), main(), and DesignSpaceExplorer::schedule().
|
static |
Referenced by copyImageToTb(), createMauPkg(), ProGeTestBenchGenerator::createProcArchVhdl(), OSEdPropertiesCmd::Do(), SetHistoryFilename::execute(), OSEdModifyBehaviorCmd::isEnabled(), OSEdRemoveOperationCmd::isEnabled(), OSEdRemoveModuleCmd::isEnabled(), main(), ExecutionTrace::open(), ProGe::VHDLNetlistWriter::writeBlock(), ProGe::VerilogNetlistWriter::writeBlock(), and XMLSerializer::writeFile().
|
static |
Returns the name of the file without file extension.
fileName | The name of the file. |
Definition at line 291 of file FileSystem.cc.
Referenced by OperationIndex::addPath(), CompiledSimulation::compileAndLoadFunction(), CompiledSimCompiler::compileFile(), DesignSpaceExplorer::getPlugins(), GenerateProcessor::listICDecPluginParameters(), ProcessorImplementationWindow::onBrowseICDecPlugin(), outputFileName(), printPlugins(), ProcessorImplementationWindow::ProcessorImplementationWindow(), programDataImageFile(), and programImemImageFile().
|
static |
Returns the file part of the given path name.
pathName | The path name. |
Definition at line 101 of file FileSystem.cc.
References DS.
Referenced by OperationIndex::addPath(), IDF::MachineImplementation::checkImplFile(), CompiledSimCompiler::compileFile(), ProGe::BlockSourceCopier::copyFiles(), FUGen::copyImplementation(), AlmaIFIntegrator::copyPlatformFile(), ProGe::BlockSourceCopier::copyProcessorSpecific(), HDBEditorMainFrame::createHDB(), OSEdRemoveModuleCmd::Do(), ProcessorImplementationWindow::doSaveIDF(), PluginTools::findModule(), ProGeScriptGenerator::getBlockOrder(), ProGe::BlockSourceCopier::instantiateHDLTemplate(), GenerateProcessor::listICDecPluginParameters(), SimulatorFrontend::loadProgram(), main(), ProcessorImplementationWindow::onBrowseICDecPlugin(), MDFView::OnChangeFilename(), MDFDocument::openADF(), ImplementationSimulator::parseErrorMessages(), printBEMInfo(), CompiledSimController::reset(), and HDBEditorMainFrame::setHDB().
|
static |
Attempts to find a file from the given directory hierarchy
startDirectory | The directory to start the search. |
fileName | The filename to search for. |
pathFound | A path to the found file. |
Definition at line 682 of file FileSystem.cc.
|
static |
Searches the given file in the given search paths and returns the absolute path to the file.
searchPaths | The search paths in priority order. |
file | The file to search. |
FileNotFound | If the file is not found in the search paths. |
Definition at line 562 of file FileSystem.cc.
References __func__, DIRECTORY_SEPARATOR, and DS.
Referenced by IDF::MachineImplementation::checkImplFile(), ProGe::BlockSourceCopier::copyFiles(), IDF::MachineImplementation::decompressorFile(), Environment::defaultICDecoderPlugin(), FUGen::findAbsolutePath(), Automagic::findHDBPath(), ProGeTools::findHDBPath(), IDF::UnitImplementationLocation::hdbFile(), IDF::MachineImplementation::icDecoderHDB(), IDF::MachineImplementation::icDecoderPluginFile(), IDF::MachineImplementation::isLibraryImplFile(), BlockImplementationFileDialog::onOK(), IDF::MachineImplementation::setDecompressorFile(), IDF::MachineImplementation::setICDecoderHDB(), and IDF::MachineImplementation::setICDecoderPluginFile().
|
static |
Referenced by ProGeTestBenchGenerator::copyTestBenchFiles(), DesignSpaceExplorer::getPlugins(), and printPlugins().
|
static |
Referenced by ProGeScriptGenerator::fetchFiles().
|
static |
Searches path names that matches the pattern and stores the results in string vector.
pattern | The pattern to be matched. |
filenames | Results are stored here. |
Definition at line 197 of file FileSystem.cc.
Referenced by OperationIndex::addPath(), and CompiledSimController::reset().
|
static |
Referenced by Environment::codeCompressorPaths(), Environment::confPath(), Environment::estimatorPluginPaths(), expandTilde(), Environment::explorerPluginPaths(), Environment::icDecoderPluginPaths(), Environment::initialize(), Environment::llvmtceCachePath(), main(), Environment::osalPaths(), Environment::schedulerPluginPaths(), TTASimulatorCLI::TTASimulatorCLI(), and Environment::userConfPath().
|
static |
Checks if the pathName is a string representing an absolute path.
pathName | The investigated path. |
Definition at line 234 of file FileSystem.cc.
References DS.
Referenced by ImplementationTester::createListOfSimulationFiles(), PluginTools::loadSym(), main(), ProcessorConfigurationFile::realPath(), PluginTools::registerModule(), and PluginTools::unregisterModule().
|
static |
Checks if the pathName is a string representing path (relative or absolute).
pathName | The investigated path. |
Definition at line 265 of file FileSystem.cc.
|
static |
Checks if the pathName is a string representing a relative path.
Path is relative path, if it is not absolute path and not empty string.
pathName | The investigated path. |
Definition at line 252 of file FileSystem.cc.
Referenced by compareFileNames(), and XMLSerializer::initializeParser().
|
static |
Returns last modification time of a file.
If last modification time can't be resolved, std::time_t(-1) is returned.
filePath | Path to the file. |
Definition at line 352 of file FileSystem.cc.
Referenced by HDB::CachedHDBManager::CachedHDBManager(), and HDB::CachedHDBManager::validateCache().
|
static |
Creates relative path out of provided base path.
A relative path is returned if it is found under any of the search paths. Example: if base path is "/usr/foo/bar/x.hdb" and provided search path is "/usr/foo", the following relative path is formed: "bar/x.hdb".
searchPaths | Relative path to base path is searched under these. |
basePath | Path that needs to be changed into a relative path. |
toRelPath | Outputs possibly created relative path. |
Definition at line 844 of file FileSystem.cc.
Referenced by IDF::MachineImplementation::makeHDBPathRelative(), and IDF::MachineImplementation::makeImplFilesRelative().
|
static |
Reads a block of text from a file.
Start and end of the block are found by matching given regular expressions against whole lines in source file.
sourceFile | File that is read. |
blockStartRE | Regex that matches beginning of the block (one whole line) that is going to be read from the source file. |
blockEndRE | Regex that matches end of the block (one whole line) that is going to be read from the source file. |
readBlock | Parameter where the read block is to be stored. |
includeMatchingLines | Include lines that mark the borders of the block (lines that matched given regular expressions) to the block. |
Definition at line 894 of file FileSystem.cc.
Referenced by ProGeTestBenchGenerator::createProcArchVhdl().
|
static |
Creates relative (to given base dir) directory.
Both directories given as parameter have to be absolute or false is returned.
baseDir | string representing base directory. |
toRelDir | string representing a directory which is changed to relative. |
Definition at line 762 of file FileSystem.cc.
Referenced by GenerateProcessor::generateProcessor(), and ProGeScriptGenerator::prepareFiles().
|
static |
Removes a file or a directory.
path | The path of a file or a directory. |
Definition at line 493 of file FileSystem.cc.
Referenced by LLVMBackend::compile(), CompileTools::compileAsC(), CompileTools::compileAsLLVM(), ProGeScriptGenerator::createExecutableFile(), ProGeTestBenchGenerator::createFile(), CompiledSimController::deleteGeneratedFiles(), BlocksConnectICCmd::Do(), VLIWConnectICCmd::Do(), OSEdRemoveModuleCmd::Do(), OperationBuilder::installDataFile(), OSEdAddOperationCmd::isEnabled(), OSEdAddModuleCmd::isEnabled(), CallExplorerPluginWindow::onRun(), DesignSpaceExplorer::schedule(), OperationDAGDialog::updateDAG(), ImplementationTester::validateFU(), ImplementationTester::validateRF(), ImplementationSimulator::~ImplementationSimulator(), and ImplementationTester::~ImplementationTester().
|
static |
|
static |
Grants execute rights for user to a file.
fileName | File whitch execute rights are to be changed. |
Definition at line 322 of file FileSystem.cc.
Referenced by ProGeScriptGenerator::createExecutableFile(), and QuartusProjectGenerator::writeScripts().
|
static |
Returns current size of the file in bytes.
If file size can't be resolved, static_cast<uintmax_t>(-1) is returned.
filePath | Path to the file. |
Definition at line 376 of file FileSystem.cc.
Referenced by HDB::CachedHDBManager::CachedHDBManager(), MemWriteCommand::execute(), and HDB::CachedHDBManager::validateCache().
|
static |
Definition at line 190 of file FileSystem.hh.
|
static |
Definition at line 189 of file FileSystem.hh.
Referenced by AlmaIFIntegrator::addAlmaifFiles(), DSDBManager::addApplication(), AddFUFromHDBDialog::AddFUFromHDBDialog(), AddIUFromHDBDialog::AddIUFromHDBDialog(), OperationIndex::addPath(), AddRFFromHDBDialog::AddRFFromHDBDialog(), TestApplication::applicationPath(), OperationBuilder::behaviorFile(), OperationModule::behaviorModule(), OperationModule::behaviorSourceModule(), Environment::bitmapsDirPath(), ProDe::bitmapsDirPath(), OperationBuilder::buildObject(), TestApplication::cleanupSimulation(), CompiledSimulation::compileAndLoadFunction(), CompileTools::compileAsC(), CompileTools::compileAsLLVM(), CompiledSimCompiler::compileFile(), AlmaIFIntegrator::connectCoreMemories(), ProGe::BlockSourceCopier::copyFiles(), FUGen::copyImplementation(), ProGe::BlockSourceCopier::copyProcessorSpecific(), ProGe::BlockSourceCopier::copyShared(), ProGeTestBenchGenerator::copyTestBenchFiles(), TestApplication::correctOutput(), OSEdAboutDialog::createContents(), ImplementationTester::createListOfSimulationFiles(), LLVMBackend::createPlugin(), ProGeTestBenchGenerator::createProcArchVhdl(), ProGeTestBenchGenerator::createTBConstFile(), GUIOptions::createToolbar(), ImplementationSimulator::createWorkDir(), ModelsimSimulator::createWorkDir(), Environment::dataDirPath(), OperationModule::definesBehavior(), TestApplication::description(), UserManualCmd::Do(), OSEdModifyBehaviorCmd::Do(), Environment::errorLogFilePath(), ProGeScriptGenerator::fetchFiles(), findFileInSearchPaths(), TestbenchGenerator::findVhdlTemplate(), ImplementationTester::fuTbName(), ProGeTestBenchGenerator::generate(), DefaultICDecoderGenerator::generate(), ProGeScriptGenerator::generateCompileStart(), XilinxBlockRamGenerator::generateComponentFile(), VhdlRomGenerator::generateComponentFile(), CompiledSimCodeGenerator::generateConstructorCode(), ProGe::ProcessorGenerator::generateGCUOpcodesPackage(), ProGeScriptGenerator::generateGhdlCompile(), ProGeScriptGenerator::generateGhdlSimulate(), ProGe::ProcessorGenerator::generateGlobalsPackage(), CompiledSimCodeGenerator::generateHeaderAndMainCode(), CompiledSimCodeGenerator::generateInstruction(), DefaultDecoderGenerator::generateInstructionDecoder(), DefaultICGenerator::generateInterconnectionNetwork(), ProGeScriptGenerator::generateIverilogCompile(), ProGeScriptGenerator::generateIverilogSimulate(), CompiledSimCodeGenerator::generateMakefile(), ProGe::RV32MicroCodeGenerator::generateMap(), ProGeScriptGenerator::generateModsimCompile(), ProGeScriptGenerator::generateModsimSimulate(), GenerateProcessor::generateProcessor(), ProGe::ProcessorGenerator::generateProcessor(), ProGeScriptGenerator::generateSimulationStart(), DefaultICGenerator::generateSocket(), ProGe::RV32MicroCodeGenerator::generateWrapper(), GenerateProcessor::getOutputDir(), TestApplication::hasApplication(), DSDBManager::hasApplication(), OperationModule::hasBehaviorSource(), TestApplication::hasCleanupSimulation(), TestApplication::hasCorrectOutput(), TestApplication::hasSetupSimulation(), TestApplication::hasSimulateTTASim(), TestApplication::hasVerifySimulation(), HelpBrowser::HelpBrowser(), Environment::iconDirPath(), AlmaIFIntegrator::initAlmaifBlock(), Environment::initialize(), XMLSerializer::initializeParser(), OperationBuilder::installDataFile(), AlteraMemGenerator::instantiateAlteraTemplate(), ProGe::BlockSourceCopier::instantiateHDLTemplate(), ProGe::ProGeUI::integrateProcessor(), OSEdAddModuleCmd::isEnabled(), OSEdAddOperationCmd::isEnabled(), Environment::llvmtceCachePath(), Proxim::loadOptions(), SimulatorFrontend::loadProgram(), main(), Environment::manDirPath(), Environment::minimalADF(), ProDe::OnInit(), GenerateProcessorDialog::onOK(), OperationPropertyDialog::onOpen(), OperationSerializer::OperationSerializer(), OSEdMainFrame::OSEdMainFrame(), PlatformIntegrator::outputFilePath(), Environment::pathTo(), Environment::pdfManual(), ProGeScriptGenerator::prepareFiles(), PlatformIntegrator::progeFilePath(), PlatformIntegrator::progeOutputHdlFiles(), OperationModule::propertiesModule(), ProcessorConfigurationFile::realPath(), PluginTools::registerModule(), CompiledSimController::reset(), ImplementationTester::rfTbName(), DesignSpaceExplorer::schedule(), Environment::schemaDirPath(), ComponentImplementationSelector::selectComponents(), TestApplication::setupSimulation(), TestApplication::simulateTTASim(), MemoryGenerator::templatePath(), TestApplication::TestApplication(), AddIUFromHDBDialog::TransferDataToWindow(), OSEdUserManualCmd::userManual(), TestApplication::verifySimulation(), ProGe::LoopBufferBlock::write(), ProGe::NetlistBlock::write(), ProGe::VerilogNetlistWriter::writeBlock(), ProGe::VHDLNetlistWriter::writeBlock(), DefaultDecoderGenerator::writeInstructionDecoder(), DefaultICGenerator::writeInterconnectionNetwork(), ProGe::VHDLNetlistWriter::writeNetlistParameterPackage(), ProGe::VerilogNetlistWriter::writeNetlistParameterPackage(), and OperationBuilder::xmlFilePath().
|
static |
Definition at line 191 of file FileSystem.hh.
Referenced by OperationIndex::addPath().