Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Added new e-sport module to be implemented (#768) #787

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
Loading