ledger-core
Public Member Functions | Public Attributes | List of all members
ledger::core::api::CurrencyUnit Struct Referencefinal

#include <CurrencyUnit.hpp>

Public Member Functions

 CurrencyUnit (std::string name_, std::string symbol_, std::string code_, int32_t numberOfDecimal_)
 
 CurrencyUnit (const CurrencyUnit &cpy)
 
CurrencyUnitoperator= (const CurrencyUnit &cpy)
 
template<class Archive >
void load (Archive &archive)
 
template<class Archive >
void save (Archive &archive) const
 

Public Attributes

std::string name
 
std::string symbol
 
std::string code
 
int32_t numberOfDecimal
 

Detailed Description

Structure of cryptocurrency unit.

Member Data Documentation

◆ code

std::string ledger::core::api::CurrencyUnit::code

Currency code, e.g. mBTC.

◆ name

std::string ledger::core::api::CurrencyUnit::name

Currency name, e.g. milli-bitcoin.

◆ numberOfDecimal

int32_t ledger::core::api::CurrencyUnit::numberOfDecimal

Number of decimal to display.

◆ symbol

std::string ledger::core::api::CurrencyUnit::symbol

UTF-8 (hex) currency symbol, e.g. hex code for m₿.


The documentation for this struct was generated from the following file: