Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
ConfigJsonParser.h
Go to the documentation of this file.
1#ifndef CONFIGJSONPARSER_H
2#define CONFIGJSONPARSER_H
3
4#include <IPXACTmodels/common/Parameter.h>
5
6#include <KactusAPI/KactusAPIGlobal.h>
7
8#include <QtCore>
9#include <QDir>
10
12{
14 {
15
16 QString start;
17 QString end;
18
19 };
20
22 {
23
24 int index;
25 QString name;
26
27 };
28
30 {
31
32 int index;
33 QString name;
34 QList<AddressPair> addressRegions;
35
36 };
37
44
45 // Currently used for CLI version
47 {
48
49 QString interconVLNV;
50 QString designVLNV;
51 QString busVLNV;
52 QString clkVLNV;
53 QString rstVLNV;
56 QString addressWidth;
57 QString dataWidth;
59 int idWidth = -1;
60 int userWidth = -1;
61 bool isChannel = false;
64 QList<QSharedPointer<Parameter>> interconnectParams;
65 QList<InitStruct> initList;
66 QList<TargetStruct> targetList;
67
68 };
69
70 class KACTUS2_API ConfigJsonParser
71 {
72 public:
73
76
78 ~ConfigJsonParser() = default;
79
81
83 ConfigJsonParser(const ConfigJsonParser& other) = delete;
85
86 static BusType strToBusType(QString const& busTypeStr);
87 static QString busTypeToStr(BusType busType);
88
89 private:
90
91 ConfigStruct config_;
92 QString path_ = QDir::currentPath() + "/KactusAPI/include/config.json";
93 };
94
95}
96
97#endif // CONFIGJSONPARSER_H
ConfigJsonParser & operator=(const ConfigJsonParser &other)=delete
~ConfigJsonParser()=default
The destructor.
static QString busTypeToStr(BusType busType)
ConfigJsonParser(const ConfigJsonParser &other)=delete
No copying. No assignment.
static BusType strToBusType(QString const &busTypeStr)
QList< QSharedPointer< Parameter > > interconnectParams