ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
currency Struct Referencefinal

Represents a currency with its metadata and formatting rules. More...

#include <currency.hpp>

Collaboration diagram for currency:
Collaboration graph

Public Attributes

int version = 0
 Version number for optimistic locking and change tracking.
 
std::string iso_code
 ISO 4217 alphabetic code (e.g., "USD").
 
std::string name
 Full name of the currency (e.g., "United States Dollar").
 
std::string numeric_code
 ISO 4217 numeric code (e.g., "840").
 
std::string symbol
 Currency symbol (e.g., "$").
 
std::string fraction_symbol
 Symbol for fractional unit (e.g., "cent").
 
int fractions_per_unit
 Number of fractional units per whole unit (e.g., 100 for cents).
 
std::string rounding_type
 Rounding method for fractional amounts.
 
int rounding_precision
 Decimal places to round to during formatting.
 
std::string format
 Format string for display.
 
std::string currency_type
 Type classification (e.g., fiat, crypto, major, minor, etc.).
 
std::string recorded_by
 Username of the person who recorded this version in the system.
 
std::string recorded_at
 Timestamp when this version of the record was recorded in the system.
 

Detailed Description

Represents a currency with its metadata and formatting rules.