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

#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)
 
BOARD_CONNECTED_ITEMItemById (const PNS::LOGGER::EVENT_ENTRY &evt)
 
std::vector< PNS::LOGGER::EVENT_ENTRY > & Events ()
 
void SetBoard (std::shared_ptr< BOARD > brd)
 
std::shared_ptr< BOARDGetBoard () const
 
PNS::ROUTING_SETTINGSGetRoutingSettings () const
 
const COMMIT_STATEGetExpectedResult () const
 
PNS::ROUTER_MODE GetMode () const
 

Private Member Functions

bool parseCommonPnsProps (PNS::ITEM *aItem, const wxString &cmd, wxStringTokenizer &aTokens)
 
PNS::SEGMENTparsePnsSegmentFromString (wxStringTokenizer &aTokens)
 
PNS::VIAparsePnsViaFromString (wxStringTokenizer &aTokens)
 
PNS::ITEMparseItemFromString (wxStringTokenizer &aTokens)
 

Private Attributes

std::shared_ptr< SETTINGS_MANAGERm_settingsMgr
 
std::unique_ptr< PNS::ROUTING_SETTINGSm_routerSettings
 
std::vector< PNS::LOGGER::EVENT_ENTRYm_events
 
std::shared_ptr< BOARDm_board
 
COMMIT_STATE m_commitState
 
PNS::ROUTER_MODE m_mode
 

Detailed Description

Definition at line 50 of file pns_log_file.h.

Constructor & Destructor Documentation

◆ PNS_LOG_FILE()

PNS_LOG_FILE::PNS_LOG_FILE ( )

Definition at line 66 of file pns_log_file.cpp.

References m_routerSettings.

◆ ~PNS_LOG_FILE()

PNS_LOG_FILE::~PNS_LOG_FILE ( )
inline

Definition at line 54 of file pns_log_file.h.

Member Function Documentation

◆ Events()

std::vector< PNS::LOGGER::EVENT_ENTRY > & PNS_LOG_FILE::Events ( )
inline

Definition at line 80 of file pns_log_file.h.

References m_events.

Referenced by PNS_LOG_PLAYER::ReplayLog().

◆ GetBoard()

std::shared_ptr< BOARD > PNS_LOG_FILE::GetBoard ( ) const
inline

Definition at line 83 of file pns_log_file.h.

References m_board.

Referenced by PNS_LOG_PLAYER::ReplayLog().

◆ GetExpectedResult()

const COMMIT_STATE & PNS_LOG_FILE::GetExpectedResult ( ) const
inline

Definition at line 87 of file pns_log_file.h.

References m_commitState.

Referenced by PNS_LOG_PLAYER::CompareResults().

◆ GetMode()

PNS::ROUTER_MODE PNS_LOG_FILE::GetMode ( ) const
inline

Definition at line 89 of file pns_log_file.h.

References m_mode.

◆ GetRoutingSettings()

PNS::ROUTING_SETTINGS * PNS_LOG_FILE::GetRoutingSettings ( ) const
inline

Definition at line 85 of file pns_log_file.h.

References m_routerSettings.

Referenced by PNS_LOG_PLAYER::ReplayLog().

◆ ItemById()

BOARD_CONNECTED_ITEM * PNS_LOG_FILE::ItemById ( const PNS::LOGGER::EVENT_ENTRY evt)

Definition at line 42 of file pns_log_file.cpp.

References m_board, and PNS::LOGGER::EVENT_ENTRY::uuid.

Referenced by PNS_LOG_PLAYER::ReplayLog().

◆ Load()

◆ parseCommonPnsProps()

bool PNS_LOG_FILE::parseCommonPnsProps ( PNS::ITEM aItem,
const wxString &  cmd,
wxStringTokenizer &  aTokens 
)
private

◆ parseItemFromString()

PNS::ITEM * PNS_LOG_FILE::parseItemFromString ( wxStringTokenizer &  aTokens)
private

Definition at line 181 of file pns_log_file.cpp.

References parsePnsSegmentFromString(), and parsePnsViaFromString().

Referenced by Load().

◆ parsePnsSegmentFromString()

PNS::SEGMENT * PNS_LOG_FILE::parsePnsSegmentFromString ( wxStringTokenizer &  aTokens)
private

◆ parsePnsViaFromString()

PNS::VIA * PNS_LOG_FILE::parsePnsViaFromString ( wxStringTokenizer &  aTokens)
private

◆ SaveLog()

bool PNS_LOG_FILE::SaveLog ( const wxFileName &  logFileName,
REPORTER aRpt 
)

◆ SetBoard()

void PNS_LOG_FILE::SetBoard ( std::shared_ptr< BOARD brd)
inline

Definition at line 82 of file pns_log_file.h.

References m_board.

Member Data Documentation

◆ m_board

std::shared_ptr<BOARD> PNS_LOG_FILE::m_board
private

Definition at line 104 of file pns_log_file.h.

Referenced by GetBoard(), ItemById(), Load(), parseCommonPnsProps(), and SetBoard().

◆ m_commitState

COMMIT_STATE PNS_LOG_FILE::m_commitState
private

Definition at line 105 of file pns_log_file.h.

Referenced by GetExpectedResult(), Load(), and SaveLog().

◆ m_events

std::vector<PNS::LOGGER::EVENT_ENTRY> PNS_LOG_FILE::m_events
private

Definition at line 103 of file pns_log_file.h.

Referenced by Events(), Load(), and SaveLog().

◆ m_mode

PNS::ROUTER_MODE PNS_LOG_FILE::m_mode
private

Definition at line 106 of file pns_log_file.h.

Referenced by GetMode(), Load(), and SaveLog().

◆ m_routerSettings

std::unique_ptr<PNS::ROUTING_SETTINGS> PNS_LOG_FILE::m_routerSettings
private

Definition at line 102 of file pns_log_file.h.

Referenced by GetRoutingSettings(), Load(), and PNS_LOG_FILE().

◆ m_settingsMgr

std::shared_ptr<SETTINGS_MANAGER> PNS_LOG_FILE::m_settingsMgr
private

Definition at line 101 of file pns_log_file.h.

Referenced by Load().


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