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
 
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::SEGMENTparsePnsSegmentFromString (wxStringTokenizer &aTokens)
 
std::unique_ptr< PNS::VIAparsePnsViaFromString (wxStringTokenizer &aTokens)
 
std::unique_ptr< PNS::ITEMparseItemFromString (wxStringTokenizer &aTokens)
 
std::shared_ptr< SHAPEparseShape (SHAPE_TYPE expectedType, 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
 
std::vector< std::unique_ptr< PNS::ITEM > > m_parsed_items
 
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 96 of file pns_log_file.h.

References m_mode.

Referenced by PNS_LOG_PLAYER::ReplayLog().

◆ 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()

std::unique_ptr< PNS::ITEM > PNS_LOG_FILE::parseItemFromString ( wxStringTokenizer &  aTokens)
private

Definition at line 182 of file pns_log_file.cpp.

References parsePnsSegmentFromString(), and parsePnsViaFromString().

Referenced by Load().

◆ parsePnsSegmentFromString()

std::unique_ptr< PNS::SEGMENT > PNS_LOG_FILE::parsePnsSegmentFromString ( wxStringTokenizer &  aTokens)
private

Definition at line 123 of file pns_log_file.cpp.

References parseCommonPnsProps(), parseShape(), and SH_SEGMENT.

Referenced by parseItemFromString().

◆ parsePnsViaFromString()

std::unique_ptr< PNS::VIA > PNS_LOG_FILE::parsePnsViaFromString ( wxStringTokenizer &  aTokens)
private

◆ parseShape()

std::shared_ptr< SHAPE > PNS_LOG_FILE::parseShape ( SHAPE_TYPE  expectedType,
wxStringTokenizer &  aTokens 
)
private

Definition at line 73 of file pns_log_file.cpp.

References VECTOR2< T >::x, and VECTOR2< T >::y.

Referenced by parsePnsSegmentFromString(), and parsePnsViaFromString().

◆ 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.

◆ SetExpectedResult()

void PNS_LOG_FILE::SetExpectedResult ( const COMMIT_STATE aCommitState,
std::vector< std::unique_ptr< PNS::ITEM > >  aParsedItems 
)
inline

Definition at line 89 of file pns_log_file.h.

References m_commitState, and m_parsed_items.

Referenced by PNS_LOG_PLAYER::ReplayLog().

◆ SetMode()

void PNS_LOG_FILE::SetMode ( PNS::ROUTER_MODE  aMode)
inline

Definition at line 98 of file pns_log_file.h.

References m_mode.

Member Data Documentation

◆ m_board

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

Definition at line 115 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 116 of file pns_log_file.h.

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

◆ m_events

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

Definition at line 114 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 118 of file pns_log_file.h.

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

◆ m_parsed_items

std::vector<std::unique_ptr<PNS::ITEM> > PNS_LOG_FILE::m_parsed_items
private

Definition at line 117 of file pns_log_file.h.

Referenced by Load(), and SetExpectedResult().

◆ m_routerSettings

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

Definition at line 113 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 112 of file pns_log_file.h.

Referenced by Load().


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