Move serialization detournavigator/ -> components/

pull/3225/head
elsid 3 years ago
parent 01c712d5f1
commit 5325495f46
No known key found for this signature in database
GPG Key ID: D27B8E8D10A2896B

@ -41,10 +41,11 @@ if (GTEST_FOUND AND GMOCK_FOUND)
detournavigator/recastmeshobject.cpp detournavigator/recastmeshobject.cpp
detournavigator/navmeshtilescache.cpp detournavigator/navmeshtilescache.cpp
detournavigator/tilecachedrecastmeshmanager.cpp detournavigator/tilecachedrecastmeshmanager.cpp
detournavigator/serialization/binaryreader.cpp
detournavigator/serialization/binarywriter.cpp serialization/binaryreader.cpp
detournavigator/serialization/sizeaccumulator.cpp serialization/binarywriter.cpp
detournavigator/serialization/integration.cpp serialization/sizeaccumulator.cpp
serialization/integration.cpp
settings/parser.cpp settings/parser.cpp

@ -1,6 +1,6 @@
#include "format.hpp" #include "format.hpp"
#include <components/detournavigator/serialization/binaryreader.hpp> #include <components/serialization/binaryreader.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <gmock/gmock.h> #include <gmock/gmock.h>
@ -12,8 +12,8 @@
namespace namespace
{ {
using namespace testing; using namespace testing;
using namespace DetourNavigator::Serialization; using namespace Serialization;
using namespace DetourNavigator::SerializationTesting; using namespace SerializationTesting;
TEST(DetourNavigatorSerializationBinaryReaderTest, shouldReadArithmeticTypeValue) TEST(DetourNavigatorSerializationBinaryReaderTest, shouldReadArithmeticTypeValue)
{ {

@ -1,6 +1,6 @@
#include "format.hpp" #include "format.hpp"
#include <components/detournavigator/serialization/binarywriter.hpp> #include <components/serialization/binarywriter.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <gmock/gmock.h> #include <gmock/gmock.h>
@ -12,8 +12,8 @@
namespace namespace
{ {
using namespace testing; using namespace testing;
using namespace DetourNavigator::Serialization; using namespace Serialization;
using namespace DetourNavigator::SerializationTesting; using namespace SerializationTesting;
TEST(DetourNavigatorSerializationBinaryWriterTest, shouldWriteArithmeticTypeValue) TEST(DetourNavigatorSerializationBinaryWriterTest, shouldWriteArithmeticTypeValue)
{ {

@ -1,12 +1,12 @@
#ifndef OPENMW_TEST_SUITE_DETOURNAVIGATOR_SERIALIZATION_FORMAT_H #ifndef OPENMW_TEST_SUITE_SERIALIZATION_FORMAT_H
#define OPENMW_TEST_SUITE_DETOURNAVIGATOR_SERIALIZATION_FORMAT_H #define OPENMW_TEST_SUITE_SERIALIZATION_FORMAT_H
#include <components/detournavigator/serialization/format.hpp> #include <components/serialization/format.hpp>
#include <utility> #include <utility>
#include <type_traits> #include <type_traits>
namespace DetourNavigator::SerializationTesting namespace SerializationTesting
{ {
struct Pod struct Pod
{ {

@ -1,8 +1,8 @@
#include "format.hpp" #include "format.hpp"
#include <components/detournavigator/serialization/sizeaccumulator.hpp> #include <components/serialization/sizeaccumulator.hpp>
#include <components/detournavigator/serialization/binarywriter.hpp> #include <components/serialization/binarywriter.hpp>
#include <components/detournavigator/serialization/binaryreader.hpp> #include <components/serialization/binaryreader.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <gmock/gmock.h> #include <gmock/gmock.h>
@ -12,8 +12,8 @@
namespace namespace
{ {
using namespace testing; using namespace testing;
using namespace DetourNavigator::Serialization; using namespace Serialization;
using namespace DetourNavigator::SerializationTesting; using namespace SerializationTesting;
struct DetourNavigatorSerializationIntegrationTest : Test struct DetourNavigatorSerializationIntegrationTest : Test
{ {

@ -1,6 +1,6 @@
#include "format.hpp" #include "format.hpp"
#include <components/detournavigator/serialization/sizeaccumulator.hpp> #include <components/serialization/sizeaccumulator.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
@ -12,8 +12,8 @@
namespace namespace
{ {
using namespace testing; using namespace testing;
using namespace DetourNavigator::Serialization; using namespace Serialization;
using namespace DetourNavigator::SerializationTesting; using namespace SerializationTesting;
TEST(DetourNavigatorSerializationSizeAccumulatorTest, shouldProvideSizeForArithmeticType) TEST(DetourNavigatorSerializationSizeAccumulatorTest, shouldProvideSizeForArithmeticType)
{ {

@ -1,5 +1,5 @@
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_SERIALIZATION_BINARYREADER_H #ifndef OPENMW_COMPONENTS_SERIALIZATION_BINARYREADER_H
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_SERIALIZATION_BINARYREADER_H #define OPENMW_COMPONENTS_SERIALIZATION_BINARYREADER_H
#include <cassert> #include <cassert>
#include <cstddef> #include <cstddef>
@ -7,7 +7,7 @@
#include <stdexcept> #include <stdexcept>
#include <type_traits> #include <type_traits>
namespace DetourNavigator::Serialization namespace Serialization
{ {
class BinaryReader class BinaryReader
{ {

@ -1,5 +1,5 @@
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_SERIALIZATION_BINARYWRITER_H #ifndef OPENMW_COMPONENTS_SERIALIZATION_BINARYWRITER_H
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_SERIALIZATION_BINARYWRITER_H #define OPENMW_COMPONENTS_SERIALIZATION_BINARYWRITER_H
#include <cassert> #include <cassert>
#include <cstddef> #include <cstddef>
@ -7,7 +7,7 @@
#include <stdexcept> #include <stdexcept>
#include <type_traits> #include <type_traits>
namespace DetourNavigator::Serialization namespace Serialization
{ {
struct BinaryWriter struct BinaryWriter
{ {

@ -1,5 +1,5 @@
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_SERIALIZATION_FORMAT_H #ifndef OPENMW_COMPONENTS_SERIALIZATION_FORMAT_H
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_SERIALIZATION_FORMAT_H #define OPENMW_COMPONENTS_SERIALIZATION_FORMAT_H
#include <algorithm> #include <algorithm>
#include <cstddef> #include <cstddef>
@ -8,7 +8,7 @@
#include <utility> #include <utility>
#include <vector> #include <vector>
namespace DetourNavigator::Serialization namespace Serialization
{ {
enum class Mode enum class Mode
{ {
@ -22,6 +22,9 @@ namespace DetourNavigator::Serialization
template <class ... Args> template <class ... Args>
struct IsContiguousContainer<std::vector<Args ...>> : std::true_type {}; struct IsContiguousContainer<std::vector<Args ...>> : std::true_type {};
template <class T, std::size_t n>
struct IsContiguousContainer<std::array<T, n>> : std::true_type {};
template <class T> template <class T>
constexpr bool isContiguousContainer = IsContiguousContainer<std::decay_t<T>>::value; constexpr bool isContiguousContainer = IsContiguousContainer<std::decay_t<T>>::value;

@ -1,10 +1,10 @@
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_SERIALIZATION_SIZEACCUMULATOR_H #ifndef OPENMW_COMPONENTS_SERIALIZATION_SIZEACCUMULATOR_H
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_SERIALIZATION_SIZEACCUMULATOR_H #define OPENMW_COMPONENTS_SERIALIZATION_SIZEACCUMULATOR_H
#include <cstddef> #include <cstddef>
#include <type_traits> #include <type_traits>
namespace DetourNavigator::Serialization namespace Serialization
{ {
class SizeAccumulator class SizeAccumulator
{ {
Loading…
Cancel
Save