wex v24.10.0
|
This class offers reflection for any kind of class members, as long as you add a conversion from / to std::any. More...
#include <wex/core/reflection.h>
Classes | |
struct | reflection_t |
The reflection type, as a struct of name and callback. More... | |
Public Types | |
enum class | log_t { ALL , SKIP_EMPTY } |
Determines what to log. More... | |
typedef std::function< std::any()> | function_t |
Callback for functions. | |
typedef struct wex::reflection::reflection_t | reflection_t |
The reflection type, as a struct of name and callback. | |
Public Member Functions | |
reflection (const std::vector< reflection_t > &v, log_t=log_t::ALL) | |
Constructor, sets all reflection items and log_t. | |
std::stringstream | log () const |
Logs all items to a std::stringstream. | |
This class offers reflection for any kind of class members, as long as you add a conversion from / to std::any.
typedef std::function<std::any()> wex::reflection::function_t |
Callback for functions.
Just return your class member, as an std::any type.
|
strong |