KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PNS::LOGGER Class Reference

#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
}
 

Public Member Functions

 LOGGER ()
 
 ~LOGGER ()
 
void Save (const std::string &aFilename)
 
void Clear ()
 
void Log (EVENT_TYPE evt, const VECTOR2I &pos=VECTOR2I(), const ITEM *item=nullptr, const SIZES_SETTINGS *sizes=nullptr)
 
const std::vector< EVENT_ENTRY > & GetEvents ()
 

Private Attributes

std::vector< EVENT_ENTRYm_events
 

Detailed Description

Definition at line 42 of file pns_logger.h.

Member Enumeration Documentation

◆ EVENT_TYPE

Enumerator
EVT_START_ROUTE 
EVT_START_DRAG 
EVT_FIX 
EVT_MOVE 
EVT_ABORT 
EVT_TOGGLE_VIA 
EVT_UNFIX 

Definition at line 46 of file pns_logger.h.

Constructor & Destructor Documentation

◆ LOGGER()

PNS::LOGGER::LOGGER ( )

Definition at line 30 of file pns_logger.cpp.

◆ ~LOGGER()

PNS::LOGGER::~LOGGER ( )

Definition at line 35 of file pns_logger.cpp.

Member Function Documentation

◆ Clear()

void PNS::LOGGER::Clear ( )

◆ GetEvents()

const std::vector< EVENT_ENTRY > & PNS::LOGGER::GetEvents ( )
inline

Definition at line 71 of file pns_logger.h.

References m_events.

◆ Log()

◆ Save()

void PNS::LOGGER::Save ( const std::string &  aFilename)

Definition at line 46 of file pns_logger.cpp.

References m_events.

Member Data Documentation

◆ m_events

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

Definition at line 77 of file pns_logger.h.

Referenced by Clear(), GetEvents(), Log(), and Save().


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