ORE Studio 0.0.4
Loading...
Searching...
No Matches
Functions
ores::refdata::generators Namespace Reference

Test data generators for risk domain types. More...

Functions

std::vector< domain::countrygenerate_fictional_countries (std::size_t n=0)
 Generates a set of fictional countries.
 
domain::currency generate_synthetic_currency ()
 Generates a synthetic currency.
 
std::vector< domain::currencygenerate_synthetic_unicode_currencies ()
 Generates a synthetic currency from the unicode set.
 
std::vector< domain::currencygenerate_synthetic_currencies (std::size_t n)
 Generates N synthetic currencies. May contain duplicates.
 
std::vector< domain::currencygenerate_unique_synthetic_currencies (std::size_t n)
 Generates N synthetic currencies. Does not contain duplicates.
 
std::vector< domain::currencygenerate_fictional_currencies (std::size_t n=0)
 Generates a set of fictional currencies.
 

Detailed Description

Test data generators for risk domain types.

Provides synthetic data generation for testing using faker-cxx. Includes generators for currency and related entities.

Function Documentation

◆ generate_fictional_countries()

std::vector< domain::country > generate_fictional_countries ( std::size_t  n = 0)

Generates a set of fictional countries.

These are intentionally fake countries with made-up codes that do not correspond to any real ISO 3166-1 codes. Useful for testing and demo purposes where real country data should not be used.

Parameters
nNumber of countries to generate. If n is 0 or greater than the available set (50), returns all available fictional countries.

◆ generate_synthetic_currencies()

std::vector< domain::currency > generate_synthetic_currencies ( std::size_t  n)

Generates N synthetic currencies. May contain duplicates.

Note
c++ 23 generators are not supported on all compilers.

◆ generate_unique_synthetic_currencies()

std::vector< domain::currency > generate_unique_synthetic_currencies ( std::size_t  n)

Generates N synthetic currencies. Does not contain duplicates.

Note
c++ 23 generators are not supported on all compilers.

◆ generate_fictional_currencies()

std::vector< domain::currency > generate_fictional_currencies ( std::size_t  n = 0)

Generates a set of fictional currencies.

These are intentionally fake currencies with made-up codes that do not correspond to any real ISO 4217 codes. Useful for testing and demo purposes where real currency data should not be used.

Parameters
nNumber of currencies to generate. If n is 0 or greater than the available set (50), returns all available fictional currencies.