library dummy module

This commit is contained in:
2018-11-15 02:34:43 +07:00
parent 8b9a23712e
commit 163f9eed0c
8 changed files with 88 additions and 0 deletions

View File

@@ -7,3 +7,5 @@
#pragma once
#include "_high.hpp"
#include "library.hpp"

View File

@@ -10,4 +10,5 @@
namespace e2d
{
class library;
}

View File

@@ -0,0 +1,28 @@
/*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018 Matvey Cherevko
******************************************************************************/
#pragma once
#include "_high.hpp"
namespace e2d
{
class bad_library_operation final : public exception {
public:
const char* what() const noexcept final {
return "bad library operation";
}
};
class library final : public module<library> {
public:
library();
~library() noexcept final;
private:
class internal_state;
std::unique_ptr<internal_state> state_;
};
}

View File

@@ -0,0 +1,25 @@
/*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018 Matvey Cherevko
******************************************************************************/
#include <enduro2d/high/library.hpp>
namespace e2d
{
//
// library::internal_state
//
class library::internal_state final : private e2d::noncopyable {
};
//
// library
//
library::library()
: state_(new internal_state()){}
library::~library() noexcept = default;
}

View File

@@ -51,5 +51,6 @@ endfunction(add_e2d_tests)
add_e2d_tests(base)
add_e2d_tests(core)
add_e2d_tests(high)
add_e2d_tests(math)
add_e2d_tests(utils)

View File

@@ -0,0 +1,11 @@
/*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018 Matvey Cherevko
******************************************************************************/
#define CATCH_CONFIG_MAIN
#include "_high.hpp"
TEST_CASE("high") {
}

View File

@@ -0,0 +1,9 @@
/*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018 Matvey Cherevko
******************************************************************************/
#pragma once
#include "../common.hpp"

View File

@@ -0,0 +1,11 @@
/*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018 Matvey Cherevko
******************************************************************************/
#include "_high.hpp"
using namespace e2d;
TEST_CASE("library"){
}