mirror of
https://github.com/Z3Prover/z3
synced 2025-08-24 03:57:51 +00:00
other components
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
e9eab22e5c
commit
68269c43a6
250 changed files with 70871 additions and 0 deletions
33
test/for_each_file.h
Normal file
33
test/for_each_file.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
/*++
|
||||
Copyright (c) 2006 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
foreach_file.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Traverse files in a directory that match a given suffix.
|
||||
Apply a method to each of the files.
|
||||
|
||||
Author:
|
||||
|
||||
Nikolaj Bjorner (nbjorner) 2006-11-3.
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
#pragma once
|
||||
|
||||
#ifndef _FOR_EACH_FILE_H_
|
||||
#define _FOR_EACH_FILE_H_
|
||||
|
||||
struct for_each_file_proc {
|
||||
virtual bool operator()(const char* file_path) = 0;
|
||||
};
|
||||
|
||||
bool for_each_file(for_each_file_proc& proc, const char* base, const char* suffix);
|
||||
|
||||
|
||||
#endif /* _FOR_EACH_FILE_H_ */
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue