mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-14 16:09:06 +07:00
library dummy module
This commit is contained in:
@@ -7,3 +7,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "_high.hpp"
|
||||
|
||||
#include "library.hpp"
|
||||
|
||||
@@ -10,4 +10,5 @@
|
||||
|
||||
namespace e2d
|
||||
{
|
||||
class library;
|
||||
}
|
||||
|
||||
28
headers/enduro2d/high/library.hpp
Normal file
28
headers/enduro2d/high/library.hpp
Normal 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_;
|
||||
};
|
||||
}
|
||||
25
sources/enduro2d/high/library.cpp
Normal file
25
sources/enduro2d/high/library.cpp
Normal 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;
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
11
untests/sources/untests_high/_high.cpp
Normal file
11
untests/sources/untests_high/_high.cpp
Normal 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") {
|
||||
}
|
||||
9
untests/sources/untests_high/_high.hpp
Normal file
9
untests/sources/untests_high/_high.hpp
Normal 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"
|
||||
11
untests/sources/untests_high/library.cpp
Normal file
11
untests/sources/untests_high/library.cpp
Normal 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"){
|
||||
}
|
||||
Reference in New Issue
Block a user