Template Struct TypeDefinition

Struct Documentation

template<class T>
struct TypeDefinition

Public Functions

std::string typeName() const

Provide the name of the type. Implement this in your template specialization

template<class Function>
void typeDef(const T &obj, Function &addField)

Apply the function in the argument to each field The signature of the function addField has:

  • a [const char*] as 1st argument

  • [pointer to member] of T as 2nd argument