OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
CircuitElement.h
Go to the documentation of this file.
1/*
2 * Application.h
3 *
4 * Created on:
5 * Author:
6 * Copyright (c)
7 */
8
9//Service Header
10#include "Connection.h"
11
12#pragma once
13//OT Header
14#include "OTCore/Point2D.h"
15#include "ClassFactoryBlock.h"
16
17//C++ Header
18#include <string>
19#include <list>
20#include <map>
21#include <set>
22#include <unordered_set>
23#include <list>
24
26{
27
28
29protected:
30
31
32 //Attributes
33 std::string m_itemName;
34 std::string m_editorName;
36 std::string m_netlistName;
37 std::string m_customName;
38 std::map < std::string, Connection > m_listOfConnections;
39
40public:
41
42
43 CircuitElement(std::string itemName, std::string editorName, ot::UID Uid, std::string netlistName);
44
45 virtual ~CircuitElement() {}
46
47 virtual std::string type() const = 0;
48
49
50
51 //Getter
52 std::string getItemName();
53 std::string getEditorName();
55 std::map<std::string ,Connection>& getList();
56 std::string getNetlistName();
57 std::string getCustomName();
58
59 //Setter
60 void setItemName(std::string name);
61 void setEditorName(std::string name);
62 void setUID(ot::UID id);
63 void setNetlistName(std::string name);
64 void setCustomName(std::string name);
65
66 //Additional Functions
67 /*bool*/ void addConnection(std::string connactable,const Connection& obj);
68
69
70
71
72
73
74
75};
Definition CircuitElement.h:26
std::string m_itemName
Definition CircuitElement.h:33
std::string getCustomName()
Definition CircuitElement.cpp:37
void setCustomName(std::string name)
Definition CircuitElement.cpp:49
std::string getNetlistName()
Definition CircuitElement.cpp:35
std::string m_customName
Definition CircuitElement.h:37
virtual std::string type() const =0
void addConnection(std::string connactable, const Connection &obj)
Definition CircuitElement.cpp:53
std::string getEditorName()
Definition CircuitElement.cpp:29
std::map< std::string, Connection > & getList()
Definition CircuitElement.cpp:33
void setNetlistName(std::string name)
Definition CircuitElement.cpp:47
std::string getItemName()
Definition CircuitElement.cpp:27
ot::UID m_Uid
Definition CircuitElement.h:35
CircuitElement(std::string itemName, std::string editorName, ot::UID Uid, std::string netlistName)
Definition CircuitElement.cpp:18
std::string m_editorName
Definition CircuitElement.h:34
ot::UID getUID()
Definition CircuitElement.cpp:31
void setItemName(std::string name)
Definition CircuitElement.cpp:40
void setEditorName(std::string name)
Definition CircuitElement.cpp:42
std::map< std::string, Connection > m_listOfConnections
Definition CircuitElement.h:38
std::string m_netlistName
Definition CircuitElement.h:36
void setUID(ot::UID id)
Definition CircuitElement.cpp:44
virtual ~CircuitElement()
Definition CircuitElement.h:45
Definition Connection.h:12
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27