diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2012-12-20 00:35:54 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2012-12-20 00:35:54 +0000 |
| commit | 4a0452844f85edc5b0be0edcf877e6b5d33302ed (patch) | |
| tree | a1e5f62f65fb9cf767c393bda9020f6e1b63a187 /cpp/src/qpid/sys/FileSysDir.h | |
| parent | 24e9d70d7bcefae3a68d3cc4b19e684440776a05 (diff) | |
| download | qpid-python-4a0452844f85edc5b0be0edcf877e6b5d33302ed.tar.gz | |
QPID-4095: Move the directory iteration into FileSysDir:
- For Posix implement with direct calls
- For windows implement with v2/v3 boost::filesystem to be replaced later
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424247 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/FileSysDir.h')
| -rwxr-xr-x | cpp/src/qpid/sys/FileSysDir.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/qpid/sys/FileSysDir.h b/cpp/src/qpid/sys/FileSysDir.h index ffe7823f0a..7432fe39c9 100755 --- a/cpp/src/qpid/sys/FileSysDir.h +++ b/cpp/src/qpid/sys/FileSysDir.h @@ -54,6 +54,15 @@ class FileSysDir void mkdir(void); + typedef void Callback(const std::string&); + + /** + * Call the Callback function for every regular file in the directory + * + * @param cb Callback function that receives the full path to the file + */ + void forEachFile(Callback cb) const; + std::string getPath () { return dirPath; } }; |
