GnuCash 7574033+
Loading...
Searching...
No Matches
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 documentation for this struct was generated from the following file: