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

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  };

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.

45  :
47 }

◆ ~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

Returns the format of the file.

Definition at line 70 of file BlockImplementationFile.cc.

70  {
71  return format_;
72 }

References format_.

Referenced by HDB::HDBManager::addBlockImplementationFileToHDB(), ProGe::BlockSourceCopier::copyFiles(), HDBToHtml::fuImplToHtml(), HDBToHtml::rfImplToHtml(), and setFormat().

◆ 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  {
93  format_ = format;
94 }

References format(), and format_.

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  {
82  file_ = pathToFile;
83 }

References file_, and pathToFile().

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:
HDB::BlockImplementationFile::VHDL
@ VHDL
VHDL file.
Definition: BlockImplementationFile.hh:48
HDB::BlockImplementationFile::format_
Format format_
Format of the file.
Definition: BlockImplementationFile.hh:67
HDB::BlockImplementationFile::file_
std::string file_
The file.
Definition: BlockImplementationFile.hh:65
HDB::BlockImplementationFile::pathToFile
std::string pathToFile() const
Definition: BlockImplementationFile.cc:61
HDB::BlockImplementationFile::Verilog
@ Verilog
Verilog file.
Definition: BlockImplementationFile.hh:49
HDB::BlockImplementationFile::Verilogsim
@ Verilogsim
Verilog simulation file.
Definition: BlockImplementationFile.hh:51
HDB::BlockImplementationFile::format
Format format() const
Definition: BlockImplementationFile.cc:70
HDB::BlockImplementationFile::VHDLsim
@ VHDLsim
VHDL simulation file.
Definition: BlockImplementationFile.hh:50