Luna::Variant::str

Name str(const Name &default_value=Name()) const

Gets the string of one string variant.

Parameters

  • in default_value

    The optional default string to return.

Return value

Returns the string data of one variant if type is VariantType::string. Returns default_value otherwise.