SHORE API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
fileext.hpp File Reference

Helpers dealing with compression-related file extensions. More...

Go to the source code of this file.

Namespaces

 shore
 SHORE core API.
 

Constant Groups

 shore
 SHORE core API.
 

Functions

std::string shore::path_compression (const std::string &path)
 Get only the compression suffix of a path name.
 
bool shore::path_remove_compression (std::string &path)
 Remove any compression suffix from a path name. More...
 
std::string shore::path_without_compression (const std::string &path)
 Get the path name with any compression suffix removed.
 
std::string shore::file_maybe_compressed (const std::string &fn, bool *exists=0)
 Append or remove compression suffixes from a path name, depending on which one exists. More...
 
bool shore::file_exists_compressed (const std::string &fn)
 Test if a file, or a compressed version, exists.
 

Detailed Description

Helpers dealing with compression-related file extensions.

Author
Felix Ott