icedb
version 0.5.1
Snow particle scattering database API
|
Typedefs | |
typedef std::set< sfs::path > | ExtensionsMatching_Type |
typedef std::vector< std::pair< sfs::path, std::string > > | CollectedFilesRet_Type |
File path, relative mount point. More... | |
Functions | |
sfs::path | resolveSymLinks (const sfs::path &base) |
Finds out where a symbolic link points to. More... | |
CollectedFilesRet_Type | collectDatasetFiles (const sfs::path &base, const ExtensionsMatching_Type &valid_extensions) |
sfs::path | resolveSymlinkPathandForceExists (const std::string &location) |
Like resolveSymLinks, but throw if the resulting path does not exist. More... | |
CollectedFilesRet_Type | collectActualHDF5files (const sfs::path &pBaseS) |
Like collectDatasetFiles for HDF5 files, but then check that these files are, indeed, HDF5 files. More... | |
std::string | getUniqueVROOTname () |
Generate a unique string, used in memort-only HDF5 file trees. More... | |
Variables | |
const ExtensionsMatching_Type | common_hdf5_extensions = { ".hdf5", ".nc", ".h5", ".cdf", ".hdf" } |
Internal filesystem functions. These will be mase user-inaccessible in a future release.
typedef std::vector<std::pair<sfs::path, std::string> > icedb::fs::impl::CollectedFilesRet_Type |
File path, relative mount point.
Definition at line 45 of file fs_backend.hpp.
typedef std::set<sfs::path> icedb::fs::impl::ExtensionsMatching_Type |
Definition at line 39 of file fs_backend.hpp.
CollectedFilesRet_Type icedb::fs::impl::collectActualHDF5files | ( | const sfs::path & | pBaseS | ) |
Like collectDatasetFiles for HDF5 files, but then check that these files are, indeed, HDF5 files.
Definition at line 82 of file fs_backend.cpp.
References collectDatasetFiles().
Referenced by icedb::Databases::Database::indexDatabase(), and icedb::Databases::Database::openDatabase().
CollectedFilesRet_Type icedb::fs::impl::collectDatasetFiles | ( | const sfs::path & | base, |
const ExtensionsMatching_Type & | fileExtensionsToMatch = common_hdf5_extensions |
||
) |
Find all files under the base location that have matching extensions. Used to collect files for reading.
Definition at line 26 of file fs_backend.cpp.
References resolveSymlinkPathandForceExists(), and resolveSymLinks().
Referenced by collectActualHDF5files(), and main().
std::string icedb::fs::impl::getUniqueVROOTname | ( | ) |
Generate a unique string, used in memort-only HDF5 file trees.
Definition at line 100 of file fs_backend.cpp.
sfs::path icedb::fs::impl::resolveSymlinkPathandForceExists | ( | const std::string & | location | ) |
Like resolveSymLinks, but throw if the resulting path does not exist.
Definition at line 73 of file fs_backend.cpp.
References resolveSymLinks().
Referenced by collectDatasetFiles(), and icedb::Databases::Database::indexDatabase().
sfs::path icedb::fs::impl::resolveSymLinks | ( | const sfs::path & | base | ) |
Finds out where a symbolic link points to.
Definition at line 16 of file fs_backend.cpp.
Referenced by collectDatasetFiles(), icedb::Databases::Database::openDatabase(), and resolveSymlinkPathandForceExists().
const ExtensionsMatching_Type icedb::fs::impl::common_hdf5_extensions = { ".hdf5", ".nc", ".h5", ".cdf", ".hdf" } |
Definition at line 13 of file fs_backend.cpp.