| 
    KiCad PCB EDA Suite
    
   | 
 
#include <pns_log_player.h>
Public Member Functions | |
| PNS_LOG_PLAYER () | |
| ~PNS_LOG_PLAYER () | |
| void | ReplayLog (PNS_LOG_FILE *aLog, int aStartEventIndex=0, int aFrom=0, int aTo=-1, bool aUpdateExpectedResult=false) | 
| void | SetReporter (REPORTER *aReporter) | 
| PNS_TEST_DEBUG_DECORATOR * | GetDebugDecorator () | 
| std::shared_ptr< PNS_LOG_VIEW_TRACKER > | GetViewTracker () | 
| void | SetTimeLimit (uint64_t microseconds) | 
| bool | CompareResults (PNS_LOG_FILE *aLog) | 
| const PNS_LOG_FILE::COMMIT_STATE | GetRouterUpdatedItems () | 
Private Member Functions | |
| void | createRouter () | 
Private Attributes | |
| std::shared_ptr< PNS_LOG_VIEW_TRACKER > | m_viewTracker | 
| std::unique_ptr< PNS_LOG_PLAYER_KICAD_IFACE > | m_iface | 
| PNS_TEST_DEBUG_DECORATOR * | m_debugDecorator | 
| std::shared_ptr< BOARD > | m_board | 
| std::unique_ptr< PNS::ROUTER > | m_router | 
| std::unique_ptr< PNS::ROUTING_SETTINGS > | m_routingSettings | 
| uint64_t | m_timeLimitUs | 
| REPORTER * | m_reporter | 
Definition at line 93 of file pns_log_player.h.
| PNS_LOG_PLAYER::PNS_LOG_PLAYER | ( | ) | 
Definition at line 34 of file pns_log_player.cpp.
References NULL_REPORTER::GetInstance(), and SetReporter().
| PNS_LOG_PLAYER::~PNS_LOG_PLAYER | ( | ) | 
Definition at line 40 of file pns_log_player.cpp.
| bool PNS_LOG_PLAYER::CompareResults | ( | PNS_LOG_FILE * | aLog | ) | 
Definition at line 309 of file pns_log_player.cpp.
References PNS_LOG_FILE::GetExpectedResult(), and GetRouterUpdatedItems().
Referenced by PNS_TEST_FIXTURE::RunTest().
      
  | 
  private | 
Definition at line 44 of file pns_log_player.cpp.
References m_board, m_debugDecorator, m_iface, m_reporter, m_router, m_routingSettings, m_viewTracker, and PNS::RM_Walkaround.
Referenced by ReplayLog().
      
  | 
  inline | 
Definition at line 104 of file pns_log_player.h.
References m_debugDecorator.
| const PNS_LOG_FILE::COMMIT_STATE PNS_LOG_PLAYER::GetRouterUpdatedItems | ( | ) | 
Definition at line 65 of file pns_log_player.cpp.
References PNS_LOG_FILE::COMMIT_STATE::m_addedItems, PNS_LOG_FILE::COMMIT_STATE::m_removedIds, and m_router.
Referenced by CompareResults().
      
  | 
  inline | 
Definition at line 105 of file pns_log_player.h.
References m_viewTracker.
| void PNS_LOG_PLAYER::ReplayLog | ( | PNS_LOG_FILE * | aLog, | 
| int | aStartEventIndex = 0, | ||
| int | aFrom = 0, | ||
| int | aTo = -1, | ||
| bool | aUpdateExpectedResult = false ) | 
Definition at line 93 of file pns_log_player.cpp.
References PNS::ITEM_SET::Add(), PNS::LINE::CLine(), createRouter(), PNS::ROUTER::DRAG_SEGMENT, PNS_LOG_FILE::Events(), PNS::LOGGER::EVT_FIX, PNS::LOGGER::EVT_MOVE, PNS::LOGGER::EVT_START_DRAG, PNS::LOGGER::EVT_START_MULTIDRAG, PNS::LOGGER::EVT_START_ROUTE, PNS::LOGGER::EVT_TOGGLE_VIA, PNS::LOGGER::EVT_UNFIX, PNS_LOG_FILE::GetBoard(), PNS_LOG_FILE::GetMode(), PNS_LOG_FILE::GetRoutingSettings(), PNS::NODE::GetUpdatedItems(), PNS_LOG_FILE::ItemsById(), PNS::ITEM::Layers(), PNS_LOG_FILE::COMMIT_STATE::m_addedItems, m_board, m_debugDecorator, PNS_LOG_FILE::COMMIT_STATE::m_heads, m_iface, PNS_LOG_FILE::COMMIT_STATE::m_removedIds, m_reporter, m_router, m_viewTracker, MAGENTA, PNSLOGINFO, PNS::ROUTER::ROUTE_TRACK, PNS_LOG_FILE::SetExpectedResult(), PNS_LAYER_RANGE::Start(), and YELLOW.
Referenced by PNS_TEST_FIXTURE::RunTest().
      
  | 
  inline | 
Definition at line 102 of file pns_log_player.h.
References m_reporter.
Referenced by PNS_LOG_PLAYER(), and PNS_TEST_FIXTURE::RunTest().
      
  | 
  inline | 
Definition at line 107 of file pns_log_player.h.
References m_timeLimitUs.
      
  | 
  private | 
Definition at line 118 of file pns_log_player.h.
Referenced by createRouter(), and ReplayLog().
      
  | 
  private | 
Definition at line 117 of file pns_log_player.h.
Referenced by createRouter(), GetDebugDecorator(), and ReplayLog().
      
  | 
  private | 
Definition at line 116 of file pns_log_player.h.
Referenced by createRouter(), and ReplayLog().
      
  | 
  private | 
Definition at line 122 of file pns_log_player.h.
Referenced by createRouter(), ReplayLog(), and SetReporter().
      
  | 
  private | 
Definition at line 119 of file pns_log_player.h.
Referenced by createRouter(), GetRouterUpdatedItems(), and ReplayLog().
      
  | 
  private | 
Definition at line 120 of file pns_log_player.h.
Referenced by createRouter().
      
  | 
  private | 
Definition at line 121 of file pns_log_player.h.
Referenced by SetTimeLimit().
      
  | 
  private | 
Definition at line 115 of file pns_log_player.h.
Referenced by createRouter(), GetViewTracker(), and ReplayLog().