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

Public Member Functions

const char * operator* () const
 
void operator= (const char *str)
 
void reset ()
 

Protected Attributes

std::optional< std::string > m_str
 

Detailed Description

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

Member Function Documentation

◆ operator*()

const char * OptionalString::operator* ( ) const
inline

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

43{ return m_str ? m_str->c_str() : nullptr; };

◆ operator=()

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

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

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

◆ reset()

void OptionalString::reset ( )
inline

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

45{ m_str = std::nullopt; };

Field Documentation

◆ m_str

std::optional<std::string> OptionalString::m_str
protected

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


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