Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::Detail::EnumInfo Struct Reference

#include <catch_interfaces_enum_values_registry.h>

Collaboration diagram for Catch::Detail::EnumInfo:

Public Member Functions

 ~EnumInfo ()
 
StringRef lookup (int value) const
 

Public Attributes

StringRef m_name
 
std::vector< std::pair< int, std::string > > m_values
 

Detailed Description

Definition at line 18 of file catch_interfaces_enum_values_registry.h.

Constructor & Destructor Documentation

◆ ~EnumInfo()

Catch::Detail::EnumInfo::~EnumInfo ( )

Definition at line 32 of file catch_enum_values_registry.cpp.

32{}

Member Function Documentation

◆ lookup()

StringRef Catch::Detail::EnumInfo::lookup ( int value) const

Definition at line 34 of file catch_enum_values_registry.cpp.

34 {
35 for( auto const& valueToName : m_values ) {
36 if( valueToName.first == value )
37 return valueToName.second;
38 }
39 return "{** unexpected enum value **}";
40 }
#define value
Definition pkcs11.h:157
std::vector< std::pair< int, std::string > > m_values

Member Data Documentation

◆ m_name

StringRef Catch::Detail::EnumInfo::m_name

Definition at line 19 of file catch_interfaces_enum_values_registry.h.

◆ m_values

std::vector<std::pair<int, std::string> > Catch::Detail::EnumInfo::m_values

Definition at line 20 of file catch_interfaces_enum_values_registry.h.


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