Skip to content

Commit

Permalink
Remove ReplayInfo from getHeader. Fix include path in replay_all.hpp.…
Browse files Browse the repository at this point in the history
… Remove extra enums.hpp include in units.hpp.

Signed-off-by: Bryce Ferenczi <[email protected]>
  • Loading branch information
5had3z committed Aug 16, 2024
1 parent 4238f7f commit 3294405
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions bin/custom_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ struct DataEntry

template<> struct cvt::DatabaseInterface<DataEntry>
{
using header_type = std::string;

static auto getHeaderImpl(std::istream &dbStream) -> std::string
{
std::string hash;
Expand Down
2 changes: 1 addition & 1 deletion include/data_structures/replay_all.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#pragma once

#include "../database.hpp"
#include "instance_transform.hpp"
#include "../instance_transform.hpp"
#include "replay_interface.hpp"
#include "units.hpp"

Expand Down
1 change: 0 additions & 1 deletion include/data_structures/units.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include "../soa.hpp"
#include "common.hpp"
#include "enums.hpp"

#include <ranges>

Expand Down
3 changes: 1 addition & 2 deletions include/database.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "data_structures/replay_interface.hpp"
#include "serialize.hpp"

#include <boost/iostreams/device/file.hpp>
Expand Down Expand Up @@ -202,7 +201,7 @@ template<HasDBInterface EntryType> class ReplayDatabase
* @param index Index to read from database
* @return ReplayInfo at index
*/
[[nodiscard]] auto getHeader(std::size_t index) const -> ReplayInfo
[[nodiscard]] auto getHeader(std::size_t index) const
{
return this->readFromDatabase(index, DatabaseInterface<EntryType>::getHeaderImpl);
}
Expand Down

0 comments on commit 3294405

Please sign in to comment.