Kanzi  3.9.9
Kanzi Engine C++ API
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. More...
 
string_view get ()
 Returns the wrapped string view. More...
 
 MetadataGeneratedName (string_view name)
 Constructor. More...
 

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

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

Constructor.

Parameters
nameThe string view being wrapped.

Member Function Documentation

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.
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: