20 #ifndef LUNCHBOX_FILE_H 21 #define LUNCHBOX_FILE_H 24 #include <lunchbox/compiler.h> 38 const std::string& pattern );
43 LUNCHBOX_API std::string
getFilename(
const std::string& filename );
48 LUNCHBOX_API std::string
getDirname(
const std::string& filename );
100 LUNCHBOX_API
bool saveBinary(
const servus::Serializable&
object,
101 const std::string& filename );
104 LUNCHBOX_API
bool loadBinary( servus::Serializable&
object,
105 const std::string& filename );
108 LUNCHBOX_API
bool saveAscii(
const servus::Serializable&
object,
109 const std::string& filename );
112 LUNCHBOX_API
bool loadAscii( servus::Serializable&
object,
113 const std::string& filename );
116 #endif //LUNCHBOX_FILE_H std::string getRootDir()
Get the absolute path to the root directory of the current executable.
bool loadAscii(servus::Serializable &object, const std::string &filename)
Load from ascii (JSON) file.
Defines export visibility macros for library Lunchbox.
Basic type definitions not provided by the operating system.
std::string getExecutableDir()
Get the absolute directory of the current executable.
bool loadBinary(servus::Serializable &object, const std::string &filename)
Load from binary file.
std::vector< std::string > Strings
A vector of std::strings.
Strings searchDirectory(const std::string &directory, const std::string &pattern)
Retrieve a list of files in a directory matching a boost::regex pattern.
std::string getExecutablePath()
std::string getRootPath()
bool saveBinary(const servus::Serializable &object, const std::string &filename)
Save binary to file.
std::string getLibraryPath()
std::string getDirname(const std::string &filename)
Abstraction layer and common utilities for multi-threaded programming.
Strings getLibraryPaths()
bool saveAscii(const servus::Serializable &object, const std::string &filename)
Save ascii (JSON) to file.
std::string getFilename(const std::string &filename)