mod_servlet
C++Servlets
 All Classes Files Functions Variables Typedefs Macros Pages
servlet::named_principal Class Reference

Simple inplementation of servlet::principal with a name only. More...

#include <session.h>

Inheritance diagram for servlet::named_principal:
servlet::principal

Public Member Functions

 named_principal (const std::string &name)
 Constructs principal with a given name. More...
 
 named_principal (std::string &&name)
 Constructs principal with a given name. More...
 
string_view get_name () noexceptoverride
 Returns the name of this principal. More...
 

Detailed Description

Simple inplementation of servlet::principal with a name only.

Constructor & Destructor Documentation

servlet::named_principal::named_principal ( const std::string &  name)
inline

Constructs principal with a given name.

Parameters
nameName
servlet::named_principal::named_principal ( std::string &&  name)
inline

Constructs principal with a given name.

Parameters
nameName

Member Function Documentation

string_view servlet::named_principal::get_name ( )
inlineoverridevirtualnoexcept

Returns the name of this principal.

Returns
the name of this principal.

Implements servlet::principal.


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