reflectable type define More...
#include "ZFTypeIdFwd.h"
Go to the source code of this file.
Macros | |
#define | ZFTYPEID_DECLARE(ZFLIB_, TypeName, Type) |
register a type for reflection | |
#define | ZFTYPEID_DECLARE_WITH_CUSTOM_WRAPPER(ZFLIB_, TypeName, Type) |
see ZFTYPEID_DECLARE | |
#define | ZFTYPEID_REG(ZFLIB_, TypeName, Type, ...) |
see ZFTYPEID_DECLARE | |
#define | ZFTYPEID_DEFINE(TypeName, Type, serializeFromAction, serializeToAction, convertFromStringAction, convertToStringAction) |
see ZFTYPEID_DECLARE | |
#define | ZFTYPEID_DEFINE_WITH_CUSTOM_WRAPPER(TypeName, Type, serializeFromAction, serializeToAction, convertFromStringAction, convertToStringAction) |
see ZFTYPEID_DECLARE | |
#define | ZFTYPEID_DEFINE_BY_STRING_CONVERTER(TypeName, Type, convertFromStringAction, convertToStringAction) |
see ZFTYPEID_DECLARE | |
#define | ZFTYPEID_DEFINE_BY_STRING_CONVERTER_WITH_CUSTOM_WRAPPER(TypeName, Type, convertFromStringAction, convertToStringAction) |
see ZFTYPEID_DECLARE | |
#define | ZFTYPEID_DEFINE_BY_SERIALIZABLE_CONVERTER(TypeName, Type, serializeFromAction, serializeToAction) |
see ZFTYPEID_DECLARE | |
#define | ZFTYPEID_DEFINE_BY_SERIALIZABLE_CONVERTER_WITH_CUSTOM_WRAPPER(TypeName, Type, serializeFromAction, serializeToAction) |
see ZFTYPEID_DECLARE | |
#define | ZFTYPEID_ACCESS_ONLY_DECLARE(ZFLIB_, TypeName, Type) |
see ZFTYPEID_DECLARE | |
#define | ZFTYPEID_ACCESS_ONLY_REG(ZFLIB_, TypeName, Type, ...) |
see ZFTYPEID_DECLARE | |
#define | ZFTYPEID_ACCESS_ONLY_DEFINE(TypeName, Type) |
see ZFTYPEID_DECLARE | |
#define | ZFTYPEID_ACCESS_ONLY_DEFINE_UNCOMPARABLE(TypeName, Type) |
see ZFTYPEID_DECLARE | |
#define | ZFTYPEID_ALIAS_DECLARE(ZFLIB_, AliasToTypeName, AliasToType, TypeName, Type) |
see ZFTYPEID_DECLARE | |
#define | ZFTYPEID_ALIAS_REG(ZFLIB_, AliasToTypeName, AliasToType, TypeName, Type, ...) |
see ZFTYPEID_DECLARE | |
#define | ZFTYPEID_ALIAS_REG_CUSTOM(ZFLIB_, AliasToTypeName, AliasToType, TypeName, Type, TypeIdValueConversion, ...) |
see ZFTYPEID_DECLARE | |
#define | ZFTYPEID_ALIAS_DEFINE(AliasToTypeName, AliasToType, TypeName, Type) |
see ZFTYPEID_DECLARE | |
reflectable type define
#define ZFTYPEID_DECLARE | ( | ZFLIB_, | |
TypeName, | |||
Type ) |
register a type for reflection
usually for implementation use only, ZFFramework would supply most of the types, however you may use this to register your own types
typical code to register a type:
once registered, your type can be used as ZFPROPERTY_ASSIGN which benefits from the powerful automatic serialization logic, or, can be used as reflectable param or return type for ZFMETHOD_INLINE_0
ADVANCED:
ADVANCED:
ZFTypeId can also be declared in different namespace, or even declared as inner class, with some limitations
declare in different namespace:
declare as inner class: