32 #ifndef VLXRegistry_INCLUDE_ONCE 33 #define VLXRegistry_INCLUDE_ONCE 50 std::string tag = std::string(
"<") + type.
name() +
">";
51 mExportRegistry[type] = wrapper;
52 mImportRegistry[tag] = wrapper;
55 std::map< std::string, vl::ref<ClassWrapper> >&
importRegistry() {
return mImportRegistry; }
56 std::map< vl::TypeInfo, vl::ref<ClassWrapper> >&
exportRegistry() {
return mExportRegistry; }
58 const std::map< std::string, vl::ref<ClassWrapper> >&
importRegistry()
const {
return mImportRegistry; }
59 const std::map< vl::TypeInfo, vl::ref<ClassWrapper> >&
exportRegistry()
const {
return mExportRegistry; }
62 std::map< std::string, vl::ref<ClassWrapper> > mImportRegistry;
63 std::map< vl::TypeInfo, vl::ref<ClassWrapper> > mExportRegistry;
void registerClassWrapper(const vl::TypeInfo &type, ClassWrapper *wrapper)
std::map< vl::TypeInfo, vl::ref< ClassWrapper > > & exportRegistry()
const std::map< vl::TypeInfo, vl::ref< ClassWrapper > > & exportRegistry() const
Base cass for all class wrappers implementing the translation to/from its VLX representation.
VLX_EXPORT Registry * defVLXRegistry()
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
const std::map< std::string, vl::ref< ClassWrapper > > & importRegistry() const
std::map< std::string, vl::ref< ClassWrapper > > & importRegistry()
The base class for all the reference counted objects.
Registry of vl::ClassWrapper objects, used by vl::VLXSerializer, see also vl::defVLXRegistry().
const char * name() const
The name of the class including the namespace.
VLX_EXPORT void setDefVLXRegistry(Registry *reg)