KiCad PCB EDA Suite
|
Store a working copy of a library. More...
#include <symbol_library_manager.h>
Public Member Functions | |
SYMBOL_BUFFER (std::unique_ptr< LIB_SYMBOL > aSymbol=nullptr, std::unique_ptr< SCH_SCREEN > aScreen=nullptr) | |
~SYMBOL_BUFFER () | |
LIB_SYMBOL & | GetSymbol () const |
void | SetSymbol (std::unique_ptr< LIB_SYMBOL > aSymbol) |
LIB_SYMBOL & | GetOriginal () const |
void | SetOriginal (std::unique_ptr< LIB_SYMBOL > aSymbol) |
bool | IsModified () const |
SCH_SCREEN * | GetScreen () const |
Private Attributes | |
std::unique_ptr< SCH_SCREEN > | m_screen |
std::unique_ptr< LIB_SYMBOL > | m_symbol |
std::unique_ptr< LIB_SYMBOL > | m_original |
Store a working copy of a library.
Definition at line 57 of file symbol_library_manager.h.
SYMBOL_BUFFER::SYMBOL_BUFFER | ( | std::unique_ptr< LIB_SYMBOL > | aSymbol = nullptr , |
std::unique_ptr< SCH_SCREEN > | aScreen = nullptr |
||
) |
Definition at line 882 of file symbol_library_manager.cpp.
References m_original, and m_symbol.
SYMBOL_BUFFER::~SYMBOL_BUFFER | ( | ) |
Definition at line 892 of file symbol_library_manager.cpp.
|
inline |
Definition at line 67 of file symbol_library_manager.h.
References m_original.
Referenced by BOOST_AUTO_TEST_CASE(), and LIB_BUFFER::SaveBuffer().
|
inline |
Definition at line 71 of file symbol_library_manager.h.
References m_screen.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 64 of file symbol_library_manager.h.
References m_symbol.
Referenced by BOOST_AUTO_TEST_CASE(), LIB_BUFFER::DeleteBuffer(), LIB_BUFFER::removeChildSymbols(), LIB_BUFFER::SaveBuffer(), and LIB_BUFFER::UpdateBuffer().
bool SYMBOL_BUFFER::IsModified | ( | ) | const |
Definition at line 927 of file symbol_library_manager.cpp.
References m_screen.
Referenced by BOOST_AUTO_TEST_CASE().
void SYMBOL_BUFFER::SetOriginal | ( | std::unique_ptr< LIB_SYMBOL > | aSymbol | ) |
Definition at line 912 of file symbol_library_manager.cpp.
References m_original, and m_symbol.
Referenced by BOOST_AUTO_TEST_CASE(), and LIB_BUFFER::SaveBuffer().
void SYMBOL_BUFFER::SetSymbol | ( | std::unique_ptr< LIB_SYMBOL > | aSymbol | ) |
Definition at line 897 of file symbol_library_manager.cpp.
References m_original, and m_symbol.
|
private |
Definition at line 76 of file symbol_library_manager.h.
Referenced by GetOriginal(), SetOriginal(), SetSymbol(), and SYMBOL_BUFFER().
|
private |
Definition at line 74 of file symbol_library_manager.h.
Referenced by GetScreen(), and IsModified().
|
private |
Definition at line 75 of file symbol_library_manager.h.
Referenced by GetSymbol(), SetOriginal(), SetSymbol(), and SYMBOL_BUFFER().