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 1147 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 1150 of file settings_manager.cpp.

1151  :
1152  m_files( aVec ),
1153  m_condition( aCond )
1154  {
1155  }
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 1165 of file settings_manager.cpp.

1166  {
1167  return wxDIR_CONTINUE;
1168  }

◆ OnFile()

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

Definition at line 1157 of file settings_manager.cpp.

1158  {
1159  if( m_condition( aFile ) )
1160  m_files.emplace_back( aFile );
1161 
1162  return wxDIR_CONTINUE;
1163  }
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 1173 of file settings_manager.cpp.

Referenced by OnFile().

◆ m_files

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

Definition at line 1171 of file settings_manager.cpp.

Referenced by OnFile().


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