Kanzi 3.9.10
kanzi::MetadataGeneratedName Class Reference

This class is used to disambiguate a constructor which takes a non-literal string argument from an overload which takes a string-literal i.e. FixedString. More...

#include <kanzi/core/metadata/metadata.hpp>

Public Member Functions

ConstCharArrayUniquePtr copy () const
 Dynamically allocates a null-terminated string equivalent to the wrapped string view.
 
string_view get ()
 Returns the wrapped string view.
 
 MetadataGeneratedName (string_view name)
 Constructor.
 

Detailed Description

This class is used to disambiguate a constructor which takes a non-literal string argument from an overload which takes a string-literal i.e. FixedString.

Constructor & Destructor Documentation

◆ MetadataGeneratedName()

kanzi::MetadataGeneratedName::MetadataGeneratedName ( string_view name)
inlineexplicit

Constructor.

Parameters
nameThe string view being wrapped.

Member Function Documentation

◆ copy()

ConstCharArrayUniquePtr kanzi::MetadataGeneratedName::copy ( ) const
inline

Dynamically allocates a null-terminated string equivalent to the wrapped string view.

Returns
A unique ptr to a new null-terminated string equivalent to the wrapped string view.

◆ get()

string_view kanzi::MetadataGeneratedName::get ( )
inline

Returns the wrapped string view.

Returns
The wrapped string view.

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