# base_define.hpp
This File On Github
Ask A Question
API: latest
module: oatpp
#include "oatpp/codegen/dto/base_define.hpp"
# DTO_INIT
Codegen macoro to be used in classes extending oatpp::data::mapping::type::Object to generate required fields/methods/constructors for DTO object.
- @param TYPE_NAME - name of the DTO class.
- @param TYPE_EXTEND - name of the parent DTO class. If DTO extends oatpp::data::mapping::type::Object TYPE_EXETENDS should be
Object
.
#define DTO_INIT(TYPE_NAME, TYPE_EXTEND)
# DTO_FIELD
Codegen macro to generate fields of DTO object.
- @param TYPE - type of the field.
- @param NAME - name of the field.
- @param QUALIFIER_NAME - additional (optional) field to specify serialized name of the field. If not specified it will be same as NAME.
#define DTO_FIELD(TYPE, ...)