]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/OS/DirContents.h
...
[cpPlugins.git] / lib / cpPlugins / OS / DirContents.h
1 #ifndef __cpPlugins__OS__DirContents__h__
2 #define __cpPlugins__OS__DirContents__h__
3
4 #include <cpPlugins/Config.h>
5 #include <set>
6 #include <string>
7
8 namespace cpPlugins
9 {
10   namespace OS
11   {
12     /**
13      */
14     std::set< std::string > cpPlugins_EXPORT LoadDirContents(
15       const std::string& path, bool recursive,
16       const std::string& pattern = ""
17       );
18
19     /**
20      */
21     void cpPlugins_EXPORT SplitPath(
22       std::string& dname, std::string& fname,
23       const std::string& path
24       );
25
26     /**
27      */
28     int cpPlugins_EXPORT GlobMatch( const char* target, const char* pattern );
29
30     /**
31      */
32     bool cpPlugins_EXPORT Glob(
33       const std::string& line, const std::string& pattern
34       );
35
36   } // ecapseman
37
38 } // ecapseman
39
40 #endif // __cpPlugins__OS__DirContents__h__
41
42 // eof - $RCSfile$