plptools
Loading...
Searching...
No Matches
Enum< E >::sdata Struct Reference

#include <Enum.h>

Public Member Functions

 sdata ()
 The constructor of the static data part. More...
 

Public Attributes

i2sMapper stringRep
 
std::string name
 
defaultValue
 

Detailed Description

template<typename E>
struct Enum< E >::sdata

Definition at line 138 of file Enum.h.

Constructor & Destructor Documentation

◆ sdata()

template<typename E >
Enum< E >::sdata::sdata ( )

The constructor of the static data part.

You've to provide a constructor for each Enumeration you want to wrap with this class. Initializes the string Representation map, the readable name of this Enumeration and a default value.

The constructor is called automatically on definition, so this makes sure, that the static part is initialized properly before the program starts.

Member Data Documentation

◆ defaultValue

template<typename E >
E Enum< E >::sdata::defaultValue

Definition at line 153 of file Enum.h.

◆ name

template<typename E >
std::string Enum< E >::sdata::name

Definition at line 152 of file Enum.h.

◆ stringRep

template<typename E >
i2sMapper Enum< E >::sdata::stringRep

Definition at line 151 of file Enum.h.


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