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

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

Functions

domain::book generate_synthetic_book (utility::generation::generation_context &ctx)
 Generates a synthetic book.
 
std::vector< domain::bookgenerate_synthetic_books (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic books.
 
std::vector< domain::business_centregenerate_fictional_business_centres (std::size_t n, utility::generation::generation_context &ctx)
 Generates a set of fictional business centres.
 
domain::business_unit generate_synthetic_business_unit (utility::generation::generation_context &ctx)
 Generates a synthetic business_unit.
 
std::vector< domain::business_unitgenerate_synthetic_business_units (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic business_units.
 
domain::business_unit_type generate_synthetic_business_unit_type (utility::generation::generation_context &ctx)
 Generates a synthetic business_unit_type.
 
std::vector< domain::business_unit_typegenerate_synthetic_business_unit_types (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic business_unit_types.
 
domain::contact_type generate_synthetic_contact_type (utility::generation::generation_context &ctx)
 Generates a synthetic contact_type.
 
std::vector< domain::contact_typegenerate_synthetic_contact_types (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic contact_types.
 
domain::counterparty_contact_information generate_synthetic_counterparty_contact_information (utility::generation::generation_context &ctx)
 Generates a synthetic counterparty_contact_information.
 
std::vector< domain::counterparty_contact_informationgenerate_synthetic_counterparty_contact_informations (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic counterparty_contact_informations.
 
domain::counterparty generate_synthetic_counterparty (utility::generation::generation_context &ctx)
 Generates a synthetic counterparty.
 
std::vector< domain::counterpartygenerate_synthetic_counterparties (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic counterparties.
 
domain::counterparty_identifier generate_synthetic_counterparty_identifier (utility::generation::generation_context &ctx)
 Generates a synthetic counterparty_identifier.
 
std::vector< domain::counterparty_identifiergenerate_synthetic_counterparty_identifiers (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic counterparty_identifiers.
 
std::vector< domain::countrygenerate_fictional_countries (std::size_t n, utility::generation::generation_context &ctx)
 Generates a set of fictional countries.
 
domain::currency generate_synthetic_currency (utility::generation::generation_context &ctx)
 Generates a synthetic currency.
 
std::vector< domain::currencygenerate_synthetic_unicode_currencies (utility::generation::generation_context &ctx)
 Generates a synthetic currency from the unicode set.
 
std::vector< domain::currencygenerate_synthetic_currencies (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic currencies. May contain duplicates.
 
std::vector< domain::currencygenerate_unique_synthetic_currencies (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic currencies. Does not contain duplicates.
 
std::vector< domain::currencygenerate_fictional_currencies (std::size_t n, utility::generation::generation_context &ctx)
 Generates a set of fictional currencies.
 
domain::currency_market_tier generate_synthetic_currency_market_tier (utility::generation::generation_context &ctx)
 Generates a synthetic currency_market_tier.
 
std::vector< domain::currency_market_tiergenerate_synthetic_currency_market_tiers (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic currency_market_tiers.
 
domain::monetary_nature generate_synthetic_monetary_nature (utility::generation::generation_context &ctx)
 Generates a synthetic monetary_nature.
 
std::vector< domain::monetary_naturegenerate_synthetic_monetary_natures (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic monetary_natures.
 
domain::party_contact_information generate_synthetic_party_contact_information (utility::generation::generation_context &ctx)
 Generates a synthetic party_contact_information.
 
std::vector< domain::party_contact_informationgenerate_synthetic_party_contact_informations (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic party_contact_informations.
 
domain::party_counterparty generate_synthetic_party_counterparty (utility::generation::generation_context &ctx)
 
std::vector< domain::party_counterpartygenerate_synthetic_party_counterparties (std::size_t n, utility::generation::generation_context &ctx)
 
domain::party_country generate_synthetic_party_country (utility::generation::generation_context &ctx)
 
std::vector< domain::party_countrygenerate_synthetic_party_countries (std::size_t n, utility::generation::generation_context &ctx)
 
domain::party_currency generate_synthetic_party_currency (utility::generation::generation_context &ctx)
 
std::vector< domain::party_currencygenerate_synthetic_party_currencies (std::size_t n, utility::generation::generation_context &ctx)
 
domain::party generate_synthetic_party (utility::generation::generation_context &ctx)
 Generates a synthetic party.
 
std::vector< domain::partygenerate_synthetic_parties (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic parties.
 
domain::party_id_scheme generate_synthetic_party_id_scheme (utility::generation::generation_context &ctx)
 Generates a synthetic party_id_scheme.
 
std::vector< domain::party_id_schemegenerate_synthetic_party_id_schemes (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic party_id_schemes.
 
domain::party_identifier generate_synthetic_party_identifier (utility::generation::generation_context &ctx)
 Generates a synthetic party_identifier.
 
std::vector< domain::party_identifiergenerate_synthetic_party_identifiers (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic party_identifiers.
 
domain::party_status generate_synthetic_party_status (utility::generation::generation_context &ctx)
 Generates a synthetic party_status.
 
std::vector< domain::party_statusgenerate_synthetic_party_statuses (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic party_statuses.
 
domain::party_type generate_synthetic_party_type (utility::generation::generation_context &ctx)
 Generates a synthetic party_type.
 
std::vector< domain::party_typegenerate_synthetic_party_types (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic party_types.
 
domain::portfolio generate_synthetic_portfolio (utility::generation::generation_context &ctx)
 Generates a synthetic portfolio.
 
std::vector< domain::portfoliogenerate_synthetic_portfolios (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic portfolios.
 
domain::rounding_type generate_synthetic_rounding_type (utility::generation::generation_context &ctx)
 Generates a synthetic rounding_type.
 
std::vector< domain::rounding_typegenerate_synthetic_rounding_types (std::size_t n, utility::generation::generation_context &ctx)
 Generates N synthetic rounding_types.
 

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_business_centres()

std::vector< domain::business_centre > generate_fictional_business_centres ( std::size_t  n,
utility::generation::generation_context ctx 
)

Generates a set of fictional business centres.

These are intentionally fictional business centres with made-up FpML-style codes that do not correspond to any real financial centres. Useful for testing and demo purposes where real business centre data should not be used.

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

◆ generate_fictional_countries()

std::vector< domain::country > generate_fictional_countries ( std::size_t  n,
utility::generation::generation_context ctx 
)

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,
utility::generation::generation_context ctx 
)

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,
utility::generation::generation_context ctx 
)

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,
utility::generation::generation_context ctx 
)

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.