Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
VST3PluginTraverser Class Referencefinal
Inheritance diagram for VST3PluginTraverser:
[legend]
Collaboration diagram for VST3PluginTraverser:
[legend]

Public Member Functions

 VST3PluginTraverser (std::function< void(const wxString &)> onPluginFound)
 
wxDirTraverseResult OnFile (const wxString &filename) override
 
wxDirTraverseResult OnDir (const wxString &dirname) override
 

Private Attributes

std::function< void(const wxString &)> mOnPluginFound
 

Detailed Description

Definition at line 45 of file VST3EffectsModule.cpp.

Constructor & Destructor Documentation

◆ VST3PluginTraverser()

VST3PluginTraverser::VST3PluginTraverser ( std::function< void(const wxString &)>  onPluginFound)
inline

Definition at line 49 of file VST3EffectsModule.cpp.

50 : mOnPluginFound(std::move(onPluginFound))
51 {
52 }
std::function< void(const wxString &)> mOnPluginFound

Member Function Documentation

◆ OnDir()

wxDirTraverseResult VST3PluginTraverser::OnDir ( const wxString &  dirname)
inlineoverride

Definition at line 60 of file VST3EffectsModule.cpp.

61 {
62 if(dirname.Matches("*.vst3"))
63 {
64 mOnPluginFound(dirname);
65 return wxDIR_IGNORE;//do not look inside...
66 }
67 return wxDIR_CONTINUE;
68 }

References mOnPluginFound.

◆ OnFile()

wxDirTraverseResult VST3PluginTraverser::OnFile ( const wxString &  filename)
inlineoverride

Definition at line 54 of file VST3EffectsModule.cpp.

55 {
56 if(filename.Matches("*.vst3"))
57 mOnPluginFound(filename);
58 return wxDIR_CONTINUE;
59 }

References mOnPluginFound.

Member Data Documentation

◆ mOnPluginFound

std::function<void(const wxString&)> VST3PluginTraverser::mOnPluginFound
private

Definition at line 47 of file VST3EffectsModule.cpp.

Referenced by OnDir(), and OnFile().


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