deduplicate code for loading profile properties into io.hpp

This commit is contained in:
karenzshea
2016-10-20 17:50:05 -07:00
committed by Huyen Chau Nguyen
parent ceddfada3d
commit 51ebadfc45
3 changed files with 25 additions and 12 deletions
@@ -123,9 +123,8 @@ class InternalDataFacade final : public BaseDataFacade
{
throw util::exception("Could not open " + properties_path.string() + " for reading.");
}
in_stream.read(reinterpret_cast<char *>(&m_profile_properties),
sizeof(m_profile_properties));
auto PropertiesSize = storage::io::readPropertiesSize();
storage::io::readProperties(in_stream, reinterpret_cast<char *>(&m_profile_properties), PropertiesSize);
}
void LoadLaneTupleIdPairs(const boost::filesystem::path &lane_data_path)