OpenASIP 2.2
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
HDBBrowserInfoPanel Class Reference

#include <HDBBrowserInfoPanel.hh>

Inheritance diagram for HDBBrowserInfoPanel:
Inheritance graph
Collaboration diagram for HDBBrowserInfoPanel:
Collaboration graph

Public Member Functions

 HDBBrowserInfoPanel (wxWindow *parent, wxWindowID id)
 
virtual ~HDBBrowserInfoPanel ()
 
void setHDB (const HDB::HDBManager &hdb)
 
void clear ()
 
void displayFUEntry (RowID id)
 
void displayRFEntry (RowID id)
 
void displayBusEntry (RowID id)
 
void displaySocketEntry (RowID id)
 
void displayFUArchitecture (RowID id)
 
void displayRFArchitecture (RowID id)
 
void displayFUImplementation (RowID id)
 
void displayRFImplementation (RowID id)
 
void displayCostFunctionPlugin (RowID id)
 
void displayOperationImplementation (RowID id)
 
void displayOperationImplementationResource (RowID id)
 

Private Member Functions

virtual void OnLinkClicked (const wxHtmlLinkInfo &link)
 

Private Attributes

HDBToHtmlhtmlGen_
 HDB to HTML generator.
 

Detailed Description

Window for displaying HDB element details.

Definition at line 49 of file HDBBrowserInfoPanel.hh.

Constructor & Destructor Documentation

◆ HDBBrowserInfoPanel()

HDBBrowserInfoPanel::HDBBrowserInfoPanel ( wxWindow *  parent,
wxWindowID  id 
)

The Constructor.

Parameters
parentParent window of the panel.
idWindow ientifier for the panel.

Definition at line 51 of file HDBBrowserInfoPanel.cc.

51 :
52 wxHtmlWindow(parent, id),
53 htmlGen_(NULL) {
54}
HDBToHtml * htmlGen_
HDB to HTML generator.

◆ ~HDBBrowserInfoPanel()

HDBBrowserInfoPanel::~HDBBrowserInfoPanel ( )
virtual

The Destructor.

Definition at line 59 of file HDBBrowserInfoPanel.cc.

59 {
60 if (htmlGen_ != NULL) {
61 delete htmlGen_;
62 htmlGen_ = NULL;
63 }
64}

References htmlGen_.

Member Function Documentation

◆ clear()

void HDBBrowserInfoPanel::clear ( )

Clears the panel contents.

Definition at line 89 of file HDBBrowserInfoPanel.cc.

89 {
90 SetPage(_T("<html><body></body></html>"));
91}

Referenced by HDBBrowserWindow::onItemSelected(), and HDBBrowserWindow::update().

◆ displayBusEntry()

void HDBBrowserInfoPanel::displayBusEntry ( RowID  id)

Displays details of a bus entry in the panel.

Parameters
idID of the bus entry.

Definition at line 128 of file HDBBrowserInfoPanel.cc.

128 {
129 assert(htmlGen_ != NULL);
130 std::stringstream stream;
131 htmlGen_->busEntryToHtml(id, stream);
132 std::string page = stream.str();
133 SetPage(WxConversion::toWxString(page));
134}
#define assert(condition)
void busEntryToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:250
static wxString toWxString(const std::string &source)

References assert, HDBToHtml::busEntryToHtml(), htmlGen_, and WxConversion::toWxString().

Referenced by HDBBrowserWindow::onItemSelected().

Here is the call graph for this function:

◆ displayCostFunctionPlugin()

void HDBBrowserInfoPanel::displayCostFunctionPlugin ( RowID  id)

Displays details of a cost function plugin in the panel.

Parameters
idID of the cost function plugin.

Definition at line 215 of file HDBBrowserInfoPanel.cc.

215 {
216 assert(htmlGen_ != NULL);
217 std::stringstream stream;
219 std::string page = stream.str();
220 SetPage(WxConversion::toWxString(page));
221}
void costFunctionPluginToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:900

References assert, HDBToHtml::costFunctionPluginToHtml(), htmlGen_, and WxConversion::toWxString().

Referenced by HDBBrowserWindow::onItemSelected().

Here is the call graph for this function:

◆ displayFUArchitecture()

void HDBBrowserInfoPanel::displayFUArchitecture ( RowID  id)

Displays details of an FU architecture in the panel.

Parameters
idID of the FU architecture.

Definition at line 157 of file HDBBrowserInfoPanel.cc.

157 {
158 assert(htmlGen_ != NULL);
159 std::stringstream stream;
160 htmlGen_->fuArchToHtml(id, stream);
161 std::string page = stream.str();
162 SetPage(WxConversion::toWxString(page));
163}
void fuArchToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:328

References assert, HDBToHtml::fuArchToHtml(), htmlGen_, and WxConversion::toWxString().

Referenced by HDBBrowserWindow::onItemSelected().

Here is the call graph for this function:

◆ displayFUEntry()

void HDBBrowserInfoPanel::displayFUEntry ( RowID  id)

Displays details of an FU entry in the panel.

Parameters
idID of the FU entry.

Definition at line 99 of file HDBBrowserInfoPanel.cc.

99 {
100 assert(htmlGen_ != NULL);
101 std::stringstream stream;
102 htmlGen_->fuEntryToHtml(id, stream);
103 std::string page = stream.str();
104 SetPage(WxConversion::toWxString(page));
105}
void fuEntryToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:103

References assert, HDBToHtml::fuEntryToHtml(), htmlGen_, and WxConversion::toWxString().

Referenced by HDBBrowserWindow::onItemSelected().

Here is the call graph for this function:

◆ displayFUImplementation()

void HDBBrowserInfoPanel::displayFUImplementation ( RowID  id)

Displays details of an FU implementation in the panel.

Parameters
idID of the FU implementation.

Definition at line 186 of file HDBBrowserInfoPanel.cc.

186 {
187 assert(htmlGen_ != NULL);
188 std::stringstream stream;
189 htmlGen_->fuImplToHtml(id, stream);
190 std::string page = stream.str();
191 SetPage(WxConversion::toWxString(page));
192}
void fuImplToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:539

References assert, HDBToHtml::fuImplToHtml(), htmlGen_, and WxConversion::toWxString().

Referenced by HDBBrowserWindow::onItemSelected().

Here is the call graph for this function:

◆ displayOperationImplementation()

void HDBBrowserInfoPanel::displayOperationImplementation ( RowID  id)

Displays details of a FUGEN oparation in the panel.

Parameters
idID of the FUGEN operation plugin.

Definition at line 229 of file HDBBrowserInfoPanel.cc.

229 {
230 assert(htmlGen_ != NULL);
231 std::stringstream stream;
233 std::string page = stream.str();
234 SetPage(WxConversion::toWxString(page));
235}
void OperationImplementationToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:986

References assert, htmlGen_, HDBToHtml::OperationImplementationToHtml(), and WxConversion::toWxString().

Referenced by HDBBrowserWindow::onItemSelected().

Here is the call graph for this function:

◆ displayOperationImplementationResource()

void HDBBrowserInfoPanel::displayOperationImplementationResource ( RowID  id)

Displays details of a FUGEN resource in the panel.

Parameters
idID of the FUGEN resource plugin.

Definition at line 243 of file HDBBrowserInfoPanel.cc.

243 {
244 assert(htmlGen_ != NULL);
245 std::stringstream stream;
247 std::string page = stream.str();
248 SetPage(WxConversion::toWxString(page));
249}
void OperationImplementationResourceToHtml(RowID id, std::ostream &stream)

References assert, htmlGen_, HDBToHtml::OperationImplementationResourceToHtml(), and WxConversion::toWxString().

Referenced by HDBBrowserWindow::onItemSelected().

Here is the call graph for this function:

◆ displayRFArchitecture()

void HDBBrowserInfoPanel::displayRFArchitecture ( RowID  id)

Displays details of a RF architecture in the panel.

Parameters
idID of the register file architecture.

Definition at line 171 of file HDBBrowserInfoPanel.cc.

171 {
172 assert(htmlGen_ != NULL);
173 std::stringstream stream;
174 htmlGen_->rfArchToHtml(id, stream);
175 std::string page = stream.str();
176 SetPage(WxConversion::toWxString(page));
177}
void rfArchToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:469

References assert, htmlGen_, HDBToHtml::rfArchToHtml(), and WxConversion::toWxString().

Referenced by HDBBrowserWindow::onItemSelected().

Here is the call graph for this function:

◆ displayRFEntry()

void HDBBrowserInfoPanel::displayRFEntry ( RowID  id)

Displays details of a RF entry in the panel.

Parameters
idID of the register file entry.

Definition at line 114 of file HDBBrowserInfoPanel.cc.

114 {
115 assert(htmlGen_ != NULL);
116 std::stringstream stream;
117 htmlGen_->rfEntryToHtml(id, stream);
118 std::string page = stream.str();
119 SetPage(WxConversion::toWxString(page));
120}
void rfEntryToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:177

References assert, htmlGen_, HDBToHtml::rfEntryToHtml(), and WxConversion::toWxString().

Referenced by HDBBrowserWindow::onItemSelected().

Here is the call graph for this function:

◆ displayRFImplementation()

void HDBBrowserInfoPanel::displayRFImplementation ( RowID  id)

Displays details of a RF implementation in the panel.

Parameters
idID of the RF implementation.

Definition at line 201 of file HDBBrowserInfoPanel.cc.

201 {
202 assert(htmlGen_ != NULL);
203 std::stringstream stream;
204 htmlGen_->rfImplToHtml(id, stream);
205 std::string page = stream.str();
206 SetPage(WxConversion::toWxString(page));
207}
void rfImplToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:720

References assert, htmlGen_, HDBToHtml::rfImplToHtml(), and WxConversion::toWxString().

Referenced by HDBBrowserWindow::onItemSelected().

Here is the call graph for this function:

◆ displaySocketEntry()

void HDBBrowserInfoPanel::displaySocketEntry ( RowID  id)

Displays details of a socket entry in the panel.

Parameters
idID of the socket entry.

Definition at line 142 of file HDBBrowserInfoPanel.cc.

142 {
143 assert(htmlGen_ != NULL);
144 std::stringstream stream;
145 htmlGen_->socketEntryToHtml(id, stream);
146 std::string page = stream.str();
147 SetPage(WxConversion::toWxString(page));
148}
void socketEntryToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:289

References assert, htmlGen_, HDBToHtml::socketEntryToHtml(), and WxConversion::toWxString().

Referenced by HDBBrowserWindow::onItemSelected().

Here is the call graph for this function:

◆ OnLinkClicked()

void HDBBrowserInfoPanel::OnLinkClicked ( const wxHtmlLinkInfo &  link)
privatevirtual

Definition at line 67 of file HDBBrowserInfoPanel.cc.

67 {
68 wxString href = link.GetHref();
69 wxGetApp().browser()->openLink(href);
70}

◆ setHDB()

void HDBBrowserInfoPanel::setHDB ( const HDB::HDBManager hdb)

Sets the HDB.

Parameters
hdbHDB to generate html from.

Definition at line 78 of file HDBBrowserInfoPanel.cc.

78 {
79 if (htmlGen_ != NULL) {
80 delete htmlGen_;
81 }
82 htmlGen_ = new HDBToHtml(hdb);
83}

References htmlGen_.

Referenced by HDBBrowserWindow::setHDBManager().

Member Data Documentation

◆ htmlGen_

HDBToHtml* HDBBrowserInfoPanel::htmlGen_
private

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