OpenASIP
2.0
|
#include <BlockImplementationFile.hh>
Public Types | |
enum | Format { VHDL, Verilog, VHDLsim, Verilogsim } |
Format of the file. More... | |
Public Member Functions | |
BlockImplementationFile (const std::string &pathToFile, Format format) | |
virtual | ~BlockImplementationFile () |
std::string | pathToFile () const |
Format | format () const |
void | setPathToFile (const std::string &pathToFile) |
void | setFormat (Format format) |
Private Attributes | |
std::string | file_ |
The file. More... | |
Format | format_ |
Format of the file. More... | |
Represents a file that contains implementation for a block in HDB.
Definition at line 44 of file BlockImplementationFile.hh.
Format of the file.
Enumerator | |
---|---|
VHDL | VHDL file. |
Verilog | Verilog file. |
VHDLsim | VHDL simulation file. |
Verilogsim | Verilog simulation file. |
Definition at line 47 of file BlockImplementationFile.hh.
HDB::BlockImplementationFile::BlockImplementationFile | ( | const std::string & | pathToFile, |
Format | format | ||
) |
The constructor.
pathToFile | Path to the file. |
format | Format of the file. |
Definition at line 43 of file BlockImplementationFile.cc.
|
virtual |
BlockImplementationFile::Format HDB::BlockImplementationFile::format | ( | ) | const |
Returns the format of the file.
Definition at line 70 of file BlockImplementationFile.cc.
References format_.
Referenced by HDB::HDBManager::addBlockImplementationFileToHDB(), ProGe::BlockSourceCopier::copyFiles(), HDBToHtml::fuImplToHtml(), HDBToHtml::rfImplToHtml(), and setFormat().
std::string HDB::BlockImplementationFile::pathToFile | ( | ) | const |
Returns path to the file.
Definition at line 61 of file BlockImplementationFile.cc.
References file_.
Referenced by HDB::HDBManager::addBlockImplementationFileToHDB(), HDB::HDBManager::addFUImplementation(), HDB::HDBManager::addRFImplementation(), ProGe::BlockSourceCopier::copyFiles(), ImplementationTester::createListOfSimulationFiles(), HDBToHtml::fuImplToHtml(), ProGeScriptGenerator::getBlockOrder(), RFImplementationDialog::onDeleteSourceFile(), FUImplementationDialog::onDeleteSourceFile(), RFImplementationDialog::onMoveSourceFileDown(), FUImplementationDialog::onMoveSourceFileDown(), RFImplementationDialog::onMoveSourceFileUp(), FUImplementationDialog::onMoveSourceFileUp(), HDBToHtml::rfImplToHtml(), and setPathToFile().
void HDB::BlockImplementationFile::setFormat | ( | Format | format | ) |
void HDB::BlockImplementationFile::setPathToFile | ( | const std::string & | pathToFile | ) |
Sets the file path.
pathToFile | The new path. |
Definition at line 81 of file BlockImplementationFile.cc.
References file_, and pathToFile().
|
private |
The file.
Definition at line 65 of file BlockImplementationFile.hh.
Referenced by pathToFile(), and setPathToFile().
|
private |
Format of the file.
Definition at line 67 of file BlockImplementationFile.hh.
Referenced by format(), and setFormat().