KiCad PCB EDA Suite
|
#include <pns_log_file.h>
Classes | |
struct | COMMIT_STATE |
Public Member Functions | |
PNS_LOG_FILE () | |
~PNS_LOG_FILE () | |
bool | SaveLog (const wxFileName &logFileName, REPORTER *aRpt) |
bool | Load (const wxFileName &logFileName, REPORTER *aRpt) |
std::vector< BOARD_CONNECTED_ITEM * > | ItemsById (const PNS::LOGGER::EVENT_ENTRY &evt) |
BOARD_CONNECTED_ITEM * | ItemById (const PNS::LOGGER::EVENT_ENTRY &evt) |
std::vector< PNS::LOGGER::EVENT_ENTRY > & | Events () |
void | SetBoard (std::shared_ptr< BOARD > brd) |
std::shared_ptr< BOARD > | GetBoard () const |
PNS::ROUTING_SETTINGS * | GetRoutingSettings () const |
const COMMIT_STATE & | GetExpectedResult () const |
void | SetExpectedResult (const COMMIT_STATE &aCommitState, std::vector< std::unique_ptr< PNS::ITEM > > aParsedItems) |
PNS::ROUTER_MODE | GetMode () const |
void | SetMode (PNS::ROUTER_MODE aMode) |
Private Member Functions | |
bool | parseCommonPnsProps (PNS::ITEM *aItem, const wxString &cmd, wxStringTokenizer &aTokens) |
std::unique_ptr< PNS::SEGMENT > | parsePnsSegmentFromString (wxStringTokenizer &aTokens) |
std::unique_ptr< PNS::VIA > | parsePnsViaFromString (wxStringTokenizer &aTokens) |
std::unique_ptr< PNS::ITEM > | parseItemFromString (wxStringTokenizer &aTokens) |
std::shared_ptr< SHAPE > | parseShape (SHAPE_TYPE expectedType, wxStringTokenizer &aTokens) |
Private Attributes | |
std::shared_ptr< SETTINGS_MANAGER > | m_settingsMgr |
std::unique_ptr< PNS::ROUTING_SETTINGS > | m_routerSettings |
std::vector< PNS::LOGGER::EVENT_ENTRY > | m_events |
std::shared_ptr< BOARD > | m_board |
COMMIT_STATE | m_commitState |
std::vector< std::unique_ptr< PNS::ITEM > > | m_parsed_items |
PNS::ROUTER_MODE | m_mode |
Definition at line 50 of file pns_log_file.h.
PNS_LOG_FILE::PNS_LOG_FILE | ( | ) |
Definition at line 83 of file pns_log_file.cpp.
References m_routerSettings.
|
inline |
Definition at line 54 of file pns_log_file.h.
|
inline |
Definition at line 81 of file pns_log_file.h.
References m_events.
Referenced by PNS_LOG_PLAYER::ReplayLog().
|
inline |
Definition at line 84 of file pns_log_file.h.
References m_board.
Referenced by PNS_LOG_PLAYER::ReplayLog().
|
inline |
Definition at line 88 of file pns_log_file.h.
References m_commitState.
Referenced by PNS_LOG_PLAYER::CompareResults().
|
inline |
Definition at line 97 of file pns_log_file.h.
References m_mode.
Referenced by PNS_LOG_PLAYER::ReplayLog().
|
inline |
Definition at line 86 of file pns_log_file.h.
References m_routerSettings.
Referenced by PNS_LOG_PLAYER::ReplayLog().
BOARD_CONNECTED_ITEM * PNS_LOG_FILE::ItemById | ( | const PNS::LOGGER::EVENT_ENTRY & | evt | ) |
Definition at line 65 of file pns_log_file.cpp.
References ItemsById().
std::vector< BOARD_CONNECTED_ITEM * > PNS_LOG_FILE::ItemsById | ( | const PNS::LOGGER::EVENT_ENTRY & | evt | ) |
Definition at line 42 of file pns_log_file.cpp.
References m_board, and PNS::LOGGER::EVENT_ENTRY::uuids.
Referenced by ItemById(), and PNS_LOG_PLAYER::ReplayLog().
bool PNS_LOG_FILE::Load | ( | const wxFileName & | logFileName, |
REPORTER * | aRpt | ||
) |
Definition at line 332 of file pns_log_file.cpp.
References PCB_IO_KICAD_SEXPR::LoadBoard(), PNS_LOG_FILE::COMMIT_STATE::m_addedItems, m_board, m_commitState, BOARD_DESIGN_SETTINGS::m_DRCEngine, m_events, m_mode, m_parsed_items, PNS_LOG_FILE::COMMIT_STATE::m_removedIds, m_routerSettings, m_settingsMgr, BOARD_DESIGN_SETTINGS::m_UseConnectedTrackWidth, PNS::LOGGER::ParseEvent(), parseItemFromString(), IO_ERROR::Problem(), project, readLine(), REPORTER::Report(), RPT_SEVERITY_ERROR, RPT_SEVERITY_WARNING, and IO_ERROR::What().
Referenced by PNS_TEST_FIXTURE::RunTest().
|
private |
Definition at line 122 of file pns_log_file.cpp.
References m_board, PNS::ITEM::SetLayers(), and PNS::ITEM::SetNet().
Referenced by parsePnsSegmentFromString(), and parsePnsViaFromString().
|
private |
Definition at line 199 of file pns_log_file.cpp.
References parsePnsSegmentFromString(), and parsePnsViaFromString().
Referenced by Load().
|
private |
Definition at line 140 of file pns_log_file.cpp.
References parseCommonPnsProps(), parseShape(), and SH_SEGMENT.
Referenced by parseItemFromString().
|
private |
Definition at line 166 of file pns_log_file.cpp.
References PNS::VIA::ALL_LAYERS, SHAPE_CIRCLE::GetCenter(), SHAPE_CIRCLE::GetRadius(), parseCommonPnsProps(), parseShape(), SH_CIRCLE, and via.
Referenced by parseItemFromString().
|
private |
Definition at line 90 of file pns_log_file.cpp.
References VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by parsePnsSegmentFromString(), and parsePnsViaFromString().
bool PNS_LOG_FILE::SaveLog | ( | const wxFileName & | logFileName, |
REPORTER * | aRpt | ||
) |
Definition at line 318 of file pns_log_file.cpp.
References PNS::LOGGER::FormatLogFileAsString(), PNS_LOG_FILE::COMMIT_STATE::m_addedItems, m_commitState, m_events, PNS_LOG_FILE::COMMIT_STATE::m_heads, m_mode, and PNS_LOG_FILE::COMMIT_STATE::m_removedIds.
|
inline |
Definition at line 83 of file pns_log_file.h.
References m_board.
|
inline |
Definition at line 90 of file pns_log_file.h.
References m_commitState, and m_parsed_items.
Referenced by PNS_LOG_PLAYER::ReplayLog().
|
inline |
Definition at line 99 of file pns_log_file.h.
References m_mode.
|
private |
Definition at line 116 of file pns_log_file.h.
Referenced by GetBoard(), ItemsById(), Load(), parseCommonPnsProps(), and SetBoard().
|
private |
Definition at line 117 of file pns_log_file.h.
Referenced by GetExpectedResult(), Load(), SaveLog(), and SetExpectedResult().
|
private |
Definition at line 115 of file pns_log_file.h.
|
private |
|
private |
Definition at line 118 of file pns_log_file.h.
Referenced by Load(), and SetExpectedResult().
|
private |
Definition at line 114 of file pns_log_file.h.
Referenced by GetRoutingSettings(), Load(), and PNS_LOG_FILE().
|
private |
Definition at line 113 of file pns_log_file.h.
Referenced by Load().