OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Diode.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 Diode : public CircuitElement {
14
15
16public:
17 Diode(std::string value, std::string itemName, std::string editorName, ot::UID Uid, std::string netlistName);
18 ~Diode();
19
20 std::string type() const override { return "Diode"; }
21
22 //Getter
23 const std::string getValue() const { return this->m_value; }
24 //Setter
25 std::string setValue(std::string value) { this->m_value = value; }
26
27private:
28 std::string m_value;
29};
bsoncxx::types::value value
Definition DocumentManager.h:16
Definition CircuitElement.h:26
Definition Diode.h:13
~Diode()
Definition Diode.cpp:8
const std::string getValue() const
Definition Diode.h:23
std::string type() const override
Definition Diode.h:20
Diode(std::string value, std::string itemName, std::string editorName, ot::UID Uid, std::string netlistName)
Definition Diode.cpp:3
std::string setValue(std::string value)
Definition Diode.h:25
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27