OpenASIP 2.2
Loading...
Searching...
No Matches
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
39namespace HDB {
40 class HDBManager;
41}
42
43/**
44 * Collection of functions for generating html pages displaying information of
45 * HDB elements.
46 */
47class HDBToHtml {
48public:
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
78private:
79 /// HDB to create html from.
81};
82
83#endif
int RowID
Type definition of row ID in relational databases.
Definition DBTypes.hh:37
static const std::string HDB_ROOT
Definition HDBToHtml.hh:64
void costFunctionPluginToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:900
static const std::string OPERATION_IMPLEMENTATIONS
Definition HDBToHtml.hh:75
static const std::string RF_IMPLEMENTATIONS
Definition HDBToHtml.hh:73
void socketEntryToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:289
static const std::string RF_IU_ENTRIES
Definition HDBToHtml.hh:67
void busEntryToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:250
void fuImplToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:539
void OperationImplementationResourceToHtml(RowID id, std::ostream &stream)
void fuArchToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:328
static const std::string COST_PLUGINS
Definition HDBToHtml.hh:74
const HDB::HDBManager & hdb_
HDB to create html from.
Definition HDBToHtml.hh:80
static const std::string FU_ENTRIES
Definition HDBToHtml.hh:65
static const std::string FU_ARCHITECTURES
Definition HDBToHtml.hh:70
void fuEntryToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:103
static const std::string RF_ARCHITECTURES
Definition HDBToHtml.hh:71
void OperationImplementationToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:986
void rfArchToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:469
virtual ~HDBToHtml()
Definition HDBToHtml.cc:93
static const std::string SOCKET_ENTRIES
Definition HDBToHtml.hh:69
static const std::string RF_ENTRIES
Definition HDBToHtml.hh:66
void rfEntryToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:177
static const std::string OPERATION_IMPLEMENTATION_RESOURCES
Definition HDBToHtml.hh:76
static const std::string FU_IMPLEMENTATIONS
Definition HDBToHtml.hh:72
static const std::string BUS_ENTRIES
Definition HDBToHtml.hh:68
void rfImplToHtml(RowID id, std::ostream &stream)
Definition HDBToHtml.cc:720