OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
CircuitElement Class Referenceabstract

#include "CircuitElement.h"

Inheritance diagram for CircuitElement:
Capacitor CurrentMeter Diode Inductor Resistor VoltageMeter VoltageSource

Public Member Functions

 CircuitElement (std::string itemName, std::string editorName, ot::UID Uid, std::string netlistName)
 
virtual ~CircuitElement ()
 
virtual std::string type () const =0
 
std::string getItemName ()
 
std::string getEditorName ()
 
ot::UID getUID ()
 
std::map< std::string, Connection > & getList ()
 
std::string getNetlistName ()
 
std::string getCustomName ()
 
void setItemName (std::string name)
 
void setEditorName (std::string name)
 
void setUID (ot::UID id)
 
void setNetlistName (std::string name)
 
void setCustomName (std::string name)
 
void addConnection (std::string connactable, const Connection &obj)
 

Protected Attributes

std::string m_itemName
 
std::string m_editorName
 
ot::UID m_Uid
 
std::string m_netlistName
 
std::string m_customName
 
std::map< std::string, Connectionm_listOfConnections
 

Constructor & Destructor Documentation

◆ CircuitElement()

CircuitElement::CircuitElement ( std::string itemName,
std::string editorName,
ot::UID Uid,
std::string netlistName )

◆ ~CircuitElement()

virtual CircuitElement::~CircuitElement ( )
inlinevirtual

Member Function Documentation

◆ addConnection()

void CircuitElement::addConnection ( std::string connactable,
const Connection & obj )

◆ getCustomName()

std::string CircuitElement::getCustomName ( )

◆ getEditorName()

std::string CircuitElement::getEditorName ( )

◆ getItemName()

std::string CircuitElement::getItemName ( )

◆ getList()

std::map< std::string, Connection > & CircuitElement::getList ( )

◆ getNetlistName()

std::string CircuitElement::getNetlistName ( )

◆ getUID()

ot::UID CircuitElement::getUID ( )

◆ setCustomName()

void CircuitElement::setCustomName ( std::string name)

◆ setEditorName()

void CircuitElement::setEditorName ( std::string name)

◆ setItemName()

void CircuitElement::setItemName ( std::string name)

◆ setNetlistName()

void CircuitElement::setNetlistName ( std::string name)

◆ setUID()

void CircuitElement::setUID ( ot::UID id)

◆ type()

virtual std::string CircuitElement::type ( ) const
pure virtual

Member Data Documentation

◆ m_customName

std::string CircuitElement::m_customName
protected

◆ m_editorName

std::string CircuitElement::m_editorName
protected

◆ m_itemName

std::string CircuitElement::m_itemName
protected

◆ m_listOfConnections

std::map< std::string, Connection > CircuitElement::m_listOfConnections
protected

◆ m_netlistName

std::string CircuitElement::m_netlistName
protected

◆ m_Uid

ot::UID CircuitElement::m_Uid
protected

The documentation for this class was generated from the following files: