20 #ifndef LUNCHBOX_FILE_H
21 #define LUNCHBOX_FILE_H
24 #include <lunchbox/compiler.h>
39 const std::string& pattern );
46 LUNCHBOX_API std::string
getFilename(
const std::string& filename );
53 LUNCHBOX_API std::string
getDirname(
const std::string& filename )
96 LUNCHBOX_API
bool saveBinary(
const servus::Serializable&
object,
97 const std::string& filename );
100 LUNCHBOX_API
bool loadBinary( servus::Serializable&
object,
101 const std::string& filename );
104 LUNCHBOX_API
bool saveAscii(
const servus::Serializable&
object,
105 const std::string& filename );
108 LUNCHBOX_API
bool loadAscii( servus::Serializable&
object,
109 const std::string& filename );
112 #endif //LUNCHBOX_FILE_H
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.
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()
Get the absolute path to the current executable.
std::string getRootPath()
Get the absolute path to the root path of the current executable.
bool saveBinary(const servus::Serializable &object, const std::string &filename)
Save binary to file.
std::string getLibraryPath()
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)
std::string getDirname(const std::string &filename) LB_DEPRECATED