GnuCash c935c2f+
Loading...
Searching...
No Matches
Public Member Functions
OptionalStringFromNumeric Struct Reference
Inheritance diagram for OptionalStringFromNumeric:
OptionalString

Public Member Functions

void operator= (std::optional< gnc_numeric > num)
 
void operator= (const char *str)
 
- Public Member Functions inherited from OptionalString
const char * operator* () const
 
void operator= (const char *str)
 
void reset ()
 

Additional Inherited Members

- Protected Attributes inherited from OptionalString
std::optional< std::string > m_str
 

Detailed Description

Definition at line 50 of file SX-ttinfo.hpp.

Member Function Documentation

◆ operator=() [1/2]

void OptionalString::operator= ( const char *  str)
inline

Definition at line 44 of file SX-ttinfo.hpp.

44{ if (str) m_str = str; else reset(); };

◆ operator=() [2/2]

void OptionalStringFromNumeric::operator= ( std::optional< gnc_numeric >  num)
inline

Definition at line 53 of file SX-ttinfo.hpp.

54 { if (num) m_str = GncNumeric (*num).to_string(); else reset(); }
The primary numeric class for representing amounts and values.
std::string to_string() const noexcept
Return a string representation of the GncNumeric.

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