Skip to content

Commit

Permalink
Added new e-sport module to be implemented (cieslarmichal#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehdibenhadjkhelifa committed Jul 4, 2024
1 parent cd3bc68 commit 44bb25c
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
18 changes: 18 additions & 0 deletions include/faker-cxx/Esport.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#pragma once

#include <faker-cxx/Export.h>
#include <string_view>

namespace faker::esport
{
// TODO: Add comments explaining each function's implementation details
FAKER_CXX_EXPORT std::string_view player();

FAKER_CXX_EXPORT std::string_view team();

FAKER_CXX_EXPORT std::string_view league();

FAKER_CXX_EXPORT std::string_view event();

FAKER_CXX_EXPORT std::string_view game();
}
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ set(FAKER_SOURCES
modules/videoGame/VideoGame.cpp
modules/weather/Weather.cpp
modules/word/Word.cpp
modules/e-sport/E-sport.cpp
common/FormatHelper.cpp
common/LuhnCheck.cpp
common/StringHelper.cpp
Expand Down Expand Up @@ -77,6 +78,7 @@ set(FAKER_HEADERS
modules/phone/PhoneData.h
modules/color/ColorData.h
modules/lorem/LoremData.h
modules/e-sport/E-sportData.h
)

target_sources(${CMAKE_PROJECT_NAME} PRIVATE ${FAKER_SOURCES} ${FAKER_HEADERS})
Expand Down
17 changes: 17 additions & 0 deletions src/modules/e-sport/E-sport.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <string_view>

#include "E-sportData.h"

namespace faker::esport
{
// TODO: Implement functions
std::string_view player() {}

std::string_view team() {}

std::string_view league() {}

std::string_view event() {}

std::string_view game() {}
}
6 changes: 6 additions & 0 deletions src/modules/e-sport/E-sportData.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#pragma once

namespace faker::esport
{
// TODO: provide some data
}

0 comments on commit 44bb25c

Please sign in to comment.