KiCad PCB EDA Suite
pcm_task_manager.cpp File Reference
#include "kicad_curl/kicad_curl.h"
#include "kicad_curl/kicad_curl_easy.h"
#include <paths.h>
#include "pcm_task_manager.h"
#include <reporter.h>
#include <wxstream_helper.h>
#include <fstream>
#include <thread>
#include <unordered_set>
#include <wx/dir.h>
#include <wx/filename.h>
#include <wx/msgdlg.h>
#include <wx/sstream.h>
#include <wx/wfstream.h>
#include <wx/zipstrm.h>

Go to the source code of this file.

Classes

class  PATH_COLLECTOR
 

Functions

void compile_keep_on_update_regex (const PCM_PACKAGE &pkg, const PACKAGE_VERSION &ver, std::forward_list< wxRegEx > &aKeepOnUpdate)
 

Function Documentation

◆ compile_keep_on_update_regex()

void compile_keep_on_update_regex ( const PCM_PACKAGE pkg,
const PACKAGE_VERSION ver,
std::forward_list< wxRegEx > &  aKeepOnUpdate 
)

Definition at line 41 of file pcm_task_manager.cpp.

43{
44 auto compile_regex = [&]( const wxString& regex )
45 {
46 aKeepOnUpdate.emplace_front( regex, wxRE_DEFAULT );
47
48 if( !aKeepOnUpdate.front().IsValid() )
49 aKeepOnUpdate.pop_front();
50 };
51
52 std::for_each( pkg.keep_on_update.begin(), pkg.keep_on_update.end(), compile_regex );
53 std::for_each( ver.keep_on_update.begin(), ver.keep_on_update.end(), compile_regex );
54}
std::vector< std::string > keep_on_update
Definition: pcm_data.h:85
std::vector< std::string > keep_on_update
Definition: pcm_data.h:106

References PACKAGE_VERSION::keep_on_update, and PCM_PACKAGE::keep_on_update.

Referenced by PCM_TASK_MANAGER::installDownloadedPackage(), and PCM_TASK_MANAGER::InstallFromFile().