-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevice.cpp
More file actions
39 lines (36 loc) · 688 Bytes
/
Copy pathdevice.cpp
File metadata and controls
39 lines (36 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "device.h"
void device::setData(string& ID, string& TYPE, double& DEFAULT_VAL, double& MIN_VAL, double& MAX_VAL)
{
id = ID;
type = TYPE;
default_val = DEFAULT_VAL;
min_val = MIN_VAL;
max_val = MAX_VAL;
}
void device::print()
{
cout << "ID = " << id;
cout << "\nType is " << type;
cout << "\n(min,default max) = (" << min_val << "," << default_val << "," << max_val << ")\n";
cout << "netlist {\n";
}
string device::getID()
{
return id;
}
string device::getType()
{
return type;
}
double device::getMin()
{
return min_val;
}
double device::getMax()
{
return max_val;
}
double device::getDefault()
{
return default_val;
}