osrm-backend/include/storage/storage_config.hpp

45 lines
1.1 KiB
C++
Raw Normal View History

#ifndef STORAGE_CONFIG_HPP
#define STORAGE_CONFIG_HPP
#include <boost/filesystem/path.hpp>
namespace osrm
{
namespace storage
{
2016-04-01 11:23:41 -04:00
/**
* Configures OSRM's file storage paths.
*
* \see OSRM, EngineConfig
*/
struct StorageConfig final
{
StorageConfig() = default;
2016-04-01 11:23:41 -04:00
/**
* Constructs a storage configuration setting paths based on a base path.
*
* \param base The base path (e.g. france.pbf.osrm) to derive auxiliary file suffixes from.
*/
StorageConfig(const boost::filesystem::path &base);
bool IsValid() const;
2016-03-23 11:13:36 -04:00
boost::filesystem::path ram_index_path;
boost::filesystem::path file_index_path;
boost::filesystem::path hsgr_data_path;
boost::filesystem::path nodes_data_path;
boost::filesystem::path edges_data_path;
boost::filesystem::path core_data_path;
boost::filesystem::path geometries_path;
boost::filesystem::path timestamp_path;
boost::filesystem::path datasource_names_path;
boost::filesystem::path datasource_indexes_path;
boost::filesystem::path names_data_path;
boost::filesystem::path properties_path;
};
}
}
#endif