| 
    KiCad PCB EDA Suite
    
   | 
 
#include <pns_logger.h>
Classes | |
| struct | EVENT_ENTRY | 
Public Types | |
| enum | EVENT_TYPE {  EVT_START_ROUTE = 0 , EVT_START_DRAG , EVT_FIX , EVT_MOVE , EVT_ABORT , EVT_TOGGLE_VIA , EVT_UNFIX , EVT_START_MULTIDRAG }  | 
Public Member Functions | |
| LOGGER () | |
| ~LOGGER () | |
| void | Clear () | 
| void | LogM (EVENT_TYPE evt, const VECTOR2I &pos=VECTOR2I(), std::vector< ITEM * > items={}, const SIZES_SETTINGS *sizes=nullptr, int aLayer=0) | 
| void | Log (EVENT_TYPE evt, const VECTOR2I &pos=VECTOR2I(), const ITEM *item=nullptr, const SIZES_SETTINGS *sizes=nullptr, int aLayer=0) | 
| const std::vector< EVENT_ENTRY > & | GetEvents () | 
Static Public Member Functions | |
| static wxString | FormatLogFileAsString (int aMode, const std::vector< ITEM * > &aAddedItems, const std::set< KIID > &aRemovedItems, const std::vector< ITEM * > &aHeads, const std::vector< EVENT_ENTRY > &aEvents) | 
| static wxString | FormatEvent (const EVENT_ENTRY &aEvent) | 
| static EVENT_ENTRY | ParseEvent (const wxString &aLine) | 
Private Attributes | |
| std::vector< EVENT_ENTRY > | m_events | 
Definition at line 42 of file pns_logger.h.
| Enumerator | |
|---|---|
| EVT_START_ROUTE | |
| EVT_START_DRAG | |
| EVT_FIX | |
| EVT_MOVE | |
| EVT_ABORT | |
| EVT_TOGGLE_VIA | |
| EVT_UNFIX | |
| EVT_START_MULTIDRAG | |
Definition at line 46 of file pns_logger.h.
| PNS::LOGGER::LOGGER | ( | ) | 
Definition at line 30 of file pns_logger.cpp.
| PNS::LOGGER::~LOGGER | ( | ) | 
Definition at line 35 of file pns_logger.cpp.
| void PNS::LOGGER::Clear | ( | ) | 
Definition at line 40 of file pns_logger.cpp.
References m_events.
      
  | 
  static | 
Definition at line 103 of file pns_logger.cpp.
References PNS::SIZES_SETTINGS::GetLayerBottom(), PNS::SIZES_SETTINGS::GetLayerTop(), PNS::LOGGER::EVENT_ENTRY::layer, PNS::LOGGER::EVENT_ENTRY::p, PNS::LOGGER::EVENT_ENTRY::sizes, PNS::SIZES_SETTINGS::TrackWidth(), PNS::SIZES_SETTINGS::TrackWidthIsExplicit(), PNS::LOGGER::EVENT_ENTRY::type, PNS::LOGGER::EVENT_ENTRY::uuids, PNS::SIZES_SETTINGS::ViaDiameter(), PNS::SIZES_SETTINGS::ViaDrill(), PNS::SIZES_SETTINGS::ViaType(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by FormatLogFileAsString().
      
  | 
  static | 
Definition at line 79 of file pns_logger.cpp.
References FormatEvent(), and result.
Referenced by PNS_LOG_FILE::SaveLog(), and ROUTER_TOOL::saveRouterDebugLog().
      
  | 
  inline | 
Definition at line 91 of file pns_logger.h.
References m_events.
| void PNS::LOGGER::Log | ( | LOGGER::EVENT_TYPE | evt, | 
| const VECTOR2I & | pos = VECTOR2I(), | ||
| const ITEM * | item = nullptr, | ||
| const SIZES_SETTINGS * | sizes = nullptr, | ||
| int | aLayer = 0 ) | 
Definition at line 70 of file pns_logger.cpp.
References LogM().
| void PNS::LOGGER::LogM | ( | LOGGER::EVENT_TYPE | evt, | 
| const VECTOR2I & | pos = VECTOR2I(), | ||
| std::vector< ITEM * > | items = {}, | ||
| const SIZES_SETTINGS * | sizes = nullptr, | ||
| int | aLayer = 0 ) | 
Definition at line 46 of file pns_logger.cpp.
References PNS::LOGGER::EVENT_ENTRY::layer, m_events, PNS::LOGGER::EVENT_ENTRY::p, PNS::LOGGER::EVENT_ENTRY::sizes, PNS::LOGGER::EVENT_ENTRY::type, and PNS::LOGGER::EVENT_ENTRY::uuids.
Referenced by Log().
      
  | 
  static | 
Definition at line 128 of file pns_logger.cpp.
References PNS::LOGGER::EVENT_ENTRY::layer, PNS::LOGGER::EVENT_ENTRY::p, PNS::LOGGER::EVENT_ENTRY::type, PNS::LOGGER::EVENT_ENTRY::uuids, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PNS_LOG_FILE::Load().
      
  | 
  private | 
Definition at line 107 of file pns_logger.h.
Referenced by Clear(), GetEvents(), and LogM().