MySQL 8.0.39
Source Code Documentation
OptionalString Class Reference

helper class to deal with optionally empty strings More...

#include <ssl_init_callback.h>

Public Member Functions

 OptionalString ()
 
 OptionalString (const char *s)
 
 ~OptionalString ()=default
 
 OptionalString (const OptionalString &)=default
 
const char * c_str () const
 
OptionalStringassign (const char *s)
 

Private Attributes

std::string value_
 
bool empty_
 

Detailed Description

helper class to deal with optionally empty strings

Constructor & Destructor Documentation

◆ OptionalString() [1/3]

OptionalString::OptionalString ( )
inline

◆ OptionalString() [2/3]

OptionalString::OptionalString ( const char *  s)
inline

◆ ~OptionalString()

OptionalString::~OptionalString ( )
default

◆ OptionalString() [3/3]

OptionalString::OptionalString ( const OptionalString )
default

Member Function Documentation

◆ assign()

OptionalString & OptionalString::assign ( const char *  s)
inline

◆ c_str()

const char * OptionalString::c_str ( ) const
inline

Member Data Documentation

◆ empty_

bool OptionalString::empty_
private

◆ value_

std::string OptionalString::value_
private

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