Lunchbox  1.12.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
file.h
1 
2 /* Copyright (c) 2009-2015, Cedric Stalder <cedric.stalder@gmail.com>
3  * Stefan Eilemann <eile@equalizergraphics.com>
4  * Daniel Nachbaur <danielnachbaur@gmail.com>
5  *
6  * This library is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License version 2.1 as published
8  * by the Free Software Foundation.
9  *
10  * This library is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13  * details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this library; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef LUNCHBOX_FILE_H
21 #define LUNCHBOX_FILE_H
22 
23 #include <lunchbox/api.h>
24 #include <lunchbox/compiler.h>
25 #include <lunchbox/types.h>
26 
27 namespace lunchbox
28 {
29 
38 LUNCHBOX_API Strings searchDirectory( const std::string& directory,
39  const std::string& pattern );
40 // LB_DEPRECATED;
41 
46 LUNCHBOX_API std::string getFilename( const std::string& filename );
47 // LB_DEPRECATED;
48 
53 LUNCHBOX_API std::string getDirname( const std::string& filename )
54  LB_DEPRECATED;
55 
65 LUNCHBOX_API std::string getExecutablePath();
66 
81 LUNCHBOX_API std::string getRootPath();
82 
87 LUNCHBOX_API std::string getLibraryPath();
88 
93 LUNCHBOX_API Strings getLibraryPaths();
94 }
95 
96 #endif //LUNCHBOX_FILE_H
Defines export visibility macros for library 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
Abstraction layer and common utilities for multi-threaded programming.
Definition: algorithm.h:32
LUNCHBOX_API std::string getFilename(const std::string &filename)
LUNCHBOX_API std::string getRootPath()
Get the absolute path to the root path of the current executable.
LUNCHBOX_API std::string getLibraryPath()
LUNCHBOX_API std::string getExecutablePath()
Get the absolute path to the current executable.