std::string -> boost::filesystem::path
This commit is contained in:
@@ -228,13 +228,13 @@ class InternalDataFacade final : public BaseDataFacade
|
||||
}
|
||||
}
|
||||
|
||||
void LoadDatasourceInfo(const std::string &datasource_names_file,
|
||||
const std::string &datasource_indexes_file)
|
||||
void LoadDatasourceInfo(const boost::filesystem::path &datasource_names_file,
|
||||
const boost::filesystem::path &datasource_indexes_file)
|
||||
{
|
||||
boost::filesystem::ifstream datasources_stream(datasource_indexes_file, std::ios::binary);
|
||||
if (!datasources_stream)
|
||||
{
|
||||
throw util::exception("Could not open " + datasource_indexes_file + " for reading!");
|
||||
throw util::exception("Could not open " + datasource_indexes_file.string() + " for reading!");
|
||||
}
|
||||
BOOST_ASSERT(datasources_stream);
|
||||
|
||||
@@ -251,7 +251,7 @@ class InternalDataFacade final : public BaseDataFacade
|
||||
boost::filesystem::ifstream datasourcenames_stream(datasource_names_file, std::ios::binary);
|
||||
if (!datasourcenames_stream)
|
||||
{
|
||||
throw util::exception("Could not open " + datasource_names_file + " for reading!");
|
||||
throw util::exception("Could not open " + datasource_names_file.string() + " for reading!");
|
||||
}
|
||||
BOOST_ASSERT(datasourcenames_stream);
|
||||
std::string name;
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
|
||||
#include <boost/filesystem/path.hpp>
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace osrm
|
||||
{
|
||||
namespace storage
|
||||
@@ -15,18 +13,18 @@ struct StorageConfig
|
||||
StorageConfig(const boost::filesystem::path &base);
|
||||
bool IsValid() const;
|
||||
|
||||
std::string ram_index_path;
|
||||
std::string file_index_path;
|
||||
std::string hsgr_data_path;
|
||||
std::string nodes_data_path;
|
||||
std::string edges_data_path;
|
||||
std::string core_data_path;
|
||||
std::string geometries_path;
|
||||
std::string timestamp_path;
|
||||
std::string datasource_names_path;
|
||||
std::string datasource_indexes_path;
|
||||
std::string names_data_path;
|
||||
std::string properties_path;
|
||||
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;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user