vtkModuleSerialization#
- vtk_module_generate_library_serdes_registrar#
Generate functions that register (de)serialization functions for all classes in a library. module-serialization
vtk_module_generate_library_serdes_registrar( MODULE <module> EXPORT_MACRO_NAME <export_macro_name> EXPORT_FILE_NAME <export_file_name> REGISTRAR_HEADER <registrar_header> REGISTRAR_SOURCE <registrar_source> CLASSES <class>...)
Declares registrar function for
MODULEinREGISTRAR_HEADERand writes implementation of the registrar inREGISTRAR_SOURCE.MODULE: The name of a module.EXPORT_MACRO_NAME: The name of the export macro forMODULE.EXPORT_FILE_NAME: The name of the header file which definesEXPORT_MACRO_NAMEforMODULE.REGISTRAR_HEADER: This file will hold the declaration of regsitrar function forMODULE.REGISTRAR_SOURCE: This file will contain the implementation of regsitrar function forMODULE.CLASSES: List of classes that will be registered with (de)serializer in this library.
- vtk_module_generate_libraries_serdes_registrar#
Generate functions that register (de)serialization handlers for a collection of modules. module-serialization
vtk_module_generate_libraries_serdes_registrar( REGISTRAR_NAME <registrar_name> REGISTRAR_SOURCE <registrar_source> [MANDATORY_MODULES <module>...] [OPTIONAL_MODULES <module>...])
Invokes registrar functions for all modules from
OPTIONAL_MODULESandMANDATORY_MODULES. Code is generated inREGISTRAR_SOURCE.REGISTRAR_NAME: The name of the registrar function.REGISTRAR_SOURCE: This file will contain the implementation of regsitrar function which registers handlers for allMANDATORY_MODULESandOPTIONAL_MODULES.MANDATORY_MODULES: A list ofPUBLICorPRIVATEdependencies of the module whichREGISTRAR_SOURCEis compiled into.OPTIONAL_MODULES: A list of optional dependencies of the module whichREGISTRAR_SOURCEis compiled into.
- _vtk_module_serdes_generate_sources#
Generate (de)serialization functions for classes that belong to
MODULEinSERDES_SOURCES. module-serialization_vtk_module_serdes_generate_sources( MODULE <module> SERIALIZED_CLASSES <serialzied_classes> SERDES_SOURCES <serdes_sources>)
MODULE: Generates serialization sources for all classes inMODULESERIALIZED_CLASSES: This variable will contain the list of all classes that were serialized.SERDES_SOURCES: This variable will contain the list of all sources that were generated forSERIALIZED_CLASSESinMODULE.
- vtk_module_serdes#
Generate (de)serialization code for all classes in a
MODULE. module-serializationvtk_module_serdes( MODULE <module> EXPORT_MACRO_NAME <export_macro_name> EXPORT_FILE_NAME <export_file_name> REGISTRAR_HEADER <header> REGISTRAR_SOURCE <source> SERDES_SOURCES <serdes_sources>)
MODULE: The name of a module.EXPORT_MACRO_NAME: The name of the export macro forMODULE.EXPORT_FILE_NAME: The name of the header file which definesEXPORT_MACRO_NAMEforMODULE.REGISTRAR_HEADER: This file will contain declaration of regsitrar function forMODULE.REGISTRAR_SOURCE: This file will contain implementation of regsitrar function forMODULE.SERDES_SOURCES: This variable holds the list of generated source files with vtkWrapSerDes for all classes inMODULE.