Restructuring project
This commit is contained in:
1 parent
3864be1f85
commit
8fa965823a
34 files changed
+292
-47
No files matched your search
@@ -1,8 +1,5 @@
|
||||
add_library(API OBJECT)
|
||||
add_library(API OBJECT Server.cpp)
|
||||
|
||||
target_sources(API PRIVATE src)
|
||||
|
||||
target_include_directories(API
|
||||
PUBLIC include
|
||||
PRIVATE src)
|
||||
target_include_directories(API PUBLIC include)
|
||||
|
||||
target_link_libraries(API PRIVATE Core)
|
||||
@@ -0,0 +1,10 @@
|
||||
#include "Server.hpp"
|
||||
|
||||
namespace DistriNS {
|
||||
namespace API {
|
||||
|
||||
Server::Server(EventBus& eventBus) : eventBus(eventBus) {
|
||||
//Constructor
|
||||
}
|
||||
|
||||
}}
|
||||
@@ -1,6 +1,4 @@
|
||||
#ifndef API_HPP
|
||||
#define API_HPP
|
||||
|
||||
class API;
|
||||
|
||||
#include "Server.hpp"
|
||||
#endif
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef SERVER_HPP
|
||||
#define SERVER_HPP
|
||||
#include "EventBus.hpp"
|
||||
|
||||
namespace DistriNS {
|
||||
namespace API {
|
||||
|
||||
using Core::EventBus;
|
||||
|
||||
class Server {
|
||||
const EventBus& eventBus;
|
||||
|
||||
public:
|
||||
Server(EventBus& eventBus);
|
||||
};
|
||||
|
||||
}}
|
||||
#endif
|
||||
Whitespace-only changes.
Reference in new issue
Block a user