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 1151 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 1154 of file settings_manager.cpp.

1155 :
1156 m_files( aVec ),
1157 m_condition( aCond )
1158 {
1159 }
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 1169 of file settings_manager.cpp.

1170 {
1171 return wxDIR_CONTINUE;
1172 }

◆ OnFile()

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

Definition at line 1161 of file settings_manager.cpp.

1162 {
1163 if( m_condition( aFile ) )
1164 m_files.emplace_back( aFile );
1165
1166 return wxDIR_CONTINUE;
1167 }

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

Referenced by OnFile().

◆ m_files

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

Definition at line 1175 of file settings_manager.cpp.

Referenced by OnFile().


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