KiCad PCB EDA Suite
VECTOR_INSERT_TRAVERSER Class Reference
Inheritance diagram for VECTOR_INSERT_TRAVERSER:

Public Member Functions

 VECTOR_INSERT_TRAVERSER (std::vector< wxString > &aVec, std::function< bool(const wxString &)> aCond)
 
wxDirTraverseResult OnFile (const wxString &aFile) override
 
wxDirTraverseResult OnDir (const wxString &aDirName) override
 

Private Attributes

std::vector< wxString > & m_files
 
std::function< bool(const wxString &)> m_condition
 

Detailed Description

Definition at line 1130 of file settings_manager.cpp.

Constructor & Destructor Documentation

◆ VECTOR_INSERT_TRAVERSER()

VECTOR_INSERT_TRAVERSER::VECTOR_INSERT_TRAVERSER ( std::vector< wxString > &  aVec,
std::function< bool(const wxString &)>  aCond 
)
inline

Definition at line 1133 of file settings_manager.cpp.

1134  :
1135  m_files( aVec ),
1136  m_condition( aCond )
1137  {
1138  }
std::vector< wxString > & m_files
std::function< bool(const wxString &)> m_condition

Member Function Documentation

◆ OnDir()

wxDirTraverseResult VECTOR_INSERT_TRAVERSER::OnDir ( const wxString &  aDirName)
inlineoverride

Definition at line 1148 of file settings_manager.cpp.

1149  {
1150  return wxDIR_CONTINUE;
1151  }

◆ OnFile()

wxDirTraverseResult VECTOR_INSERT_TRAVERSER::OnFile ( const wxString &  aFile)
inlineoverride

Definition at line 1140 of file settings_manager.cpp.

1141  {
1142  if( m_condition( aFile ) )
1143  m_files.emplace_back( aFile );
1144 
1145  return wxDIR_CONTINUE;
1146  }
std::vector< wxString > & m_files
std::function< bool(const wxString &)> m_condition

References m_condition, and m_files.

Member Data Documentation

◆ m_condition

std::function<bool( const wxString& )> VECTOR_INSERT_TRAVERSER::m_condition
private

Definition at line 1156 of file settings_manager.cpp.

Referenced by OnFile().

◆ m_files

std::vector<wxString>& VECTOR_INSERT_TRAVERSER::m_files
private

Definition at line 1154 of file settings_manager.cpp.

Referenced by OnFile().


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