Lunchbox  1.11.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
file.h
1 
2 /* Copyright (c) 2009, Cedric Stalder <cedric.stalder@gmail.com>
3  * 2009-2014, Stefan Eilemann <eile@equalizergraphics.com>
4  *
5  * This library is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU Lesser General Public License version 2.1 as published
7  * by the Free Software Foundation.
8  *
9  * This library is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef LUNCHBOX_FILE_H
20 #define LUNCHBOX_FILE_H
21 
22 #include <lunchbox/api.h>
23 #include <lunchbox/compiler.h>
24 #include <lunchbox/types.h>
25 
26 namespace lunchbox
27 {
28 
37 LUNCHBOX_API Strings searchDirectory( const std::string& directory,
38  const std::string& pattern );
39 // LB_DEPRECATED;
40 
45 LUNCHBOX_API std::string getFilename( const std::string& filename );
46 // LB_DEPRECATED;
47 
52 LUNCHBOX_API std::string getDirname( const std::string& filename )
53  LB_DEPRECATED;
54 
59 LUNCHBOX_API std::string getExecutablePath();
60 
65 LUNCHBOX_API std::string getLibraryPath();
66 
71 LUNCHBOX_API Strings getLibraryPaths();
72 }
73 
74 #endif //LUNCHBOX_FILE_H
Defines export visibility macros for Lunchbox.
Basic type definitions not provided by the operating system.
std::vector< std::string > Strings
A vector of std::strings.
Definition: types.h:214
LUNCHBOX_API Strings searchDirectory(const std::string &directory, const std::string &pattern)
Retrieve a list of files in a directory matching a boost::regex pattern.
LUNCHBOX_API Strings getLibraryPaths()
LUNCHBOX_API std::string getDirname(const std::string &filename) LB_DEPRECATED
LUNCHBOX_API std::string getFilename(const std::string &filename)
LUNCHBOX_API std::string getLibraryPath()
LUNCHBOX_API std::string getExecutablePath()