Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CLogicsComponentOthers.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_LOGIC_COMPONENTS_CLOGICSCOMPONENTOTHERS_HPP_
2#define IV_SRC_LOGIC_COMPONENTS_CLOGICSCOMPONENTOTHERS_HPP_
3
5
12{
13public:
14 enum class ECPPosition
15 {
16 Bottom,
17 Left,
18 Right,
19 Top,
21 };// Connection Point position on the logic component
22
23 // TODO: aag. ver si hace falta guardar la posición del punto de conexión
24 // static ECPPosition enumCPPosition(const std::string &strPos);
25 // static std::string strCPPosition(ECPPosition pos);
26
27 // TODO: aag. strGuiOthers() se utiliza también para almacenar el atributo "Name" de la sección "LogicsElementData"
28 // en el .led, pero sólo se utiliza para mostrarlo en el canvas. Tal vez no habría que almacenarlo.
29 static std::string strGuiOthers(iv::logic::eOthers otherBlock, bool shortName = false);// string for GUI
30
31 explicit CLogicsComponentOthers(const iv::types::logic::ComponentType &componentTypeTuple);
33 const std::string &name);
35 ~CLogicsComponentOthers() override = default;
40
41 iv::file::xml::node read(const iv::file::xml::node &node) override;
42 iv::file::xml::node save(iv::file::xml::node &node) const override;
43
45
46 [[nodiscard]] ECPPosition getConnectionPointPosition() const;
47
48private:
49 ECPPosition m_cPPosition;// connection point position
50};
51
52#endif//IV_SRC_LOGIC_COMPONENTS_CLOGICSCOMPONENTOTHERS_HPP_
uint32_t TId
Definition AbstractCanvasItem.hpp:47
Definition CLogicsComponentOthers.hpp:12
CLogicsComponentOthers & operator=(const CLogicsComponentOthers &other)=delete
void setConnectionPointPosition(ECPPosition cPPosition)
Definition CLogicsComponentOthers.cpp:107
static std::string strGuiOthers(iv::logic::eOthers otherBlock, bool shortName=false)
Definition CLogicsComponentOthers.cpp:50
ECPPosition
Definition CLogicsComponentOthers.hpp:15
~CLogicsComponentOthers() override=default
ECPPosition m_cPPosition
Definition CLogicsComponentOthers.hpp:49
CLogicsComponentOthers()=delete
iv::file::xml::node read(const iv::file::xml::node &node) override
Definition CLogicsComponentOthers.cpp:77
CLogicsComponentOthers(CLogicsComponentOthers &&other)=delete
CLogicsComponentOthers & operator=(CLogicsComponentOthers &&other)=delete
iv::file::xml::node save(iv::file::xml::node &node) const override
Definition CLogicsComponentOthers.cpp:92
ECPPosition getConnectionPointPosition() const
Definition CLogicsComponentOthers.cpp:112
CLogicsComponentOthers(const CLogicsComponentOthers &other)=delete
Definition CLogicsComponent.hpp:23
Definition xmlFile.hpp:15
eOthers
Definition enums.hpp:30
Tuple containing the type of logic component (logic blocks, library blocks & others blocks).
Definition types.hpp:22