1#ifndef LIBS_LOGIC_ABSTRACTLOGICSELEMENT_HPP_
2#define LIBS_LOGIC_ABSTRACTLOGICSELEMENT_HPP_
33 typedef std::map<AbstractCanvasItem::TTupleDrawingMode, TMapPartTypeDrawingMode>
46 const std::string &name);
57 std::vector<std::shared_ptr<AbstractCanvasItem>>
getLinkedItems()
override;
58 [[nodiscard]]
virtual std::string
maxText()
const;
65 [[nodiscard]]
virtual std::string
getMainText()
const;
Definition AbstractCanvasItem.hpp:24
uint32_t TId
Definition AbstractCanvasItem.hpp:47
Definition AbstractLogicsElement.hpp:15
static std::string strLogicsElementType(iv::logic::eLogicsElementType type)
Definition AbstractLogicsElement.cpp:28
iv::file::xml::node save(iv::file::xml::node &node) const override
Definition AbstractLogicsElement.cpp:82
virtual std::optional< iv::types::Size > getDefaultSize() const
Definition AbstractLogicsElement.cpp:134
AbstractLogicsElement()=delete
std::map< TIndex, EPartType > TMapIndexPartType
Definition AbstractLogicsElement.hpp:31
virtual std::string maxText() const
Definition AbstractLogicsElement.cpp:101
const iv::logic::eLogicsElementType & getElementType() const
Definition AbstractLogicsElement.cpp:114
virtual std::string getDescriptiveText() const
Definition AbstractLogicsElement.cpp:129
std::string m_name
Definition AbstractLogicsElement.hpp:72
std::map< AbstractCanvasItem::TTupleDrawingMode, TMapPartTypeDrawingMode > TMapDrawingModePartsDrawingMode
Definition AbstractLogicsElement.hpp:34
std::vector< std::shared_ptr< AbstractCanvasItem > > getLinkedItems() override
Definition AbstractLogicsElement.cpp:96
iv::file::xml::node read(const iv::file::xml::node &node) override
Definition AbstractLogicsElement.cpp:67
AbstractLogicsElement & operator=(const AbstractLogicsElement &other)=delete
std::pair< TIndex, EPartType > TPairIndexPartType
Definition AbstractLogicsElement.hpp:30
EPartType
Definition AbstractLogicsElement.hpp:22
virtual std::string getMainText() const
Definition AbstractLogicsElement.cpp:124
AbstractLogicsElement(const AbstractLogicsElement &other)=delete
void resetLinkedItems() override
Definition AbstractLogicsElement.cpp:110
std::map< TPairIndexPartType, AbstractCanvasItem::TTupleDrawingMode > TMapPartTypeDrawingMode
Definition AbstractLogicsElement.hpp:32
~AbstractLogicsElement() override=default
static constexpr std::string_view kPrvKeySectionLogicsElementData
Definition AbstractLogicsElement.hpp:36
void updateLinkedItems() override
Definition AbstractLogicsElement.cpp:106
AbstractLogicsElement(AbstractLogicsElement &&other)=delete
static iv::logic::eLogicsElementType readLogicsElementType(const iv::file::xml::node &node)
Definition AbstractLogicsElement.cpp:43
AbstractLogicsElement & operator=(AbstractLogicsElement &&other)=delete
const std::string & getElementName() const
Definition AbstractLogicsElement.cpp:119
iv::logic::eLogicsElementType m_logicsElementType
Definition AbstractLogicsElement.hpp:71
static iv::logic::eLogicsElementType enumLogicsElementType(const std::string &strType)
Definition AbstractLogicsElement.cpp:13
Definition xmlFile.hpp:15
eLogicsElementType
Definition enums.hpp:8