OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Capacitor.h
Go to the documentation of this file.
1#pragma once
2/*
3 * Capacitor.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 Capacitor : public CircuitElement {
14
15
16public:
17 Capacitor(std::string capacity, std::string itemName, std::string editorName, ot::UID Uid, std::string netlistName);
18 ~Capacitor();
19
20 std::string type() const override { return "Capacitor"; }
21
22 //Getter
23 const std::string getCapacity() const { return this->m_capacity; }
24 //Setter
25 std::string setCapacity(std::string capacity) { this->m_capacity = capacity; }
26
27private:
28 std::string m_capacity;
29};
Definition Capacitor.h:13
Capacitor(std::string capacity, std::string itemName, std::string editorName, ot::UID Uid, std::string netlistName)
Definition Capacitor.cpp:3
std::string setCapacity(std::string capacity)
Definition Capacitor.h:25
std::string type() const override
Definition Capacitor.h:20
const std::string getCapacity() const
Definition Capacitor.h:23
~Capacitor()
Definition Capacitor.cpp:7
Definition CircuitElement.h:26
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27