mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 20:29:35 +01:00
Remove PathScanner class from libpbd
This commit is contained in:
parent
10a6fe553e
commit
9b0308a6aa
1 changed files with 0 additions and 74 deletions
|
|
@ -1,74 +0,0 @@
|
|||
/*
|
||||
Copyright (C) 2000-2007 Paul Davis
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
*/
|
||||
|
||||
#ifndef __libmisc_pathscanner_h__
|
||||
#define __libmisc_pathscanner_h__
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#ifdef COMPILER_MSVC
|
||||
#include <ardourext/misc.h>
|
||||
#else
|
||||
#include <regex.h>
|
||||
#endif
|
||||
|
||||
#include "pbd/libpbd_visibility.h"
|
||||
|
||||
#include "pbd/file_utils.h"
|
||||
|
||||
class LIBPBD_API PathScanner
|
||||
|
||||
{
|
||||
public:
|
||||
std::vector<std::string> operator() (const std::string &dirpath,
|
||||
bool (*filter)(const std::string &, void *arg),
|
||||
void *arg,
|
||||
bool match_fullpath = true,
|
||||
bool return_fullpath = true,
|
||||
long limit = -1,
|
||||
bool recurse = false) {
|
||||
std::vector<std::string> result;
|
||||
PBD::find_files_matching_filter (result, dirpath,
|
||||
filter, arg,
|
||||
match_fullpath, return_fullpath,
|
||||
limit, recurse);
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<std::string> operator() (const std::string &dirpath,
|
||||
const std::string ®exp,
|
||||
bool match_fullpath = true,
|
||||
bool return_fullpath = true,
|
||||
long limit = -1,
|
||||
bool recurse = false)
|
||||
{
|
||||
std::vector<std::string> result;
|
||||
|
||||
PBD::find_files_matching_regex (result,
|
||||
dirpath,
|
||||
regexp,
|
||||
match_fullpath,
|
||||
return_fullpath,
|
||||
limit, recurse);
|
||||
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // __libmisc_pathscanner_h__
|
||||
Loading…
Add table
Add a link
Reference in a new issue