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/navmeshtilescache.cpp
detournavigator/tilecachedrecastmeshmanager.cpp
detournavigator/serialization/binaryreader.cpp
detournavigator/serialization/binarywriter.cpp
detournavigator/serialization/sizeaccumulator.cpp
detournavigator/serialization/integration.cpp
serialization/binaryreader.cpp
serialization/binarywriter.cpp
serialization/sizeaccumulator.cpp
serialization/integration.cpp
settings/parser.cpp

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

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

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

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

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

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

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

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

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