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