OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Resistor.h
Go to the documentation of this file.
1#pragma once
2/*
3 * Resistor.h
4 *
5 * Created on: 05.08.2024
6 * Author: Sebastian Urmann
7 * Copyright (c)
8 */
9
10 //Sevice Header
11#include "CircuitElement.h"
12
13class Resistor : public CircuitElement {
14
15
16public:
17 Resistor(std::string resistance, std::string itemName, std::string editorName, ot::UID Uid, std::string netlistName);
18 ~Resistor();
19
20 std::string type() const override { return "Resistor"; }
21
22 //Getter
23 const std::string getResistance() const { return this->m_resistance; }
24 //Setter
25 std::string setResistance(std::string resistance) { this->m_resistance = resistance; }
26
27private:
28 std::string m_resistance;
29};
Definition CircuitElement.h:26
Definition Resistor.h:13
Resistor(std::string resistance, std::string itemName, std::string editorName, ot::UID Uid, std::string netlistName)
Definition Resistor.cpp:12
std::string setResistance(std::string resistance)
Definition Resistor.h:25
std::string type() const override
Definition Resistor.h:20
const std::string getResistance() const
Definition Resistor.h:23
~Resistor()
Definition Resistor.cpp:17
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27