Generic tool for code generation based on C++11 Attributes