OpenASIP  2.0
HDBToHtml.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2009 Tampere University.
3 
4  This file is part of TTA-Based Codesign Environment (TCE).
5 
6  Permission is hereby granted, free of charge, to any person obtaining a
7  copy of this software and associated documentation files (the "Software"),
8  to deal in the Software without restriction, including without limitation
9  the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  and/or sell copies of the Software, and to permit persons to whom the
11  Software is furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  DEALINGS IN THE SOFTWARE.
23  */
24 /**
25  * @file HDBToHtml.hh
26  *
27  * Declaration of HDBToHtml class.
28  *
29  * @author Veli-Pekka Jääskeläinen 2006 (vjaaskel-no.spam-cs.tut.fi)
30  * @note rating: red
31  */
32 
33 #ifndef TTA_HDB_TO_HTML_HH
34 #define TTA_HDB_TO_HTML_HH
35 
36 #include <iostream>
37 #include "DBTypes.hh"
38 
39 namespace HDB {
40  class HDBManager;
41 }
42 
43 /**
44  * Collection of functions for generating html pages displaying information of
45  * HDB elements.
46  */
47 class HDBToHtml {
48 public:
49  HDBToHtml(const HDB::HDBManager& hdb);
50  virtual ~HDBToHtml();
51 
52  void fuEntryToHtml(RowID id, std::ostream& stream);
53  void rfEntryToHtml(RowID id, std::ostream& stream);
54  void busEntryToHtml(RowID id, std::ostream& stream);
55  void socketEntryToHtml(RowID id, std::ostream& stream);
56  void fuArchToHtml(RowID id, std::ostream& stream);
57  void rfArchToHtml(RowID id, std::ostream& stream);
58  void fuImplToHtml(RowID id, std::ostream& stream);
59  void rfImplToHtml(RowID id, std::ostream& stream);
60  void costFunctionPluginToHtml(RowID id, std::ostream& stream);
61  void OperationImplementationToHtml(RowID id, std::ostream& stream);
62  void OperationImplementationResourceToHtml(RowID id, std::ostream& stream);
63 
64  static const std::string HDB_ROOT;
65  static const std::string FU_ENTRIES;
66  static const std::string RF_ENTRIES;
67  static const std::string RF_IU_ENTRIES;
68  static const std::string BUS_ENTRIES;
69  static const std::string SOCKET_ENTRIES;
70  static const std::string FU_ARCHITECTURES;
71  static const std::string RF_ARCHITECTURES;
72  static const std::string FU_IMPLEMENTATIONS;
73  static const std::string RF_IMPLEMENTATIONS;
74  static const std::string COST_PLUGINS;
75  static const std::string OPERATION_IMPLEMENTATIONS;
76  static const std::string OPERATION_IMPLEMENTATION_RESOURCES;
77 
78 private:
79  /// HDB to create html from.
81 };
82 
83 #endif
HDBToHtml::RF_IMPLEMENTATIONS
static const std::string RF_IMPLEMENTATIONS
Definition: HDBToHtml.hh:73
HDBToHtml::rfArchToHtml
void rfArchToHtml(RowID id, std::ostream &stream)
Definition: HDBToHtml.cc:469
HDBToHtml::costFunctionPluginToHtml
void costFunctionPluginToHtml(RowID id, std::ostream &stream)
Definition: HDBToHtml.cc:900
HDB
Definition: CostDatabase.hh:49
HDBToHtml::HDB_ROOT
static const std::string HDB_ROOT
Definition: HDBToHtml.hh:64
RowID
int RowID
Type definition of row ID in relational databases.
Definition: DBTypes.hh:37
HDBToHtml::busEntryToHtml
void busEntryToHtml(RowID id, std::ostream &stream)
Definition: HDBToHtml.cc:250
HDBToHtml::FU_IMPLEMENTATIONS
static const std::string FU_IMPLEMENTATIONS
Definition: HDBToHtml.hh:72
HDBToHtml::rfEntryToHtml
void rfEntryToHtml(RowID id, std::ostream &stream)
Definition: HDBToHtml.cc:177
HDBToHtml::fuArchToHtml
void fuArchToHtml(RowID id, std::ostream &stream)
Definition: HDBToHtml.cc:328
DBTypes.hh
HDBToHtml::OperationImplementationToHtml
void OperationImplementationToHtml(RowID id, std::ostream &stream)
Definition: HDBToHtml.cc:986
HDBToHtml::OPERATION_IMPLEMENTATIONS
static const std::string OPERATION_IMPLEMENTATIONS
Definition: HDBToHtml.hh:75
HDBToHtml::FU_ENTRIES
static const std::string FU_ENTRIES
Definition: HDBToHtml.hh:65
HDBToHtml::COST_PLUGINS
static const std::string COST_PLUGINS
Definition: HDBToHtml.hh:74
HDBToHtml::HDBToHtml
HDBToHtml(const HDB::HDBManager &hdb)
Definition: HDBToHtml.cc:86
HDBToHtml::BUS_ENTRIES
static const std::string BUS_ENTRIES
Definition: HDBToHtml.hh:68
HDBToHtml::hdb_
const HDB::HDBManager & hdb_
HDB to create html from.
Definition: HDBToHtml.hh:80
HDBToHtml::RF_IU_ENTRIES
static const std::string RF_IU_ENTRIES
Definition: HDBToHtml.hh:67
HDBToHtml::OPERATION_IMPLEMENTATION_RESOURCES
static const std::string OPERATION_IMPLEMENTATION_RESOURCES
Definition: HDBToHtml.hh:76
HDB::HDBManager
Definition: HDBManager.hh:82
HDBToHtml::RF_ENTRIES
static const std::string RF_ENTRIES
Definition: HDBToHtml.hh:66
HDBToHtml::fuImplToHtml
void fuImplToHtml(RowID id, std::ostream &stream)
Definition: HDBToHtml.cc:539
HDBToHtml::rfImplToHtml
void rfImplToHtml(RowID id, std::ostream &stream)
Definition: HDBToHtml.cc:720
HDBToHtml::SOCKET_ENTRIES
static const std::string SOCKET_ENTRIES
Definition: HDBToHtml.hh:69
HDBToHtml::fuEntryToHtml
void fuEntryToHtml(RowID id, std::ostream &stream)
Definition: HDBToHtml.cc:103
HDBToHtml
Definition: HDBToHtml.hh:47
HDBToHtml::socketEntryToHtml
void socketEntryToHtml(RowID id, std::ostream &stream)
Definition: HDBToHtml.cc:289
HDBToHtml::OperationImplementationResourceToHtml
void OperationImplementationResourceToHtml(RowID id, std::ostream &stream)
Definition: HDBToHtml.cc:1003
HDBToHtml::FU_ARCHITECTURES
static const std::string FU_ARCHITECTURES
Definition: HDBToHtml.hh:70
HDBToHtml::RF_ARCHITECTURES
static const std::string RF_ARCHITECTURES
Definition: HDBToHtml.hh:71
HDBToHtml::~HDBToHtml
virtual ~HDBToHtml()
Definition: HDBToHtml.cc:93