SObjectizer  5.8
Loading...
Searching...
No Matches
so_5::mbox_namespace_name_t Class Reference

A class for the name of mbox_namespace. More...

#include <mbox_namespace_name.hpp>

Public Member Functions

 mbox_namespace_name_t ()=delete
 
 mbox_namespace_name_t (std::string_view name)
 Constructor with check for the empty value.
 
std::string_view query_name () const noexcept(noexcept(std::string_view{m_name}))
 Get the value.
 

Private Attributes

std::string_view m_name
 The name.
 

Detailed Description

A class for the name of mbox_namespace.

Checks value in the constructor. Throws an exception if the name is empty.

Note
This class can be seen as a strong typedef for std::string_view. It doesn't create a copy of the name, just holds a "view" to the name.
Since
v.5.8.0
Examples
so_5/introduce_named_mbox/main.cpp.

Definition at line 35 of file mbox_namespace_name.hpp.

Constructor & Destructor Documentation

◆ mbox_namespace_name_t() [1/2]

so_5::mbox_namespace_name_t::mbox_namespace_name_t ( )
delete

There is no way to create an empty name.

◆ mbox_namespace_name_t() [2/2]

so_5::mbox_namespace_name_t::mbox_namespace_name_t ( std::string_view name)
inlineexplicit

Constructor with check for the empty value.

Definition at line 47 of file mbox_namespace_name.hpp.

Member Function Documentation

◆ query_name()

std::string_view so_5::mbox_namespace_name_t::query_name ( ) const
inlinenodiscardnoexcept

Get the value.

Definition at line 57 of file mbox_namespace_name.hpp.

Member Data Documentation

◆ m_name

std::string_view so_5::mbox_namespace_name_t::m_name
private

The name.

Definition at line 38 of file mbox_namespace_name.hpp.


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