наброски для файлов модели

This commit is contained in:
Антон 2024-03-31 19:49:26 +03:00
parent 0ae24f6525
commit 5df1e7cc44
11 changed files with 61 additions and 1 deletions

View File

@ -39,7 +39,10 @@ add_executable(hello_async
src/handlers/GetStaticAssetHandler.h
src/routes.h
src/Logger.h
src/Logger.cpp)
src/Logger.cpp
src/model/Office.h
src/model/Office.cpp
)
target_include_directories(hello_async PUBLIC ${Boost_INCLUDE_DIR})
target_link_libraries(hello_async PRIVATE
Threads::Threads

1
src/model/Building.cpp Normal file
View File

@ -0,0 +1 @@
#include "Building.h"

7
src/model/Building.h Normal file
View File

@ -0,0 +1,7 @@
#pragma once
namespace model
{
class Building
{};
}

1
src/model/Game.cpp Normal file
View File

@ -0,0 +1 @@
#include "Game.h"

13
src/model/Game.h Normal file
View File

@ -0,0 +1,13 @@
#pragma once
#include <vector>
#include "Map.h"
namespace model
{
class Game
{
std::vector<Map> maps_;
};
}

1
src/model/Map.cpp Normal file
View File

@ -0,0 +1 @@
#include "Map.h"

18
src/model/Map.h Normal file
View File

@ -0,0 +1,18 @@
#pragma once
#include <vector>
#include <map>
#include "Office.h"
#include "Building.h"
#include "Road.h"
namespace model
{
class Map
{
std::vector<Road> roads_;
std::vector<Road> buildings_;
std::vector<Road> office_;
};
}

1
src/model/Office.cpp Normal file
View File

@ -0,0 +1 @@
#include "Office.h"

7
src/model/Office.h Normal file
View File

@ -0,0 +1,7 @@
#pragma once
namespace model
{
class Office
{};
}

1
src/model/Road.cpp Normal file
View File

@ -0,0 +1 @@
#include "Road.h"

7
src/model/Road.h Normal file
View File

@ -0,0 +1,7 @@
#pragma once
namespace model
{
class Road
{};
}