Skip to content

Commit

Permalink
refactor: change animal class to namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
cieslarmichal committed Jun 17, 2024
1 parent df8b5d8 commit 37d461c
Show file tree
Hide file tree
Showing 5 changed files with 3,153 additions and 3,131 deletions.
334 changes: 165 additions & 169 deletions include/faker-cxx/Animal.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,174 +2,170 @@

#include <string_view>

namespace faker
namespace faker::animal
{
class Animal
{
public:
/**
* @brief Returns a random species of bear.
*
* @returns Species of bear.
*
* @code
* Animal::bear() // "Polar bear"
* @endcode
*/
static std::string_view bear();

/**
* @brief Returns a random species of bird.
*
* @returns Species of bird.
*
* @code
* Animal::bird() // "Black-bellied Whistling-Duck"
* @endcode
*/
static std::string_view bird();

/**
* @brief Returns a random species of cat.
*
* @returns Species of cat.
*
* @code
* Animal::cat() // "Chartreux"
* @endcode
*/
static std::string_view cat();

/**
* @brief Returns a random species of cetacean.
*
* @returns Species of cetacean.
*
* @code
* Animal::cetacean() // "Blue Whale"
* @endcode
*/
static std::string_view cetacean();

/**
* @brief Returns a random species of cow.
*
* @returns Species of cow.
*
* @code
* Animal::cow() // "American Angus"
* @endcode
*/
static std::string_view cow();

/**
* @brief Returns a random species of crocodilia.
*
* @returns Species of crocodilia.
*
* @code
* Animal::crocodile() // "Dwarf Crocodile"
* @endcode
*/
static std::string_view crocodile();

/**
* @brief Returns a random species of dog.
*
* @returns Species of dog.
*
* @code
* Animal::dog() // "Shiba Inu"
* @endcode
*/
static std::string_view dog();

/**
* @brief Returns a random species of fish.
*
* @returns Species of fish.
*
* @code
* Animal::fish() // "Silver carp"
* @endcode
*/
static std::string_view fish();

/**
* @brief Returns a random species of horse.
*
* @returns Species of horse.
*
* @code
* Animal::horse() // "Fjord Horse"
* @endcode
*/
static std::string_view horse();

/**
* @brief Returns a random species of insect.
*
* @returns Species of insect.
*
* @code
* Animal::insect() // "Bee"
* @endcode
*/
static std::string_view insect();

/**
* @brief Returns a random species of lion.
*
* @returns Species of lion.
*
* @code
* Animal::lion() // "West African Lion"
* @endcode
*/
static std::string_view lion();

/**
* @brief Returns a random species of rabbit.
*
* @returns Species of rabbit.
*
* @code
* Animal::rabbit() // "Californian"
* @endcode
*/
static std::string_view rabbit();

/**
* @brief Returns a random species of rodent.
*
* @returns Species of rodent.
*
* @code
* Animal::rodent() // "Chinchilla"
* @endcode
*/
static std::string_view rodent();

/**
* @brief Returns a random species of snake.
*
* @returns Species of snake.
*
* @code
* Animal::snake() // "Boa constrictor"
* @endcode
*/
static std::string_view snake();

/**
* @brief Returns a random type of animal.
*
* @returns Type of animal.
*
* @code
* Animal::type() // "dog"
* @endcode
*/
static std::string_view type();
};
/**
* @brief Returns a random species of bear.
*
* @returns Species of bear.
*
* @code
* animal::bear() // "Polar bear"
* @endcode
*/
std::string_view bear();

/**
* @brief Returns a random species of bird.
*
* @returns Species of bird.
*
* @code
* animal::bird() // "Black-bellied Whistling-Duck"
* @endcode
*/
std::string_view bird();

/**
* @brief Returns a random species of cat.
*
* @returns Species of cat.
*
* @code
* animal::cat() // "Chartreux"
* @endcode
*/
std::string_view cat();

/**
* @brief Returns a random species of cetacean.
*
* @returns Species of cetacean.
*
* @code
* animal::cetacean() // "Blue Whale"
* @endcode
*/
std::string_view cetacean();

/**
* @brief Returns a random species of cow.
*
* @returns Species of cow.
*
* @code
* animal::cow() // "American Angus"
* @endcode
*/
std::string_view cow();

/**
* @brief Returns a random species of crocodilia.
*
* @returns Species of crocodilia.
*
* @code
* animal::crocodile() // "Dwarf Crocodile"
* @endcode
*/
std::string_view crocodile();

/**
* @brief Returns a random species of dog.
*
* @returns Species of dog.
*
* @code
* animal::dog() // "Shiba Inu"
* @endcode
*/
std::string_view dog();

/**
* @brief Returns a random species of fish.
*
* @returns Species of fish.
*
* @code
* animal::fish() // "Silver carp"
* @endcode
*/
std::string_view fish();

/**
* @brief Returns a random species of horse.
*
* @returns Species of horse.
*
* @code
* animal::horse() // "Fjord Horse"
* @endcode
*/
std::string_view horse();

/**
* @brief Returns a random species of insect.
*
* @returns Species of insect.
*
* @code
* animal::insect() // "Bee"
* @endcode
*/
std::string_view insect();

/**
* @brief Returns a random species of lion.
*
* @returns Species of lion.
*
* @code
* animal::lion() // "West African Lion"
* @endcode
*/
std::string_view lion();

/**
* @brief Returns a random species of rabbit.
*
* @returns Species of rabbit.
*
* @code
* animal::rabbit() // "Californian"
* @endcode
*/
std::string_view rabbit();

/**
* @brief Returns a random species of rodent.
*
* @returns Species of rodent.
*
* @code
* animal::rodent() // "Chinchilla"
* @endcode
*/
std::string_view rodent();

/**
* @brief Returns a random species of snake.
*
* @returns Species of snake.
*
* @code
* animal::snake() // "Boa constrictor"
* @endcode
*/
std::string_view snake();

/**
* @brief Returns a random type of animal.
*
* @returns Type of animal.
*
* @code
* animal::type() // "dog"
* @endcode
*/
std::string_view type();
}
Loading

0 comments on commit 37d461c

Please sign in to comment.