OpenASIP 2.2
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
HDB::BlockImplementationFile Class Reference

#include <BlockImplementationFile.hh>

Collaboration diagram for HDB::BlockImplementationFile:
Collaboration graph

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.
 
Format format_
 Format of the file.
 

Detailed Description

Represents a file that contains implementation for a block in HDB.

Definition at line 44 of file BlockImplementationFile.hh.

Member Enumeration Documentation

◆ Format

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.

47 {
48 VHDL, ///< VHDL file.
49 Verilog, ///< Verilog file.
50 VHDLsim, ///< VHDL simulation file.
51 Verilogsim ///< Verilog simulation file.
52 };
@ Verilogsim
Verilog simulation file.

Constructor & Destructor Documentation

◆ BlockImplementationFile()

HDB::BlockImplementationFile::BlockImplementationFile ( const std::string &  pathToFile,
Format  format 
)

The constructor.

Parameters
pathToFilePath to the file.
formatFormat of the file.

Definition at line 43 of file BlockImplementationFile.cc.

◆ ~BlockImplementationFile()

HDB::BlockImplementationFile::~BlockImplementationFile ( )
virtual

The destructor.

Definition at line 53 of file BlockImplementationFile.cc.

53 {
54}

Member Function Documentation

◆ format()

BlockImplementationFile::Format HDB::BlockImplementationFile::format ( ) const

◆ pathToFile()

std::string HDB::BlockImplementationFile::pathToFile ( ) const

◆ setFormat()

void HDB::BlockImplementationFile::setFormat ( Format  format)

Sets the format of the file.

Parameters
formatThe new format.

Definition at line 92 of file BlockImplementationFile.cc.

92 {
94}

References format(), and format_.

Referenced by BlockImplementationFileDialog::onOK().

Here is the call graph for this function:

◆ setPathToFile()

void HDB::BlockImplementationFile::setPathToFile ( const std::string &  pathToFile)

Sets the file path.

Parameters
pathToFileThe new path.

Definition at line 81 of file BlockImplementationFile.cc.

81 {
83}

References file_, and pathToFile().

Referenced by BlockImplementationFileDialog::onOK().

Here is the call graph for this function:

Member Data Documentation

◆ file_

std::string HDB::BlockImplementationFile::file_
private

The file.

Definition at line 65 of file BlockImplementationFile.hh.

Referenced by pathToFile(), and setPathToFile().

◆ format_

Format HDB::BlockImplementationFile::format_
private

Format of the file.

Definition at line 67 of file BlockImplementationFile.hh.

Referenced by format(), and setFormat().


The documentation for this class was generated from the following files: