openMSX
Public Member Functions | List of all members
openmsx::serialize_as_enum_impl< T > Struct Template Reference

#include <serialize_core.hh>

Inheritance diagram for openmsx::serialize_as_enum_impl< T >:
Inheritance graph
[legend]
Collaboration diagram for openmsx::serialize_as_enum_impl< T >:
Collaboration graph
[legend]

Public Member Functions

 serialize_as_enum_impl (std::initializer_list< enum_string< T >> info_)
 
std::string toString (T t) const
 
fromString (const std::string &str) const
 

Detailed Description

template<typename T>
struct openmsx::serialize_as_enum_impl< T >

Definition at line 104 of file serialize_core.hh.

Constructor & Destructor Documentation

◆ serialize_as_enum_impl()

template<typename T >
openmsx::serialize_as_enum_impl< T >::serialize_as_enum_impl ( std::initializer_list< enum_string< T >>  info_)
inlineexplicit

Definition at line 105 of file serialize_core.hh.

Member Function Documentation

◆ fromString()

template<typename T >
T openmsx::serialize_as_enum_impl< T >::fromString ( const std::string &  str) const
inline

Definition at line 114 of file serialize_core.hh.

References openmsx::enumError().

◆ toString()

template<typename T >
std::string openmsx::serialize_as_enum_impl< T >::toString ( t) const
inline

Definition at line 107 of file serialize_core.hh.


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