KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SYMBOL_BUFFER Class Reference

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_SYMBOLGetSymbol () const
 
void SetSymbol (std::unique_ptr< LIB_SYMBOL > aSymbol)
 
LIB_SYMBOLGetOriginal () const
 
void SetOriginal (std::unique_ptr< LIB_SYMBOL > aSymbol)
 
bool IsModified () const
 
SCH_SCREENGetScreen () const
 

Private Attributes

std::unique_ptr< SCH_SCREENm_screen
 
std::unique_ptr< LIB_SYMBOLm_symbol
 
std::unique_ptr< LIB_SYMBOLm_original
 

Detailed Description

Store a working copy of a library.

Definition at line 57 of file symbol_library_manager.h.

Constructor & Destructor Documentation

◆ SYMBOL_BUFFER()

SYMBOL_BUFFER::SYMBOL_BUFFER ( std::unique_ptr< LIB_SYMBOL aSymbol = nullptr,
std::unique_ptr< SCH_SCREEN aScreen = nullptr 
)

Definition at line 880 of file symbol_library_manager.cpp.

References m_original, and m_symbol.

◆ ~SYMBOL_BUFFER()

SYMBOL_BUFFER::~SYMBOL_BUFFER ( )

Definition at line 890 of file symbol_library_manager.cpp.

Member Function Documentation

◆ GetOriginal()

LIB_SYMBOL & SYMBOL_BUFFER::GetOriginal ( ) const
inline

Definition at line 67 of file symbol_library_manager.h.

References m_original.

Referenced by BOOST_AUTO_TEST_CASE(), and LIB_BUFFER::SaveBuffer().

◆ GetScreen()

SCH_SCREEN * SYMBOL_BUFFER::GetScreen ( ) const
inline

Definition at line 71 of file symbol_library_manager.h.

References m_screen.

Referenced by BOOST_AUTO_TEST_CASE().

◆ GetSymbol()

LIB_SYMBOL & SYMBOL_BUFFER::GetSymbol ( ) const
inline

◆ IsModified()

bool SYMBOL_BUFFER::IsModified ( ) const

Definition at line 925 of file symbol_library_manager.cpp.

References m_screen.

Referenced by BOOST_AUTO_TEST_CASE().

◆ SetOriginal()

void SYMBOL_BUFFER::SetOriginal ( std::unique_ptr< LIB_SYMBOL aSymbol)

Definition at line 910 of file symbol_library_manager.cpp.

References m_original, and m_symbol.

Referenced by BOOST_AUTO_TEST_CASE(), and LIB_BUFFER::SaveBuffer().

◆ SetSymbol()

void SYMBOL_BUFFER::SetSymbol ( std::unique_ptr< LIB_SYMBOL aSymbol)

Definition at line 895 of file symbol_library_manager.cpp.

References m_original, and m_symbol.

Member Data Documentation

◆ m_original

std::unique_ptr<LIB_SYMBOL> SYMBOL_BUFFER::m_original
private

Definition at line 76 of file symbol_library_manager.h.

Referenced by GetOriginal(), SetOriginal(), SetSymbol(), and SYMBOL_BUFFER().

◆ m_screen

std::unique_ptr<SCH_SCREEN> SYMBOL_BUFFER::m_screen
private

Definition at line 74 of file symbol_library_manager.h.

Referenced by GetScreen(), and IsModified().

◆ m_symbol

std::unique_ptr<LIB_SYMBOL> SYMBOL_BUFFER::m_symbol
private

Definition at line 75 of file symbol_library_manager.h.

Referenced by GetSymbol(), SetOriginal(), SetSymbol(), and SYMBOL_BUFFER().


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