TVGenerator  0.1
 All Classes Files Functions Pages
SignalDeclaration.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * A test vector file generator for hardware designs.
4  * Copyright (C) 2014 ETHZ Zurich, Integrated Systems Laboratory
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  *
19  *****************************************************************************/
20 
29 #ifndef TVDECLARATION_H_
30 #define TVDECLARATION_H_
31 
32 #include <string>
33 
34 using namespace std;
35 
44 
45 private:
46  // **************************************************************************
47  // Members
48  // **************************************************************************
49  string name;
50  int width;
51  int printBase;
52  bool appendWidthInCaption_;
53 
54  void init();
55 
56 public:
57  // **************************************************************************
58  // Constructors/Destructors
59  // **************************************************************************
61  SignalDeclaration(string _name, int _width);
62  SignalDeclaration(string _name, int _width, int _printBase);
63  SignalDeclaration(const string _name, const int _width, const int _printBase,
64  const bool _appendWidthInCaption);
65  virtual ~SignalDeclaration();
66 
67  // **************************************************************************
68  // Getter/Setter
69  // **************************************************************************
70  int GetPrintBase() { return printBase; };
71  int GetWidth() const { return width; };
72  string GetName() const { return name; };
73  bool IsAppendWidthInCaption() const { return appendWidthInCaption_; };
74 };
75 
76 #endif /* TVDECLARATION_H_ */
Signal declaration class.
Definition: SignalDeclaration.h:43